Skip to main content

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.
This guide explains how to deploy Tyk AI Studio (control plane), an Edge Gateway (data plane), and PostgreSQL on Kubernetes using Helm. AI Studio manages configuration centrally and the Edge Gateway processes AI requests, receiving configuration via gRPC.
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+
  • kubectl configured 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:
Save these values — you will substitute them into the values file below.

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 kubectl port-forward instead:
Then open 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 the ai-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:
  1. Open your configured siteUrl (for example, https://studio.yourdomain.com) in your browser.
  2. Select Sign up, then enter a name, an email address, and a password.
  3. 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:
  1. Open AI Studio at the siteUrl you configured and log in with your admin account
  2. Navigate to Governance → Secrets in the sidebar
  3. Click on OPENAI_KEY and edit it to add your OpenAI API key
  4. Click on ANTHROPIC_KEY and edit it to add your Anthropic API key

Push Configuration to the Edge Gateway

  1. Navigate to AI Portal → Edge Gateways in the sidebar
  2. Verify that your Edge Gateway shows as Connected. Its Edge ID is the pod name, for example midsommar-microgateway-64b5f9879d-mf5p2.
  3. Click Push Configuration to sync the latest settings to the Edge Gateway
Once the sync status shows Synced, the Edge Gateway is ready to proxy LLM requests. For further setup (additional LLMs, users, applications), see the Initial Configuration guide.

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 different edgeNamespace:
Each Edge Gateway receives only the configuration assigned to its namespace.
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):
External Database (production):

Maintenance

Upgrading

Uninstalling

Viewing Logs

Troubleshooting

  • 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
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:
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.
  • Verify the Edge Gateway pod logs:
  • Check that CONTROL_ENDPOINT resolves to the AI Studio service (default: midsommar:50051)
  • Verify edgeAuthToken matches grpcAuthToken exactly
  • Verify encryptionKey matches microgatewayEncryptionKey exactly
  • Check that GATEWAY_MODE=control is set in AI Studio config