Q&A · Updated

Claude Code account banned: can you still use it?

You can keep using the Claude Code tool, but not through the old account. Only Anthropic can handle bans and appeals; we cannot restore accounts and make no promises about bans. To get back to work, use an API key instead: in the global config ~/.claude/settings.json, point the Base URL at https://api.aicodewith.ai and pay per token from your balance, with no Claude account login.

Symptoms

SymptomLikely causeWhat to do
Account disabled message after loginAnthropic disabled the accountAppeal to Anthropic; meanwhile connect with an API key
Subscription inactive, /login keeps failingSubscription or payment issueCheck official billing; use an API key for now
401 / invalid x-api-keyWrong key, or an old login overrides the configPaste the full key into ANTHROPIC_AUTH_TOKEN, run /logout, restart
403 or region not supportedYour network or region is not officially supportedSee supported regions or connect through the relay

Official vs relay

Official subscriptionAPI relay (AICodeWith)
Depends onYour Claude account statusOnly an AICodeWith key
BillingSubscription periodPay per token; balance valid for 12 months, no monthly reset
Setup/loginBase URL and key in the global config
Account problemsAppeal to AnthropicWe cannot appeal or restore official accounts

Minimal setup: point your global config at AICodeWith

Only the global config changes; project files stay as they are. Other tools: integration guides.

  1. 1. Create a key

    Sign up, open API Keys in the dashboard and create a key. See how to get an API key.

  2. 2. Edit Claude Code's global config

    Open the global config ~/.claude/settings.json, put the Base URL and key in env, save and restart Claude Code. The Base URL is the bare domain, with no /v1.

    ~/.claude/settings.json
    {
      "env": {
        "ANTHROPIC_BASE_URL": "https://api.aicodewith.ai",
        "ANTHROPIC_AUTH_TOKEN": "sk-你的Key"
      }
    }
    
  3. 3. Verify

    Run claude, then /status. If the Base URL shows https://api.aicodewith.ai, you are connected.

Channel tips

  • Pay as you go, no monthly or yearly plan: top up a balance and pay per token used. The balance stays valid for 12 months and does not reset monthly.
  • One model can run through several channels with different prices (discounts) and routes. New accounts have the recommended channels on by default.
  • If one channel errors or slows down, switch to another channel for the same model in the dashboard. See the pricing page for current prices.

Get connected now

Sign up, create a key and edit your global config as shown above.

FAQ

Can using a relay get me banned too?

We make no promises about bans. The relay uses an AICodeWith key and never logs in to your Claude account; follow the applicable terms of service.

Can you restore my banned Claude account?

No. Only Anthropic handles bans and appeals for official accounts.

Do I need to redo my projects?

No. Only the Base URL and key in ~/.claude/settings.json change; project files are untouched.

Does the balance expire?

The balance stays valid for 12 months and does not reset monthly; each top-up counts from its own date.

Which other tools work?

The same key works with Codex, OpenCode, Cline, Cursor and more; see the integration guides.

Updated: