Configuration File
All configuration is done through the.env file in the root directory. Start by copying the example:
Required Variables
These variables must be set for Tesslate Studio to function.SECRET_KEY
Secret key for JWT token signing and session encryption.
LITELLM_MASTER_KEY
Master key for LiteLLM proxy authentication.
AI Provider API Keys
At least one AI provider API key is required for Tesslate Studio to generate code.
- OpenAI
- Anthropic
- Google
- Azure OpenAI
Optional Variables
Application Settings
Domain where Tesslate Studio is hosted.
Protocol for accessing the application. Options:
http, httpsFull URL where the frontend is accessible.
Database Configuration
PostgreSQL connection string in asyncpg format.
PostgreSQL username (Docker only).
PostgreSQL password (Docker only).
Change the default password in production environments!
PostgreSQL database name (Docker only).
LiteLLM Configuration
Comma-separated list of default AI models.
Initial API budget per user in USD.
LiteLLM proxy endpoint URL.
Container Runtime
Container orchestration system to use. Options:
dockerPath to Docker socket for container management.Default:
/var/run/docker.sock (Linux/Mac), //./pipe/docker_engine (Windows)Auto-Seeding
Automatically seed database with agents and templates on startup.
- 4 marketplace agents (Stream Builder, Full Stack Agent, etc.)
- 3 project templates (Next.js, Vite+React+FastAPI, Vite+React+Go)
- 6 open-source customizable agents
GitHub Integration
GitHub OAuth app client ID. Required for GitHub integration.
GitHub OAuth app client secret.
Create OAuth app at https://github.com/settings/developers
Logging
Application logging level. Options:
DEBUG, INFO, WARNING, ERROR, CRITICALProduction Configuration
Recommended settings for production deployments:Local AI Models (Ollama)
To use local AI models with Ollama:Configuration Examples
Troubleshooting
Invalid SECRET_KEY
Invalid SECRET_KEY
Problem: SECRET_KEY is missing or invalid.Solution: Generate a new key and update
.env:Database connection failed
Database connection failed
Problem: PostgreSQL is not accessible.Solution:
API key not found
API key not found
Problem: Missing or invalid AI provider API key.Solution:
- Verify key in
.envhas no extra spaces - Test key with provider directly
- Restart orchestrator: