Troubleshooting
This page covers connection failures, timeouts, errors and tools that won't start. Work through it in order. Changing five settings at once is how one problem becomes three.
Start here
- Make sure your key is correct (no stray spaces)
- Make sure the Base URL is right:
- Official Anthropic SDK and Claude Code:
https://ai.flashapi.top(without/v1) - OpenAI SDK, Codex and OpenCode (including
@ai-sdk/anthropic):https://ai.flashapi.top/v1 - OpenClaw: omit
/v1foranthropic-messages; include it foropenai-responses
- Official Anthropic SDK and Claude Code:
- Make sure your network can reach that address
Claude Code issues
1) It keeps asking me to log in, or uses the official service
First confirm you've set:
ANTHROPIC_BASE_URL=https://ai.flashapi.topANTHROPIC_AUTH_TOKEN=your Flash API key
To check:
Windows PowerShell:
echo $env:ANTHROPIC_BASE_URL
if ($env:ANTHROPIC_AUTH_TOKEN) { "ANTHROPIC_AUTH_TOKEN: set" } else { "ANTHROPIC_AUTH_TOKEN: not set" }macOS/Linux:
echo "$ANTHROPIC_BASE_URL"
if [ -n "$ANTHROPIC_AUTH_TOKEN" ]; then echo "ANTHROPIC_AUTH_TOKEN: set"; else echo "ANTHROPIC_AUTH_TOKEN: not set"; fiIf the variables are empty, they never took effect. Redo the guide for your OS:
2) 400 errors or a broken session
Usually a session-state problem. You can:
- Run
/clearin the tool to start a fresh session - Or quit and restart the tool
Codex issues
1) I edited the config but nothing changed
First confirm the config files exist:
- macOS/Linux:
~/.codex/config.toml,~/.codex/auth.json - Windows:
%USERPROFILE%\.codex\config.toml,%USERPROFILE%\.codex\auth.json
Then confirm base_url is:
https://ai.flashapi.top/v1and that the key field in auth.json is named OPENAI_API_KEY.
OpenCode issues
1) It can't find the SDK on startup
OpenCode needs the SDK installed in its config directory:
mkdir -p ~/.config/opencode
cd ~/.config/opencode
npm install @ai-sdk/anthropicOn Windows, the directory is:
cd $env:USERPROFILE\.config\opencode
npm install @ai-sdk/anthropic2) The config file has a JSON error
To find it quickly:
- Look for missing commas or quotes
- Paste the file into an online JSON validator
OpenClaw issues
1) doctor says the provider/api config is wrong
For GPT with the OpenAI Responses format, set api to:
{ "api": "openai-responses" }and point baseUrl at:
https://ai.flashapi.top/v1For Claude with the native Anthropic format, use api: "anthropic-messages" and set baseUrl to https://ai.flashapi.top (without /v1). Do not mix the two configurations.
Still stuck?
Have this ready before you contact support. It speeds things up a lot:
- Tool name and version (e.g.
claude --version) - Your OS (Windows/macOS/Linux) and shell (PowerShell/zsh/bash)
- The Base URL you used (never send your key)
- A screenshot or the full error text
Contact:
- /en/help/support
- Telegram: @CryptoDoge2025