Availability
This guide focuses on the Enterprise Edition of Tyk AI Studio. For the Community Edition, please refer to the Tyk AI Studio GitHub repository. The Community Edition uses different Docker images (
tykio/tyk-ai-studio and tykio/tyk-microgateway) and does not require a license key.The Helm chart uses the older name
microgateway for the Edge Gateway component. Examples are the microgateway: values block and the tykio/tyk-microgateway-ent image. This guide uses “Edge Gateway” in prose for the same component.Prerequisites
- Kubernetes 1.16+
- Helm 3.0+
kubectlconfigured with access to your cluster- A Tyk AI License key (contact support@tyk.io or your account manager to obtain)
- For production with TLS: cert-manager installed in your cluster
Running on Podman, containerd, or another container runtime? See Container Runtimes.
Generate Secrets
Before installing, generate three secret keys to secure communication and encrypt data:Option 1: Testing / Quickstart
For local development or test clusters. Uses NodePort services, internal PostgreSQL, and no ingress.1. Add the Helm Chart
The Helm chart is in the Tyk AI Studio GitHub repository.2. Create values-testing.yaml
Replace the placeholder secrets with your generated values. The grpcAuthToken / edgeAuthToken and microgatewayEncryptionKey / encryptionKey pairs must match.
Expandable
3. Install
4. Set External Gateway URL
The Edge Gateway’s internal service URL is used for routing by default, but the portal needs to display the correct external URL for tools and datasources. After install, patch the config with your cluster’s node IP:Tip: If you know your cluster’s external IP or hostname upfront, you can skip this step by setting
config.toolDisplayUrl and config.datasourceDisplayUrl in your values file instead.5. Verify
If you cannot reach the node IP from your machine (for example, with kind or Docker Desktop on macOS), use Then open
kubectl port-forward instead:http://localhost:8080. In step 4, set SITE_URL to http://localhost:8080.Access Points
Option 2: Production with TLS
For production deployments with Ingress, TLS via cert-manager, and an external database.1. Create values-production.yaml
Replace all placeholder values with your actual configuration.
Expandable
2. Install
Run these commands from theai-studio/helm directory. To get the chart, follow step 1 of Option 1.
3. Verify
After Deployment
First User Registration
After you start the services, create the first user:- Open your configured
siteUrl(for example,https://studio.yourdomain.com) in your browser. - Select Sign up, then enter a name, an email address, and a password.
- Log in with the new account.
The first user who registers becomes the administrator. You can use any email address. Other users must verify their email address before they can log in, so configure SMTP before you invite them. AI Studio ignores the deprecated
ADMIN_EMAIL variable.Add Your API Keys
AI Studio pre-populates OpenAI and Anthropic LLM configurations on first startup with placeholder secrets (OPENAI_KEY and ANTHROPIC_KEY). To start using them:
- Open AI Studio at the
siteUrlyou configured and log in with your admin account - Navigate to Governance → Secrets in the sidebar
- Click on
OPENAI_KEYand edit it to add your OpenAI API key - Click on
ANTHROPIC_KEYand edit it to add your Anthropic API key
Push Configuration to the Edge Gateway
- Navigate to AI Portal → Edge Gateways in the sidebar
- Verify that your Edge Gateway shows as Connected. Its Edge ID is the pod name, for example
midsommar-microgateway-64b5f9879d-mf5p2. - Click Push Configuration to sync the latest settings to the Edge Gateway
Shared Secrets Reference
These values must match between AI Studio and Edge Gateway configuration:Port Reference
Advanced Configuration
Message Queue (NATS)
For distributed deployments with message persistence, add NATS configuration to your values file:Optional Components
Reranker Service
Improves RAG result relevance:Transformer Server
Handles embedding generation:Scaling Edge Gateways
Each Edge Gateway pod registers with AI Studio under its own pod name as its Edge ID. To deploy Edge Gateways for different regions, deploy a separate Helm release for each region and set a differentedgeNamespace:
A Deployment gives each pod a new name after a restart, and AI Studio removes the stale entries. For stable Edge IDs (for example,
midsommar-microgateway-0), set microgateway.kind: StatefulSet.Database Options
Internal PostgreSQL (testing/small deployments):Maintenance
Upgrading
Uninstalling
Viewing Logs
Troubleshooting
Check pod and ingress status
Check pod and ingress status
Common Issues
Common Issues
- Database connection failures: Check credentials and network access
- Ingress not working: Verify DNS records and TLS configuration
- Login fails on HTTP: Set
devMode: "true"— session cookies require this when not using HTTPS - Marketplace page is empty: Set
ociCacheDir: "./data/cache/plugins"in your config values — the marketplace service will not start without it - Plugin signature verification: Docker images use distroless bases without cosign. Set
ociRequireSignature: "false"to disable signature verification
Pods restart during the first install
Pods restart during the first install
On the first install, the AI Studio pod can restart until PostgreSQL is ready. The Edge Gateway pod can restart until the AI Studio gRPC server is ready. These restarts are normal. The pods recover without action. Check that all pods show
Running and READY 1/1:Registration fails with an unexpected error
Registration fails with an unexpected error
In AI Studio v2.1.x, over plain HTTP, the CSRF check accepts browser requests only from
localhost:3000. Registration from any other address fails with 403 Forbidden - origin invalid. Upgrade to v2.2.0 or later. From v2.2.0, AI Studio also accepts requests from the host in SITE_URL.Edge Gateway cannot connect to AI Studio
Edge Gateway cannot connect to AI Studio
- Verify the Edge Gateway pod logs:
- Check that
CONTROL_ENDPOINTresolves to the AI Studio service (default:midsommar:50051) - Verify
edgeAuthTokenmatchesgrpcAuthTokenexactly - Verify
encryptionKeymatchesmicrogatewayEncryptionKeyexactly - Check that
GATEWAY_MODE=controlis set in AI Studio config