Skip to content

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 ​

  1. Make sure your key is correct (no stray spaces)
  2. 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 /v1 for anthropic-messages; include it for openai-responses
  3. 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.top
  • ANTHROPIC_AUTH_TOKEN=your Flash API key

To check:

Windows PowerShell:

powershell
echo $env:ANTHROPIC_BASE_URL
if ($env:ANTHROPIC_AUTH_TOKEN) { "ANTHROPIC_AUTH_TOKEN: set" } else { "ANTHROPIC_AUTH_TOKEN: not set" }

macOS/Linux:

bash
echo "$ANTHROPIC_BASE_URL"
if [ -n "$ANTHROPIC_AUTH_TOKEN" ]; then echo "ANTHROPIC_AUTH_TOKEN: set"; else echo "ANTHROPIC_AUTH_TOKEN: not set"; fi

If 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 /clear in 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:

text
https://ai.flashapi.top/v1

and 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:

bash
mkdir -p ~/.config/opencode
cd ~/.config/opencode
npm install @ai-sdk/anthropic

On Windows, the directory is:

powershell
cd $env:USERPROFILE\.config\opencode
npm install @ai-sdk/anthropic

2) 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:

json
{ "api": "openai-responses" }

and point baseUrl at:

text
https://ai.flashapi.top/v1

For 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:

  1. Tool name and version (e.g. claude --version)
  2. Your OS (Windows/macOS/Linux) and shell (PowerShell/zsh/bash)
  3. The Base URL you used (never send your key)
  4. A screenshot or the full error text

Contact:

One base URL for GPT, Claude and Gemini