One-command install
Replacesk-xxx with your Claude package key, paste into a terminal and press Enter. The script verifies the key, lists the Claude models it may call and lets you pick the main one (Enter = claude-opus-5), installs Claude Code and writes the configuration.
- macOS / Linux
- Windows
--lang en or --lang vi). Without --key it prompts for the key. To force the main model add --model claude-fable-5-1.gpt.teamsoclo.site for verification.
What the script does
- Verifies the key with the gateway; a key with no Claude models stops here without touching your machine.
- Picks models: main
claude-opus-5(if your key has it), fast model for background tasksclaude-haiku-4-5, otherwise the best available in order of preference. - Requires Node.js 18+; installs or upgrades Claude Code with
npm install -g @anthropic-ai/claude-code. - Backs up
~/.claude/settings.jsonassettings.json.bak.<timestamp>, then writes theenvblock pointing at the gateway. Everything else in the file (permissions, hooks…) is preserved.
After installing
1
Open a new terminal, go to your project, run claude
2
Switch model in a session
Type
/model and pick. Models in the package: claude-fable-5-1, claude-fable-5, claude-opus-5, claude-opus-5-5, claude-opus-4-8 / 4-7 / 4-6, claude-sonnet-5, claude-sonnet-4-6, claude-haiku-4-5. Stronger models burn credits faster, see Models and packages.3
VS Code / JetBrains extension
Install the Claude Code extension and restart the editor; it reads the same
~/.claude/settings.json.Manual configuration
~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json) needs this env block; keep any other entries you already have:
ANTHROPIC_SMALL_FAST_MODEL matters: Claude Code uses a small model for background tasks, and without it it calls a model name your package does not have.
With the Anthropic SDK
/v1/chat/completions, model claude-...) in Cursor, Cline and Chatbox, see cURL / Python.
Uninstall
- macOS / Linux
- Windows
ANTHROPIC_* lines in settings.json, or copy settings.json.bak.<timestamp> back.If it does not work
- The key is from the Claude package (the check page lists
claude-...models). ANTHROPIC_BASE_URLhas no trailing/v1.- You opened a new terminal after installing.
model not foundfor an unexpected model: setANTHROPIC_SMALL_FAST_MODELas above.- Otherwise see Troubleshooting.
