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 and setsautoCompactWindowto250000(explained under Manual configuration below). 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.
autoCompactWindow: Claude Code treats Fable 5, Sonnet 5 and Opus 4.7 or later as 1M-token context models, while the gateway accepts about 280K tokens per turn. Set 250000 so Claude Code compacts the conversation before reaching that limit. Without it, long sessions stop with Autocompact is thrashing. In an open session, typing /autocompact 250k once does the same.
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.Autocompact is thrashing: type/autocompact 250k(or run the install command again), then/clearto start a fresh session. For very large files or logs, ask Claude to read them in chunks.- Otherwise see Troubleshooting.
