Skip to content
Sign in

Agents

Impact CLI

Install the impact command, sign in once and start your coding agent through Impact.

On this page

impact launches a coding agent you already have installed and routes that session through Impact using your API key and the language models on Models. It leaves the agent's own config files untouched, and you don't need an Anthropic or OpenAI account.

Install

Run the install script for your operating system:

curl -fsSL https://impact-relay.com/install.sh | sh

Node.js is installed automatically if missing. If your computer doesn't have Node.js yet (or has a version older than 22.13), the script runs the official Node.js setup for your OS first and then installs @impact-relay/cli. If impact isn't on your PATH yet, the script prints the line to add. You can open the script URL in a browser to inspect it before running.

Install manually with npm

Manual installation with npm requires Node.js 22.13 or later. If you need to install or update Node.js first, download it from nodejs.org/en/download: use the .pkg installer on macOS, the .msi installer on Windows, or the official package and version-manager options on Linux.

npm install --global @impact-relay/cli
impact --version

Always install globally with --global rather than running via npx, because Claude Code invokes impact directly during a session.

Sign in

impact login

Your browser opens to confirm the device code shown in the terminal — click Approve Impact CLI. The CLI creates an API key named Impact CLI (<hostname>) that pays from your BYOK accounts first, then plan credits, then your balance; you can adjust its billing order or revoke it anytime on API keys.

Headless sign-in, existing keys, and where credentials are stored
SituationCommand
SSH or no browserimpact login --no-browser, then open the printed URL on any device
Existing API keyimpact login --api-key, then paste your sk-imp-… key
Scriptsprintf %s "$KEY" | impact login --key-stdin
CI and containersIMPACT_API_KEY=sk-imp-… impact <command> (nothing is saved)
  • Key lifecycle. Signing in again revokes the key created by a previous browser impact login stored in the same credentials.json. Keys you supply yourself via --api-key or --key-stdin are never revoked by the CLI.
  • Config folder. Your key is stored in credentials.json (readable only by your OS user) inside ~/.config/impact on Linux, ~/Library/Preferences/impact on macOS, or %APPDATA%\impact\Config on Windows. Set IMPACT_CONFIG_DIR to use a different directory.

Launch a client

Run the command from your project directory; the client itself must already be installed.

ClientCommandNote
Claude Codeimpact claude
Codeximpact codexCodex CLI only, not Codex Desktop; needs the local proxy
Cursorimpact cursor .Cursor Desktop: chat, Agent and Tab; needs the local proxy
Antigravityimpact antigravityThe IDE and the Agents app; needs the local proxy
Kilo Codeimpact kiloKilo CLI, not the editor extension
OpenCodeimpact opencode
  • Arguments, stdin and exit codes pass straight through, so impact claude --continue and impact codex exec "…" work as usual.
  • Codex, Cursor and Antigravity require the local proxy: set it up once and keep it running.
  • To choose the starting model, pass the client's --model flag or set IMPACT_MODEL to any language model ID from Models: IMPACT_MODEL=claude-sonnet-5-5 impact claude. In Kilo and OpenCode, prefix the ID with impact/: --model impact/claude-sonnet-5-5.
  • In Codex, GPT models also support higher-speed tiers: see Fast and Ultrafast.

Check your account

  • impact prints your signed-in email, current balance and available commands.
  • impact status shows Credits, Held (reserved for in-flight requests) and Available, followed by your spend per model over the last 7 days.
  • impact doctor checks your Config folder, API endpoint, saved key and installed coding clients. It works even before you sign in.

Local proxy

Codex, Cursor and Antigravity cannot be pointed at Impact with a single URL setting, so impact codex, impact cursor and impact antigravity connect through a lightweight local proxy that runs in the background and listens on 127.0.0.1 only. Claude Code, Kilo Code and OpenCode do not use it.

Set it up once, then start it. After restarting your computer, run impact proxy start again:

