NextChat with FrogDino: set the endpoint with BASE_URL
NextChat (formerly ChatGPT-Next-Web) is an open-source AI chat app. When deploying, the official README uses the BASE_URL environment variable for the OpenAI endpoint and OPENAI_API_KEY for the key.
Before you start: sign up and create a key
- Open the sign-up page and register with your email.
- Sign in and top up under Recharge. You pay for what you use; there is no monthly fee. Payment is by Alipay or WeChat Pay.
- Go to API Keys, click Create key and choose the GPT group. The full key is shown once, so save it right away.
After creating a key, click "Use key" in the console. It generates a complete config with your key filled in. This page explains the same settings.
Environment variables
| Variable | Value | Notes |
|---|---|---|
OPENAI_API_KEY | GPT-group key | required |
BASE_URL | https://frogdino.com | default is https://api.openai.com, without /v1 |
CUSTOM_MODELS | +gpt-6.1-sol | + adds a model; separate several with commas |
CODE | an access password of your choice | optional but strongly recommended |
The README warns that without CODE anyone can use your deployment and burn through your key's balance.
Docker example:
docker run -d -p 3000:3000 \
-e OPENAI_API_KEY=your-key \
-e BASE_URL=https://frogdino.com \
-e CUSTOM_MODELS=+gpt-6.1-sol \
-e CODE=your-access-password \
yidadaa/chatgpt-next-web
FAQ
Should BASE_URL include /v1?
No. The NextChat default is https://api.openai.com without /v1, so use https://frogdino.com.
My model is not in the list.
Add it with CUSTOM_MODELS, for example +gpt-6.1-sol. To show only specific models use -all,+gpt-6.1-sol.
Can one key be used for both Claude and GPT?
No. FrogDino keys belong to a group: a Claude-group key speaks the Anthropic protocol (base URL https://frogdino.com) and a GPT-group key speaks the OpenAI protocol (base URL https://frogdino.com/v1).
What if I get an invalid key or 401 error?
Check that the key was copied in full, that its group matches the protocol you selected, and that your balance is above zero.
Official documentation
Sign up and create a keyModels & pricing
Got an error? Look it up in the error code reference.