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
| Symptom | Likely cause | What to do |
|---|---|---|
| Account disabled message after login | Anthropic disabled the account | Appeal to Anthropic; meanwhile connect with an API key |
Subscription inactive, /login keeps failing | Subscription or payment issue | Check official billing; use an API key for now |
401 / invalid x-api-key | Wrong key, or an old login overrides the config | Paste the full key into ANTHROPIC_AUTH_TOKEN, run /logout, restart |
403 or region not supported | Your network or region is not officially supported | See supported regions or connect through the relay |
Official vs relay
| Official subscription | API relay (AICodeWith) | |
|---|---|---|
| Depends on | Your Claude account status | Only an AICodeWith key |
| Billing | Subscription period | Pay per token; balance valid for 12 months, no monthly reset |
| Setup | /login | Base URL and key in the global config |
| Account problems | Appeal to Anthropic | We 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. Create a key
Sign up, open API Keys in the dashboard and create a key. See how to get an API key.
2. Edit Claude Code's global config
Open the global config
~/.claude/settings.json, put the Base URL and key inenv, 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. Verify
Run
claude, then/status. If the Base URL showshttps://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: