Get Amplify running and make your first AI request in under 10 minutes. Choose an installation method, configure your provider in the browser, and start chatting — no .env files required.
Installation
Amplify supports four installation methods. Pick the one that fits your environment.
First launch — Web UI provider setup
After starting Amplify, open your browser to the configured host:
- Local:
http://localhost:5173 - Docker:
http://localhost:5173(same port, container mapped) - Cloudflare: Your Pages domain
You don't need to edit any .env files. Amplify's Web UI lets you configure providers directly in the browser:
- Open Amplify in your browser
- Click themodel selector in the chat interface
- Pick a provider from the dropdown (OpenAI, Anthropic, Google, DeepSeek, Groq, Mistral, Ollama, and more)
- Enter your API key directly in the popup that appears
- Start chatting immediately
Your keys are stored securely in both localStorage and cookies (365-day expiry, sameSite: lax). They persist across sessions and are never sent to Amplify's servers — only directly to the provider's API.
Web UI is the primary setup method
The Web UI approach is the recommended and primary way to configure providers. It works for all installation methods — local, Docker, and Electron. No command-line configuration or .env editing is required for standard usage.
Local AI — zero-cost usage
You can use Amplify entirely for free with local AI providers. No API keys, no cloud costs — just install a local runtime and point Amplify to it.
Ollama is the easiest local provider to set up:
- Install Ollama from ollama.com
- Pull a model:
ollama pull llama3.1 - Open Amplify, click the model selector, and select Ollama as the provider
- Choose your pulled model from the list
- Start chatting — no API key needed
LMStudio works similarly — download it from lmstudio.ai, load a model, and select LMStudio as the provider in Amplify.
Base context lengths for popular local models
| Model | Context Length | Best For |
| Llama 3.1 8B | 128K tokens | General tasks, long documents |
| Qwen2.5 7B | 128K tokens | Code generation, multilingual |
| Mistral 7B | 32K tokens | Fast inference, general chat |
| CodeLlama 7B | 16K tokens | Code completion, debugging |
| DeepSeek Coder 6.7B | 16K tokens | Code generation, analysis |
Local provider configuration
Ollama defaults to http://127.0.0.1:11434 and LMStudio to http://127.0.0.1:1234. When running in Docker, Amplify automatically rewrites these to host.docker.internal so local providers remain accessible. No manual configuration needed.
Context length & memory management
Understanding how Amplify manages context is key to getting the best results. Context in Amplify works differently from single-chat tools — here's how.
How context works
Every LLM has a base context window : the maximum number of tokens it can process in a single request. For example, Llama 3.1 has a 128K context window. But effective context is not just about the raw window size.
Amplify uses smart context budgeting to make the most of every token:
- System prompt reserve: 8192 tokens are reserved for instructions, skills, and memory context
- Summarization threshold: When a chat reaches 70% of the usable context budget, older messages are summarized
- Verbatim retention: The last 3 messages are always kept in full — summaries only apply to older content
- Vector store retrieval: On every new chat, Amplify injects targeted context — 500 tokens of user profile and 1000 tokens of project context from the vector store
This means effective context decreases over time in a single chat (as older messages get summarized), but increases across chats via memory persistence. Each new chat starts fresh with a full context window, enhanced by relevant memories from previous conversations.
Why context budgeting matters
Without budgeting, a single chat eventually exhausts the entire context window. The AI becomes slower, starts hallucinating, and loses track of earlier instructions. Amplify's approach solves this by:
- Summarizing old messages instead of keeping them verbatim (saves thousands of tokens)
- Persisting key information in vector stores so it survives across chats
- Injecting only the most relevant context at the start of each new chat (not the entire history)
This is why Amplify's multi-chat architecture produces better results than single-chat tools — each sub-chat worker gets a focused, minimal context window, not the full baggage of every previous message.
Environment variables (advanced)
For advanced and server-side deployments
Environment variables are the advanced/server-side configuration method. They are useful for Cloudflare Pages, Docker deployments with pre-configured keys, and automated setups. For normal usage, the Web UI provider setup described above is the recommended approach — you don't need .env files at all.
If you need server-side configuration (e.g., Cloudflare Pages where users shouldn't see keys in the browser), set API keys via environment variables. Amplify uses a priority chain: cookies → localStorage → env vars → config defaults.
Create a .env.local file in the project root:
| Variable | Description | Where to get |
OPENAI_API_KEY | OpenAI GPT models | platform.openai.com/api-keys |
ANTHROPIC_API_KEY | Anthropic Claude | console.anthropic.com |
GOOGLE_GENERATIVE_AI_API_KEY | Google Gemini | makersuite.google.com/app/apikey |
DEEPSEEK_API_KEY | DeepSeek | platform.deepseek.com/api_keys |
GROQ_API_KEY | Groq (fast inference) | console.groq.com/keys |
MISTRAL_API_KEY | Mistral | console.mistral.ai/api-keys |
XAI_API_KEY | X.AI (Grok) | console.x.ai |
OLLAMA_API_BASE_URL | Ollama local models | http://127.0.0.1:11434 |
LMSTUDIO_API_BASE_URL | LMStudio local models | http://127.0.0.1:1234 |
OPEN_ROUTER_API_KEY | OpenRouter (meta routing) | openrouter.ai/keys |
COHERE_API_KEY | Cohere | dashboard.cohere.ai/api-keys |
CEREBRAS_API_KEY | Cerebras | cloud.cerebras.ai/settings |
FIREWORKS_API_KEY | Fireworks AI | fireworks.ai/api-keys |
PERPLEXITY_API_KEY | Perplexity | perplexity.ai/settings/api |
MOONSHOT_API_KEY | Moonshot (Kimi) | platform.moonshot.ai/console/api-keys |
ZAI_API_KEY | Z.AI (GLM models) | open.bigmodel.cn/usercenter/apikeys |
HuggingFace_API_KEY | Hugging Face | huggingface.co/settings/tokens |
HYPERBOLIC_API_KEY | Hyperbolic | app.hyperbolic.xyz/settings |
TOGETHER_API_KEY | Together AI | api.together.xyz/settings/api-keys |
GITHUB_API_KEY | GitHub Models | github.com/settings/tokens |
Docker environment
When running in Docker, set RUNNING_IN_DOCKER=true. The system automatically rewrites localhost and 127.0.0.1 to host.docker.internal for local provider connections (Ollama, LMStudio, OpenAILike).
Your first AI request
Type a natural language prompt and watch Amplify generate code in real time.
Example prompts:
Create a React todo app with TypeScript and shadcn/ui styling
Build a Next.js full-stack blog with SSR and API routes
Make an Expo mobile app with Expo Router and login screen
Design a SvelteKit dashboard with real-time data
Amplify's pipeline processes your request through:
- Template selection : AI picks the best starter template (or uses a blank workspace)
- Planning : The planning engine breaks complex tasks into sub-chats
- Code generation : AI writes files using native tools
- Verification : FlowVerifier checks the output for errors
- Live preview : WebContainer runs the project and shows it in the preview pane
How the chat pipeline works
The full chat pipeline is:
Prompt → Plan → Execute → Verify → Respond
- Your message enters the SSE streaming endpoint
- Context budget estimation checks if summarization is needed (70% threshold)
- Skills and memory are injected into the system prompt
- Systems calls the LLM with tools and context
- Native tools execute (read-only auto-execute, mutating require approval)
- Mutation signals are applied to the WebContainer
Read the architecture overview
FAQ
Can I commercialize Amplify by forking it?
If you plan to use the WebContainer architecture (browser-based sandbox), you will need to purchase a license from StackBlitz as they own the WebContainer API and runtime. The WebContainer technology is proprietary and requires a commercial license for production use beyond personal/educational purposes.
However, if you migrate the sandbox layer to a self-hosted Docker container or any other container runtime (local or cloud), you are free to commercialize, fork, and distribute the project under its open-source license. The AI layer, frontend, and all other components are fully open-source — only the WebContainer sandbox runtime has licensing restrictions.
How does Amplify save tokens compared to single-chat tools?
Tools like Bolt, v0, and Lovable continue developing in one single chat, which means the context window grows linearly with each message. This makes the AI progressively slower and introduces wrong context and irrelevant preferences as the chat gets longer.
Amplify's approach is fundamentally different:
Sub-chat workers : Each PlanPoint in the planning engine gets its own isolated sub-chat with a focused, minimal context
Reusable memory : After each chat completes, key information (decisions, errors, patterns, preferences) is extracted and stored in vector stores
Cross-chat persistence : New chats start fresh but with targeted context injection from the vector stores (500 tokens for user preferences, 1000 tokens for project context), not the full history of all previous chats
Summarization : Long chats are summarized at the 70% threshold, keeping only the last 3 messages verbatim
This means each new chat is fast, focused, and accurate — not bogged down by hundreds of irrelevant previous messages.