Install with one command
One command configures Claude Code, Codex CLI and OpenCode for Gatelum: it writes the gateway address, your key and the default models into each tool config. Below are the flags, the files it changes, the safety measures and how to undo it.
Commands
Run the command for your system in a terminal. It configures every supported tool it finds on the machine.
curl -fsSL https://gatelum.com/install.sh | sh -s -- --key glt_YOUR_KEYThe cabinet shows this command with your real key right after you create a key.Open API keys
Flags
Flags go after the command. On Windows the same options are PowerShell parameters.
| macOS / Linux | Windows | What it does |
|---|---|---|
--key KEY | -Key KEY | Your Gatelum API key. Without it the installer reads GATELUM_API_KEY or asks you to type the key. |
GATELUM_API_KEY | $env:GATELUM_API_KEY | Environment variable with the key, so it never appears in the command line. |
--tools LIST | -Tools LIST | Comma separated tools to configure: claude, codex, opencode. By default the installer detects the tools you have. |
--model ID | -Model ID | Main model for every chosen tool. By default the model from the Gatelum guide of that tool. |
--small-model ID | -SmallModel ID | Small and fast model for Claude Code. |
--dry-run | -DryRun | Prints the target files and their new content and writes nothing. |
--uninstall | -Uninstall | Removes only what this installer wrote. |
--help | -Help | Shows the list of options. |
Files it changes
The paths are the same on every run. For Codex the folder follows the CODEX_HOME variable when it is set.
| Tool | macOS / Linux | Windows | What is written |
|---|---|---|---|
| Claude Code | ~/.claude/settings.json | %USERPROFILE%\.claude\settings.json | The env block: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and the model variables ANTHROPIC_*. |
| Codex CLI | ~/.codex/config.toml | %USERPROFILE%\.codex\config.toml | The [model_providers.gatelum] section with the gateway address. |
| Codex CLI | ~/.codex/gatelum.config.toml | %USERPROFILE%\.codex\gatelum.config.toml | The gatelum profile with the provider and the model. Start Codex with codex --profile gatelum. |
| Codex CLI | ~/.codex/auth.json | %USERPROFILE%\.codex\auth.json | Your Gatelum key as OPENAI_API_KEY. |
| OpenCode | ~/.config/opencode/opencode.json | %USERPROFILE%\.config\opencode\opencode.json | The provider.gatelum entry with the gateway address, the key and the model. |
Safety and undo
- The key is checked against the gateway before anything is written. A rejected key or an unreachable gateway changes nothing.
- Every existing file is copied to FILE.bak-TIMESTAMP before it changes.
- Merging keeps your other settings: only the Gatelum entries are added or replaced.
- On macOS and Linux without node or python3 an existing JSON file is not touched. The installer writes a FILE.gatelum.json fragment next to it and prints what to merge by hand.
- Files that contain the key get access mode 600, readable by you only.
- --dry-run shows what would change without writing anything.
- --uninstall removes only what the installer wrote and restores the Codex auth.json from the backup when there is one.
Questions
Does the installer configure Zed?
No. Zed keeps the key outside its settings file, so it is set up by hand. Use the Zed guide.
Does the installer configure Cline?
No. Cline is configured in its own settings screen, not in a file. Use the Cline guide.
Does the installer configure Kilo Code?
No, the installer covers only Claude Code, Codex CLI and OpenCode. Kilo Code has no Gatelum guide yet. Its provider accepts any OpenAI compatible address, so the values on the guides page fit it.
Does the installer configure GitHub Copilot Chat?
No. The installer covers only Claude Code, Codex CLI and OpenCode. There is no Gatelum guide for Copilot Chat yet, and the list of tools with guides is on the guides page.
Is it safe to pipe a script into sh?
Read it first: download the script and open it, for example with the command below, then run the installer. The script is plain text and short enough to read in a few minutes.
curl -fsSL https://gatelum.com/install.sh | less
How do I undo the installation?
Run the same command with --uninstall (-Uninstall on Windows). It removes only the entries the installer wrote and restores the Codex auth.json from the backup. Use --dry-run first to see what would be removed.
Which PowerShell version do I need?
Windows PowerShell 5.1 or newer. PowerShell 7 works too.