This guide will help you install and configure Tyk AI Studio using Docker Compose or native packages. This is the recommended installation method for most users.Documentation Index
Fetch the complete documentation index at: https://tyk.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
License Requirement
- A valid Tyk AI Studio license from Tyk Technologies. Contact support@tyk.io or your account manager to obtain your license.
For Docker Compose Installation
- Docker and Docker Compose installed on your system
- PostgreSQL database (recommended for production) - if not provided, SQLite will be used as fallback
For Package Installation
- Linux system with systemd
- PostgreSQL database (strongly recommended) - if not configured, SQLite will be used as fallback
Installation Methods
Method 1: Docker Compose Installation
-
Create a new directory for your project:
-
Create a
composedirectory and add the following Docker Compose file: -
Create a
compose.yamlfile with the following content: -
Create a configuration directory and environment file:
-
Add your configuration to the
.envfile (example): For PostgreSQL (recommended):For SQLite (development only):Note: PostgreSQL is strongly recommended for production use. SQLite is only suitable for development and testing.
Starting the Service
-
Start the services using Docker Compose:
-
Verify that the services are running:
Accessing the Portal
Once the services are running:- Access the AI Portal interface at:
http://localhost:8080 - Access the Gateway at:
http://localhost:9090
Monitoring Logs
To view the logs from the services:Stopping the Service
To stop and remove the containers:Method 2: Package Installation
-
Add the Tyk package repository:
-
Install the package:
-
Configure the application:
Add your configuration (similar to Docker Compose example above). Ensure you configure PostgreSQL for production:
Note: The
TYK_AI_LICENSEenvironment variable is required for the service to start. Contact support@tyk.io or your account manager if you need to obtain a license. -
Start the service:
-
Check service status:
Service Components
The Docker Compose setup includes:-
Tyk AI Studio Service: The main AI Portal application
- Runs on ports 8080 (web interface) and 9090 (gateway server)
- Connects to PostgreSQL for data storage
- Uses environment variables for configuration
-
PostgreSQL Database:
- Stores application data
- Uses default credentials (configurable via environment variables)
First User Registration
After starting the service, you need to create your first admin user:-
Access the application: Open your browser and navigate to
http://localhost:8080 -
Register with admin email: Use the EXACT email address you set in the
ADMIN_EMAILenvironment variable -
Complete registration: The first user who registers with the admin email will automatically become the administrator
Important: The first user registration must use the same email address specified in the
ADMIN_EMAILenvironment variable. This user will have full administrative privileges.
Next Steps
Once you’ve completed the installation and registered your first user:- Configure your first LLM: Add connections to AI providers like OpenAI, Anthropic, or Azure OpenAI
- Set up user management: Create additional users and configure permissions
- Explore the AI Portal: Try the chat interface and explore available tools
Troubleshooting
If you encounter issues:- Check that all required ports (8080, 9090) are available
- Ensure your
.envfile contains valid API keys and the correctADMIN_EMAIL - Verify that Docker and Docker Compose are properly installed
- Check the logs for any error messages:
docker compose logs -f - Registration issues: Make sure you’re using the exact email address from
ADMIN_EMAIL