config/app.config.ts. This page documents all available options.
Configuration File
config/app.config.ts
AI Configuration
Control AI model selection and behavior:Model Selection
Enable the model selector in the UI by adding?model=true to the URL:
Adding New Models
To add a new AI model:- Add the model ID to
availableModels - Add a display name in
modelDisplayNames - Ensure the provider is configured in your
.env
Sandbox Configuration
Modal Settings
E2B Settings
Vercel Sandbox Settings
Code Application
Configure how AI-generated code is applied:Package Management
UI Configuration
File Handling
API Settings
Development Options
Environment Variables
Required and optional environment variables:Required
| Variable | Description |
|---|---|
GEMINI_API_KEY | Google Gemini API key (default model) |
SANDBOX_PROVIDER | Provider: modal, e2b, or vercel |
Provider-Specific
| Variable | Required When | Description |
|---|---|---|
MODAL_BACKEND_URL | provider=modal | Deployed Modal backend URL |
E2B_API_KEY | provider=e2b | E2B API key |
Optional AI Providers
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic Claude API key |
OPENAI_API_KEY | OpenAI API key |
GROQ_API_KEY | Groq API key (for Kimi K2) |
Using the Config
Direct Access
Type-Safe Getter
Nested Value Access
Runtime Configuration
Some settings can be changed at runtime via URL parameters:| Parameter | Effect |
|---|---|
?model=true | Show model selector |
?prompt=... | Pre-fill prompt |
?screen=mobile | Set screen size |
?image1=... | Add reference image URL |