impact proxy setup
impact proxy start
CommandWhat it does
impact proxy setupGenerates local certificates, ports and proxy credentials (or adds newly supported clients)
impact proxy startStarts the proxy in the background
impact proxy or impact proxy statusShows whether the proxy is running, its ports, your account and loaded Cursor models
impact proxy restartRestarts the background proxy
impact proxy stopStops the proxy (open Cursor, Codex and Antigravity sessions pause AI until you start again)
Foreground mode, setup flags, certificates, and logs
  • Foreground mode. impact proxy run runs the proxy in the foreground until Ctrl+C for debugging (impact proxy start runs the same process in the background).
  • Setup flags. --port <n> picks a specific proxy port (by default, a free port starting at 17420). --force regenerates all certificates, ports and proxy credentials; stop the proxy first.
  • Certificates and logs. impact proxy setup creates a proxy directory inside the config folder (readable only by you) containing local certificates, port settings, random proxy credentials and proxy.log. Certificate authority private keys are discarded right after signing, and only processes launched via impact … trust those certificates — your system trust store and browsers remain untouched.
  • How traffic is routed. Cursor's account/model endpoints and Antigravity's Cloud Code endpoints are answered locally while model inference goes to Impact. Codex connects to a local HTTPS listener on 127.0.0.1 that attaches your key. All other traffic passes straight through with end-to-end TLS intact.
  • Key updates and restarts. The proxy reads your saved login on every request, so impact login and impact logout take effect immediately and client apps never receive your sk-imp-… key. Restart the proxy after updating the CLI (impact proxy status warns on version mismatch) or to make Cursor reload new models.

Environment variables

  • IMPACT_API_KEY: uses this API key for the current command instead of the saved login, without writing it to disk.
  • IMPACT_MODEL: sets the starting model ID for every client except Cursor.
Client binary paths, Cursor paths, and CLI settings
  • IMPACT_ANTIGRAVITY_BIN, IMPACT_CLAUDE_BIN, IMPACT_CODEX_BIN, IMPACT_CURSOR_BIN, IMPACT_KILO_BIN, IMPACT_OPENCODE_BIN: path to a client executable that isn't on your PATH.
  • IMPACT_CURSOR_USER_DATA_DIR: custom directory for the isolated profile opened by impact cursor (defaults to cursor/profile inside the config folder, separate from your regular Cursor profile).
  • IMPACT_CURSOR_APP_DIR: path to the installed Cursor application directory if impact proxy cannot locate it automatically. Export this in the shell where you run impact proxy start or impact proxy restart.
  • IMPACT_CONFIG_DIR: overrides the directory where CLI settings and credentials.json are stored.
  • IMPACT_DISABLE_UPDATE_CHECK=1: suppresses update notifications.
  • NO_COLOR: disables colored terminal output.

Update and uninstall

To update, re-run the install script or npm install --global @impact-relay/cli (the CLI prints a notice when a newer version is available).

To sign out and uninstall:

impact logout
npm uninstall --global @impact-relay/cli

impact logout removes your local login and revokes the browser-created CLI key.

Keep your key on logout and set up shell completions
  • Keep key on logout. Run impact logout --keep-key to remove local credentials without revoking the browser-created key. Keys you pasted manually stay active until you revoke them on API keys.
  • Shell completions. Run impact --completions bash (or zsh, fish) to print the completion script. For example, in Bash, add source <(impact --completions bash) to ~/.bashrc.

Troubleshooting

Run impact doctor first to check your configuration, key and installed tools; client-specific issues are covered on each client's setup page.

CLI error messages and fixes
MessageFix
Run impact login, or set IMPACT_API_KEY.You aren't signed in under this OS user. Run impact login.
Impact rejected this API key.The key was revoked. Run impact login again, or fix IMPACT_API_KEY.
The device code expired. or Device authorization was denied.Run impact login again and approve the request.
Install <client>, or set IMPACT_<NAME>_BIN.Install the client, or point that variable at its executable.
Model … is unavailable in Impact.Set IMPACT_MODEL to a language model ID from Models.
Cannot reach Impact…Check your network, VPN or TLS-inspecting proxy.
Cannot read the saved Impact login.Run impact logout, then impact login.
… Revoke it on …/api-keys.The CLI couldn't revoke a key it created. Revoke it on API keys.
The Impact proxy is not set up. Run impact proxy setup…Run impact proxy setup, then impact proxy start.
The Impact proxy is not running. Start it with impact proxy start.Run impact proxy start; run it again after restarting your computer.
The Impact proxy finds no Impact login. Run impact login.Run impact login. The proxy reads the saved login on every request.
The Impact proxy uses a different Impact login…The login in this shell differs from the one the proxy reads (for example because of IMPACT_API_KEY). Unset it, or run impact proxy restart from this shell.
Add Codex to the proxy…, Add Antigravity support…, The running proxy does not serve Codex yet…The proxy was set up before that client was supported. Run impact proxy setup, then impact proxy restart.
Ports 17420-17439 are in use. Choose one with --port.Run impact proxy setup --port <n> with a free port.
The Impact proxy files … are damaged…Run impact proxy setup --force, then reopen Cursor, Codex and Antigravity.
The Impact proxy did not start: …Inspect proxy.log inside the proxy directory of the config folder.
Unknown subcommand "help"Use impact --help.