Skip to content

xujfcn/crazyrouter-nextchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🚀 NextChat + Crazyrouter Setup Guide

Deploy ChatGPT Next Web with Crazyrouter — Vercel one-click deploy, 300+ models, 45% cheaper.

Crazyrouter — One API key for all AI models.

💰 Price Comparison

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%

⚡ Deploy Methods

Method 1: Vercel (Recommended, Free Hosting)

Deploy with Vercel

Set these environment variables in Vercel:

  • 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

Method 2: Docker

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-web

Method 3: Docker Compose

version: "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-stopped

⚙️ Configuration

Add Custom Models

Use 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

Access Control

# Set access password
-e CODE=your-password

# Hide user API key settings
-e HIDE_USER_API_KEY=1

❓ FAQ

Q: 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.

🔗 Links

📄 License

MIT

About

Deploy NextChat (ChatGPT Next Web) with Crazyrouter — Vercel one-click deploy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors