Skip to main content

Availability

This guide covers the Enterprise Edition of Tyk AI Studio. For the Community Edition, 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.
Use Helm to deploy Tyk AI Studio (control plane), an Edge Gateway (data plane), and PostgreSQL on Kubernetes. The Edge Gateway gets its configuration from AI Studio over gRPC and processes AI requests.
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, from support@tyk.io or your account manager
  • For production with TLS: cert-manager installed in your cluster
Running on Podman, containerd, or another container runtime? See Container Runtimes.

Generate Secrets

The Helm chart leaves three secrets empty. Generate a key for each before you install. Refer to Tyk AI Studio in the Default Secrets Configuration Reference.
Save these values for the values file.

Option 1: Testing / Quickstart

Use this option for local development or test clusters. It 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 values in each pair must match: grpcAuthToken and edgeAuthToken, microgatewayEncryptionKey and encryptionKey.
Expandable

3. Install

4. Set External Gateway URL

AI Studio routes to the internal service URL of the Edge Gateway. The AI Portal shows the external URL for tools and data sources. After install, patch the configuration with the node IP of your cluster:
If you know the external IP or hostname of your cluster before you install, set 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

Use this option for production deployments with Ingress, TLS through cert-manager, and an external database.

1. Create values-production.yaml

Replace all placeholder values with your 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

At first startup, AI Studio creates OpenAI and Anthropic LLM configurations with the placeholder secrets OPENAI_KEY and ANTHROPIC_KEY. To use them:
  1. Open AI Studio at your siteUrl and log in with your admin account.
  2. In the sidebar, go to Settings > Secrets.
  3. Click OPENAI_KEY and add your OpenAI API key.
  4. Click ANTHROPIC_KEY and add your Anthropic API key.

Push Configuration to the Edge Gateway

  1. In the sidebar, go to Portal administration > Edge Gateways.
  2. Make sure that your Edge Gateway shows as Connected. Its Edge ID is the pod name, for example midsommar-microgateway-64b5f9879d-mf5p2.
  3. Click Push Configuration.
When the sync status shows Synced, the Edge Gateway is ready to proxy LLM requests. To add more LLMs, users, and Apps, refer to Initial Configuration.

Shared Secrets Reference

These values must match between the AI Studio and Edge Gateway configuration:

Port Reference