Availability
AI Studio is the central management hub of the Tyk AI platform. It is the brain of the system — where administrators configure LLM providers, manage users, monitor usage, and extend the platform with plugins. When deployed in a hub-and-spoke topology, it also acts as the control plane that governs all connected Edge Gateways.
High-Level Architecture
AI Studio runs as a single binary that starts multiple servers:The gRPC Control Server only starts when
GATEWAY_MODE=control is set. In standalone mode (the default), AI Studio handles everything locally without Edge Gateways.Core Features
AI Studio provides the following capabilities out of the box:Configuration Management
Configuration Management is the heart of AI Studio. It is where administrators define what LLMs are available, how they are accessed, and what rules govern their use.LLM Provider Configuration
AI Studio supports multiple LLM vendors through a unified configuration model:Supported Vendors:
Model Pricing
To enable cost tracking, administrators define per-token prices for each model: The Analytics Engine uses these prices to calculate the cost of every LLM interaction automatically.Application (App) Management
Applications are the access credentials that developers and systems use to interact with LLMs through the proxy:Secrets Management
API keys and sensitive values can be stored securely and referenced by name:Content Filters
Filters are rules attached to LLMs that can block or modify requests/responses. They are implemented as plugins with thepre_auth, auth, or post_auth hook types and are associated with specific LLM configurations.
User Management & RBAC
AI Studio uses a group-based access control model. Access to resources is granted through group membership, not individual user permissions.Analytics & Monitoring
AI Studio automatically collects and stores analytics data for every LLM interaction that flows through the system.Data Collection Flow
What Gets Recorded
Every LLM interaction records:Plugin System
The Plugin System is AI Studio’s extensibility layer. Plugins run as isolated processes communicating over gRPC, providing security and fault tolerance. All plugins use a Unified Plugin SDK that works in both AI Studio and Edge Gateway contexts.Plugin Distribution
Plugins can be distributed in three ways:Plugin Marketplace
AI Studio includes a built-in marketplace for discovering and installing community plugins:CE vs Enterprise: Community Edition supports one official Tyk marketplace. Enterprise Edition supports multiple custom marketplace sources with full management UI.
How Configuration Synchronization Works?
Tyk AI Studio uses a checksum-based system to track configuration synchronization between the control plane and edge gateways.How It Works
- Checksum Generation: When configuration changes occur on the control plane, a SHA-256 checksum is computed from the serialized configuration snapshot
- Heartbeat Reporting: Edge gateways report their loaded configuration checksum in each heartbeat
- Status Comparison: The control plane compares reported checksums to determine sync status
- UI Notifications: The admin UI displays sync status and notifies administrators when edges are out of sync
- On configuration change, an admin pushes a reload signal. This can target all gateways or a specific namespace. Each gateway then pulls the latest snapshot.
- Namespaces control what gets loaded onto each gateway. LLMs, Apps, Filters, and Plugins can all be namespaced.
- If the hub is unreachable, gateways continue operating from their last-known snapshot stored in a local database (SQLite or PostgreSQL).
What Gets Synced to Gateways
Note: Apps are included in the sync but are not part of the checksum calculation because they change frequently. Credentials are not pulled until a gateway actually needs them — this is a pull-on-miss caching strategy that ensures the admin retains ongoing control over access tokens.
Sync Status Values
Pushing Configuration
Configuration changes are pushed to edge gateways on-demand (not automatically) to ensure administrators maintain control over when changes are deployed.Push Configuration Modal
Click the Push Configuration button to open the push modal. You can choose to:- Push to All Namespaces: Sends configuration to all connected edge gateways
- Push to Specific Namespace: Sends configuration only to edges in a selected namespace (Enterprise)
Push Process
When you push configuration:- The control plane generates a new configuration snapshot for the target namespace(s)
- Edge gateways receive a reload signal via gRPC
- Each edge fetches the new configuration and applies it
- Edges report the new checksum in their next heartbeat
- The sync status updates to reflect the new state