Getting Started

Troubleshooting

Look up the HTTP status code or the message you received. Most errors come from a wrong Base URL, a wrong key, or calling a model that is not in your key's package.

Before digging in, run the test command in Quick start. If the test works but your tool still fails, the problem is in the tool's configuration.

401: Invalid token

The key is wrong, or it is being sent to the wrong server.

  • Base URL not changed (the most common cause): the tool still sends your ShopAIKey key to the original Anthropic/OpenAI/Google server, which rejects it. Change the Base URL using the table in Quick start.
  • Copy the key again from API Keys or the email, and make sure there are no extra spaces, line breaks or quotes.
  • Check that the key is enabled (Status column in API Keys).
  • OpenAI-style tools send the key as Authorization: Bearer sk-..., Anthropic as x-api-key. If you write your own code, use the right header.
  • Claude Code: an old ANTHROPIC_API_KEY variable (from Anthropic) can override your ShopAIKey key. Remove it or set it to the same value as ANTHROPIC_AUTH_TOKEN.

403 out of balance: token quota is not enough, This token quota is exhausted, Insufficient quota

There are two possible causes:

  1. Your key is out of credit, or the remaining credit is not enough for this request (long contexts cost more).
  2. Your key still has credit but an upstream channel has temporarily run out of quota. This comes from the provider side, not your key. You do not need to do anything: wait a while and retry, the system recovers on its own.

How to tell: check your key's balance first. If credit remains, it is case 2, just wait. If the credit is used up, top up:

  • Check the balance in the Usage column of API Keys, or enter your key in Check balance on the home page.
  • Top up with the Top up button next to the key in API Keys, or the Top up a key section on the home page. The key stays the same, no config change needed.

404 / 503: No available channel for model ... under group ...

The model you called is not in your key's package (group). For example the key only has the Claude package but you called gpt-5-mini.

  • See your key's packages in the Model group column of API Keys.
  • See which models each package has on Model pricing, and switch to a model in your package.
  • Want other models: click the Change model group pencil button to add packages to the key.

Related messages: This token has no access to model ..., Model "..." is not supported.

Wrong model name

Model names must match Model pricing exactly, e.g. claude-sonnet-4-5, not Claude Sonnet 4.5. In Cline/Roo Code/Cursor, enter it in the Model ID field.

429: The upstream is overloaded for this group, rate limit

The upstream provider is overloaded or you are sending too many requests at once. The system already retries several times before returning this error.

  • Wait a few seconds and retry. Most tools (Claude Code, Cline...) retry automatically.
  • Reduce the number of parallel requests.
  • If it keeps happening for minutes on one model, try another model in the same package and contact support.

500 / 502 / 503 / 504

Temporary upstream errors. You are not charged for failed requests. Retry in a few minutes. If it keeps happening, send support the request id from the error message.

400: Unrecognized request argument, reasoning_effort, content management policy

  • Unrecognized request argument / reasoning_effort: the model does not support a parameter you sent. Remove it (e.g. reasoning_effort) or switch models.
  • content management policy: the provider's safety filter blocked the content. Rephrase the prompt and retry.

Claude Code issues

Claude Code still shows the Anthropic login screen

  1. Check that ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json) contains both ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN and is valid JSON.
  2. Close the terminal, open a new one and run claude again.
  3. If it still shows, open ~/.claude.json and add "hasCompletedOnboarding": true inside the outermost { }.

404 or cannot connect

ANTHROPIC_BASE_URL must be https://api.shopaikey.com, without /v1 and without a trailing /.

Auth conflict / wrong key used

Both ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN are set. Remove ANTHROPIC_API_KEY from your environment (or run /logout in Claude Code if you previously logged in with an Anthropic account).

Cline / Roo Code / Cursor issues

  • Base URL must include /v1: https://api.shopaikey.com/v1.
  • API Provider should be OpenAI Compatible (not OpenAI or Anthropic unless a guide says otherwise).
  • Cursor says "Invalid API key" on Verify: make sure Override OpenAI Base URL is enabled and the model name is in your key's package.

Still stuck?

Contact support on Telegram @shopaikey_support and include:

  1. The tool you use (Claude Code, Cline, Cursor...) and your OS.
  2. The full error message, including the request id.
  3. The last 6 characters of your key (never the full key).