Deploy ChatGPT Next Web with Crazyrouter — Vercel one-click deploy, 300+ models, 45% cheaper.
Crazyrouter — One API key for all AI models.
| Model | Official (In/Out per 1M tokens) | Crazyrouter | Savings |
|---|---|---|---|
| Claude Opus 4 | $15 / $75 | $8.25 / $41.25 | 45% |
| GPT-4o | $2.50 / $10 | $1.38 / $5.50 | 45% |
| Claude Sonnet 4 | $3 / $15 | $1.65 / $8.25 | 45% |
Set these environment variables in Vercel:
OPENAI_API_KEY:sk-your-crazyrouter-keyBASE_URL:https://crazyrouter.com?utm_source=github&utm_medium=github&utm_campaign=dev_communityCUSTOM_MODELS:+claude-sonnet-4-20250514,+claude-opus-4-20250514,+gemini-2.5-pro
docker run -d \
--name nextchat \
-p 3000:3000 \
-e OPENAI_API_KEY=sk-your-crazyrouter-key \
-e BASE_URL=https://crazyrouter.com?utm_source=github&utm_medium=github&utm_campaign=dev_community \
-e CUSTOM_MODELS="+claude-sonnet-4-20250514,+claude-opus-4-20250514" \
yidadaa/chatgpt-next-webversion: "3.8"
services:
nextchat:
image: yidadaa/chatgpt-next-web
ports:
- "3000:3000"
environment:
- OPENAI_API_KEY=sk-your-crazyrouter-key
- BASE_URL=https://crazyrouter.com?utm_source=github&utm_medium=github&utm_campaign=dev_community
- CUSTOM_MODELS=+claude-sonnet-4-20250514,+claude-opus-4-20250514,+gemini-2.5-pro
restart: unless-stoppedUse CUSTOM_MODELS env var to add models. Prefix with + to add:
+claude-sonnet-4-20250514,+claude-opus-4-20250514,+gemini-2.5-pro,+gpt-4o-mini
# Set access password
-e CODE=your-password
# Hide user API key settings
-e HIDE_USER_API_KEY=1Q: Does NextChat work with Crazyrouter? A: Yes, fully compatible. Set BASE_URL to Crazyrouter.
Q: Can I use Claude models? A: Yes! Add them via CUSTOM_MODELS environment variable.
Q: Is it free to host on Vercel? A: Yes, Vercel free tier is sufficient for personal use.
Q: How to update?
A: Docker: docker pull yidadaa/chatgpt-next-web && docker compose up -d
Vercel: Auto-updates from GitHub.
- 🌐 Crazyrouter
- 🚀 NextChat
- 💬 Telegram
MIT