Docs

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_KEY

The 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 / LinuxWindowsWhat it does
--key KEY-Key KEYYour Gatelum API key. Without it the installer reads GATELUM_API_KEY or asks you to type the key.
GATELUM_API_KEY$env:GATELUM_API_KEYEnvironment variable with the key, so it never appears in the command line.
--tools LIST-Tools LISTComma separated tools to configure: claude, codex, opencode. By default the installer detects the tools you have.
--model ID-Model IDMain model for every chosen tool. By default the model from the Gatelum guide of that tool.
--small-model ID-SmallModel IDSmall and fast model for Claude Code.
--dry-run-DryRunPrints the target files and their new content and writes nothing.
--uninstall-UninstallRemoves only what this installer wrote.
--help-HelpShows 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.

ToolmacOS / LinuxWindowsWhat is written
Claude Code~/.claude/settings.json%USERPROFILE%\.claude\settings.jsonThe env block: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and the model variables ANTHROPIC_*.
Codex CLI~/.codex/config.toml%USERPROFILE%\.codex\config.tomlThe [model_providers.gatelum] section with the gateway address.
Codex CLI~/.codex/gatelum.config.toml%USERPROFILE%\.codex\gatelum.config.tomlThe gatelum profile with the provider and the model. Start Codex with codex --profile gatelum.
Codex CLI~/.codex/auth.json%USERPROFILE%\.codex\auth.jsonYour Gatelum key as OPENAI_API_KEY.
OpenCode~/.config/opencode/opencode.json%USERPROFILE%\.config\opencode\opencode.jsonThe 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.
The key lands in shell historyA command with --key stays in your shell history. To avoid that, set GATELUM_API_KEY first, or run the command without --key and type the key when asked. Clear the history or rotate the key if it has already landed there.
Codex: ChatGPT sign-in is replacedCodex reads the key from auth.json, so writing it replaces your ChatGPT sign-in until you run the installer with --uninstall. The old file is backed up first.

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.

Manual setup guides

Prefer to set a tool up yourself? Every guide has the manual steps.