dumbtv
dumbtv takes the ads, screen tracking and update nags out of your Fire TV over ADB. No root, none of your apps touched, every step can be undone. Free and open source.
翻譯準備中
Tyk AI Studio 提供 AI 閘道與完整功能套件,協助管理、治理與互動企業內的 AI。
AI 翻譯
Tyk AI Studio provides an AI gateway and comprehensive suite of capabilities to manage, govern, and interact with AI across your organization
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Open source AI management platform for secure, governed, and scalable AI integration
Tyk AI Studio is an open source platform that addresses the critical challenges organizations face when adopting AI: shadow AI usage, compliance requirements, security concerns, and spiraling costs. Built for developers and platform teams, it provides structured AI management through governance, monitoring, and unified access controls.
Available in two editions: Community Edition (open source) and Enterprise Edition (advanced features). See edition comparison below.檢視完整 README ↗Official Documentation | AI Studio Homepage | Community Forum | Contributing
Open source AI management platform for secure, governed, and scalable AI integration
Tyk AI Studio is an open source platform that addresses the critical challenges organizations face when adopting AI: shadow AI usage, compliance requirements, security concerns, and spiraling costs. Built for developers and platform teams, it provides structured AI management through governance, monitoring, and unified access controls.
Available in two editions: Community Edition (open source) and Enterprise Edition (advanced features). See edition comparison below.
Get a demo instance running in minutes using Docker Compose.
Community Edition (no license required):
git clone https://github.com/TykTechnologies/ai-studio.git
cd ai-studio/quickstart
docker compose -f ./ce/compose.yaml up -d
Enterprise Edition (requires license):
git clone https://github.com/TykTechnologies/ai-studio.git
cd ai-studio/quickstart
# Add your license to required.env
echo "TYK_AI_LICENSE=<your-license-key>" > required.env
docker compose -f ./enterprise/compose.yaml up -d
Once running, access the UI at http://localhost:3000 (Community Edition) or http://localhost:8585 (Enterprise Edition).
See the quickstart README for more details.
AI adoption brings significant challenges that require structured solutions:
The heart of secure AI integration, providing:
Developer-focused service catalog featuring:
Collaborative workspace that provides:
Standards-based AI component integration:
Measured on Tyk AI Studio 2.2 with the Enterprise edge gateway on one 4-vCPU AWS machine (c7i.xlarge), with every request authenticated, checked against a budget, cost-accounted and recorded in analytics:
| One 4-vCPU gateway, full production policy | |
|---|---|
| Latency added per request (native endpoints) | 0.54–0.58 ms p50, under 0.9 ms p99, including the network hop; the gateway's own share is 0.13–0.16 ms |
| Latency added against real OpenAI and Anthropic (paired) | not measurable against the vendors' own variation; 0.3–1.8 ms by the gateway's own timing |
| Non-streaming capacity (20 ms upstream) | ~8,550 req/s, adding ~0.5 ms p50 up to 6,000 req/s; 0 errors |
| Streaming capacity (300 ms to first token, 4.3 s streams) | ~690 new streams/s (~3,000 open); time to first token within ~15 ms of the upstream's up to 450/s; 0 errors |
| 1 hour at 377 streams/s, and a 3× burst | 0 errors; latency and memory flat for the hour; recovered from the burst within 5 s |
Both limits are the node's CPU, so capacity grows with the number of edges. Every analytics record reached the control plane.
Full method, per-scenario data and known limitations: benchmarks/gateway/benchmark-results.md. To reproduce on your own AWS account, see benchmarks/gateway/RUNBOOK-cloud.md.
Software Development
Financial Services
Healthcare
General Business Applications
For absolute first-timers who want to build from source:
git clone https://github.com/TykTechnologies/ai-studio.git
cd ai-studio
cd ui/admin-frontend
npm install
npm run build
cd ../../
go build
cp .env.example .env
# Edit .env file with your AI provider credentials
./ai-studio
Important: If you try to run go build without first building the frontend, you'll get an error about empty directories because the Go application embeds the frontend build assets. Always build the frontend first.
Tyk AI Studio is available in two editions:
| Feature | Community Edition | Enterprise Edition |
|---|---|---|
| LLM Proxy Gateway | ✅ | ✅ |
| Chat Interface | ✅ | ✅ |
| Tool Integration | ✅ | ✅ |
| User Management & RBAC | ✅ | ✅ |
| Hub-and-Spoke Deployment | ✅ | ✅ |
| Cost Tracking & Analytics | ✅ | ✅ |
| Plugin System | ✅ | ✅ |
| Budget Management | ❌ | ✅ |
| Budget Enforcement | ❌ | ✅ |
| Budget Alerts | ❌ | ✅ |
| Advanced SSO (SAML, OIDC) | ❌ | ✅ |
| Advanced RBAC | ❌ | ✅ |
| Audit Logging | ❌ | ✅ |
| Priority Support | ❌ | ✅ |
Free and open source. Perfect for:
Advanced features for production. Ideal for:
Learn more about Enterprise Edition →
For detailed framework documentation, see ENTERPRISE_FRAMEWORK.md
Get up and running in under 5 minutes:
git clone https://github.com/TykTechnologies/ai-studio.git
cd ai-studio
cp .env.example .env
Configure environment
Edit .env file with your AI provider credentials and desired settings.
Start the platform
docker compose up --build
When you first register, your account will automatically become admin with a default user group created.
Prerequisites
Start development servers
make start-dev # Starts both frontend and backend
make stop-dev # Stops both services
# Production deployment
docker compose up -d
# Development with hot reload
docker compose up --build
# Using the Helm chart in this repository
helm install ai-studio ./helm
For values and production settings, see Deploy on Kubernetes and the chart README.
# Build production binary
make build
# The binary includes both API and UI
./ai-studio
Tyk AI Studio follows a clean three-tier architecture:
Model Layer: Data structures and database-level CRUD operations Service Layer: Business logic and data access to the model layer API Layer: REST interface to the service layer
Frontend Structure:
The AI Gateway sits at the center, proxying all AI interactions while enforcing policies, monitoring usage, and maintaining security controls.
Tyk AI Studio features a powerful Unified Plugin SDK that enables extensive customization and integration across the entire platform. Plugins run as isolated processes using gRPC communication, providing security and fault tolerance.
Build plugins that extend AI Studio in multiple ways:
Gateway Extensions
UI Extensions
Conversational AI Agents
Object Hooks
import "github.com/TykTechnologies/midsommar/v2/pkg/plugin_sdk"
type MyPlugin struct {
plugin_sdk.BasePlugin
}
func (p *MyPlugin) HandlePostAuth(ctx plugin_sdk.Context, req *plugin_sdk.EnrichedRequest) (*plugin_sdk.Response, error) {
// Your custom logic here
return &plugin_sdk.Response{Modified: false}, nil
}
func main() {
plugin_sdk.Serve(NewMyPlugin())
}
Learn More: See Plugin System Documentation for comprehensive guides, examples, and API references.
Official Documentation
Product Information
Developer Resources
All configuration is managed through the .env file. Key settings include:
# AI Provider Credentials
OPENAI_API_KEY=your-openai-key
ANTHROPIC_API_KEY=your-anthropic-key
# Database Configuration
DATABASE_URL=your-database-url
# Telemetry (Optional)
TELEMETRY_ENABLED=false # Disable usage statistics collection
Privacy Note: Tyk AI Studio collects anonymized usage statistics to improve the platform. No personal data or AI conversation content is collected. Set TELEMETRY_ENABLED=false to disable.
Manual build process (step by step):
# 1. Install frontend dependencies (if not done already)
cd ui/admin-frontend
npm install
# 2. Build frontend assets (required before Go build)
npm run build
# 3. Return to root and build backend
cd ../../
go build
# 4. Run the application
./ai-studio
Using Make commands (automated):
# Build everything (frontend + backend)
make build
# Build for local development only
make build-local
# Run tests
make test
# Clean build artifacts
make clean
Build Order Important: The frontend must be built before the Go binary because the application embeds frontend assets. Running go build without building the frontend first will fail with empty directory errors.
Version information is injected at build time via Go linker flags (-ldflags -X). The variables are defined in version.go:
| Variable | Description | Default |
|---|---|---|
main.Version | Release version (from git tag) | dev |
main.BuildHash | Git commit hash | unknown |
main.BuildTime | Build timestamp (UTC) | unknown |
How version is set across build methods:
| Build Method | Version Source |
|---|---|
make build-native / make build-prod | git describe --tags --always --dirty |
Dockerfile | --build-arg VERSION=... |
build-commands.sh (pre-release) | git describe --tags --always |
| GoReleaser (CI release) | Git tag via {{.Version}} |
make dev (Air hot reload) | Default dev |
To verify the version embedded in a binary, check the startup output:
Starting Tyk AI Studio v2.1.0
When tagging a release, create a git tag and the version will propagate automatically:
git tag v2.1.0
git push origin v2.1.0
make dev # Docker Compose development environment with hot reload (recommended)
make dev-down # Stop the development environment
make dev-help # List all development targets
The project has multiple test categories with different build tags. Here's how to run them:
# Run all standard unit tests (fastest)
go test ./...
# Run tests for a specific package
go test ./api/...
# Run tests with coverage report
go test -coverprofile=coverage.out -coverpkg=./... ./...
go tool cover -html=coverage.out # View in browser
To validate everything before a release or major change:
# 1. Unit tests (no special tags required)
go test ./...
# 2. Enterprise feature tests
go test -tags enterprise ./...
# 3. Integration tests (requires test environment)
go test -tags integration ./...
# 4. Plugin E2E tests (builds and spawns real plugin binaries)
go test -tags e2e ./pkg/testinfra/plugintest/...
# 5. All tests combined (comprehensive validation)
go test -tags "enterprise,integration,e2e" ./...
| Category | Build Tag | Description | Speed |
|---|---|---|---|
| Unit | (none) | Standard tests, no external deps | Fast |
| Enterprise | enterprise | Tests for enterprise-only features | Fast |
| Integration | integration | Tests requiring DB/services | Medium |
| E2E Plugin | e2e | Spawns real plugin subprocesses | Slow |
The plugin test framework validates UI-to-RPC contracts without building plugins:
# Fast contract validation (no plugin build)
go test -v ./pkg/testinfra/plugintest/... -run "TestAdvancedLLMCacheUIContract"
For CI pipelines, we recommend:
# Fast feedback (every PR)
- run: go test ./...
# Pre-merge validation
- run: go test -tags enterprise ./...
# Nightly/release validation
- run: go test -tags "enterprise,integration,e2e" ./...
Get Help
Contributing We welcome contributions! Please see our Contributing Guide for details on how to:
Tyk AI Studio is released under the GNU Affero General Public License v3.0. See LICENSE.md for full details.
Contributor License Agreement: All contributors must sign the Tyk CLA before contributions can be accepted.
Tyk AI Studio is actively developed and maintained by Tyk Technologies. It serves as the open source foundation for Tyk's AI management ecosystem.
Stability: Production ready for AI gateway and basic management features
Development: Active development with regular releases
Community: Welcoming contributions and feedback from the community
Built by Tyk