English | δΈζ
AI-powered development overlay for Next.js. Awel runs a proxy in front of your dev server, injects a floating chat button into your app, and lets you talk to an AI agent that can read, write, and edit files in your project β all from an embedded dashboard.
# Set up at least one AI provider (pick one):
export ANTHROPIC_API_KEY="sk-ant-..." # Anthropic API
export OPENAI_API_KEY="sk-..." # OpenAI
export GOOGLE_GENERATIVE_AI_API_KEY="..." # Google AI
# Or install the Claude CLI: https://docs.anthropic.com/en/docs/claude-code
npx awel createThis scaffolds a new Next.js project and marks it for creation mode. Follow the instructions to cd into the project and run npx awel dev. You'll see a full-page creation UI where you describe what you want to build β the AI agent generates the entire app for you, then transitions to the normal Awel overlay.
cd my-existing-next-app
npx awel devAwel needs at least one configured provider to function. See Supported Models for the full list.
This starts Awel on port 3001 and proxies your Next.js dev server on port 3000. Open http://localhost:3001 to see your app with the Awel overlay.
awel create Create a new Next.js project with Awel
awel dev [options] Start the development server with Awel overlay
-p, --port <port> Target app port (default: 3000)
-v, --verbose Print LLM stream events to stderr
--no-open Do not open browser automatically
Awel sits between your browser and your dev server:
Browser β Awel (proxy on :3001) β Your app (dev server on :3000)
- Awel intercepts HTML responses and injects a small script into the page
- The script renders a floating button (bottom-right corner, isolated via Shadow DOM)
- Clicking it opens a full-screen chat dashboard in an iframe
- You describe what you want β the AI agent reads your code, makes edits, runs commands, and streams results back in real-time
HMR/WebSocket traffic is proxied through transparently and paused during agent file edits to prevent reload interference.
Awel uses the Vercel AI SDK and supports multiple providers. Set the corresponding environment variable to enable a provider:
| Provider | Env Var | Example Models |
|---|---|---|
| Claude Code | Claude CLI in PATH | sonnet, opus, haiku |
| Anthropic API | ANTHROPIC_API_KEY |
claude-sonnet-4-5, claude-opus-4-5 |
| OpenAI | OPENAI_API_KEY |
gpt-5.2-codex, gpt-5.1-codex |
| Google AI | GOOGLE_GENERATIVE_AI_API_KEY |
gemini-3-pro-preview, gemini-2.5-pro |
| MiniMax | MINIMAX_API_KEY |
MiniMax-M2 |
| Zhipu AI | ZHIPU_API_KEY |
glm-4-plus, glm-4-flash |
| Vercel Gateway | AI_GATEWAY_API_KEY |
Various models via gateway |
| OpenRouter | OPENROUTER_API_KEY |
Any model via OpenRouter |
Switch models at any time from the dropdown in the dashboard header.
Note: Claude Code models use "YOLO mode" β they automatically approve all file edits and shell commands without asking for confirmation. A warning is shown when selecting these models.
| Variable | Description |
|---|---|
OPENAI_BASE_URL |
Custom base URL for the OpenAI provider (e.g. a proxy or compatible API). Defaults to https://api.openai.com/v1. |
AWEL_MAX_OUTPUT_TOKENS |
Maximum number of tokens the model can generate per response. Applies to all providers. |
The AI agent has access to:
- Read / Write / Edit / MultiEdit β file operations (with optional user confirmation)
- Bash β run shell commands (with optional user confirmation)
- Glob / Grep / Ls / CodeSearch β find files and search code
- WebSearch / WebFetch β look things up on the web
- ProposePlan β propose a multi-step plan for your approval before executing
- AskUser β ask you clarifying questions mid-stream
- RestartDevServer β restart your dev server after config changes
- TodoRead / TodoWrite β track tasks across the conversation
- Memory β store and retrieve persistent project knowledge
-
Element inspector β click the crosshair icon to select an element in your app and attach it as context to your prompt
-
Screenshot annotator β annotate screenshots with shapes, arrows, and text before sending to the agent
-
Image attachments β attach screenshots or reference images
-
Plan approval β the agent can propose plans for you to review before making changes
-
Tool confirmation β approve or deny file edits and shell commands before they execute (non-Claude Code models)
-
Undo β roll back all file changes from an agent session in one click
-
Diff review β review a summary of all file changes before accepting
-
Memory β the agent can save and recall project-specific knowledge across sessions
-
Dark mode β follows your system preference
-
i18n β English and Chinese
-
Creation mode β
awel createscaffolds a new project and launches a full-page AI chat where you describe your app and the agent builds it from scratch
npm run build # Build everything
npm run dev # Watch mode (CLI only)
npm run test # Run tests
npm run test:watch # Watch mode for testsIndividual builds:
npm run build:cli # TypeScript β dist/cli/
npm run build:dashboard # Vite β dist/dashboard/
npm run build:host # esbuild β dist/host/host.jsMIT


