Skip to main content
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.

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

  1. Create a new directory for your project:
  2. Create a compose directory and add the following Docker Compose file:
  3. Create a compose.yaml file with the following content:
  4. Create a configuration directory and environment file:
  5. Add your configuration to the .env file (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

  1. Start the services using Docker Compose:
  2. 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

  1. Add the Tyk package repository:
  2. Install the package:
  3. Configure the application:
    Add your configuration (similar to Docker Compose example above). Ensure you configure PostgreSQL for production:
    Note: The TYK_AI_LICENSE environment variable is required for the service to start. Contact support@tyk.io or your account manager if you need to obtain a license.
  4. Start the service:
  5. 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:
  1. Access the application: Open your browser and navigate to http://localhost:8080
  2. Register with admin email: Use the EXACT email address you set in the ADMIN_EMAIL environment variable
  3. 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_EMAIL environment variable. This user will have full administrative privileges.

Next Steps

Once you’ve completed the installation and registered your first user:
  1. Configure your first LLM: Add connections to AI providers like OpenAI, Anthropic, or Azure OpenAI
  2. Set up user management: Create additional users and configure permissions
  3. Explore the AI Portal: Try the chat interface and explore available tools
Continue to the First Steps guide for detailed configuration instructions.

Troubleshooting

If you encounter issues:
  1. Check that all required ports (8080, 9090) are available
  2. Ensure your .env file contains valid API keys and the correct ADMIN_EMAIL
  3. Verify that Docker and Docker Compose are properly installed
  4. Check the logs for any error messages: docker compose logs -f
  5. Registration issues: Make sure you’re using the exact email address from ADMIN_EMAIL