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 | shNode.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 --versionAlways install globally with --global rather than running via npx, because Claude Code invokes impact directly during a session.
Sign in
impact loginYour 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
| Situation | Command |
|---|---|
| SSH or no browser | impact login --no-browser, then open the printed URL on any device |
| Existing API key | impact login --api-key, then paste your sk-imp-… key |
| Scripts | printf %s "$KEY" | impact login --key-stdin |
| CI and containers | IMPACT_API_KEY=sk-imp-… impact <command> (nothing is saved) |
- Key lifecycle. Signing in again revokes the key created by a previous browser
impact loginstored in the samecredentials.json. Keys you supply yourself via--api-keyor--key-stdinare never revoked by the CLI. - Config folder. Your key is stored in
credentials.json(readable only by your OS user) inside~/.config/impacton Linux,~/Library/Preferences/impacton macOS, or%APPDATA%\impact\Configon Windows. SetIMPACT_CONFIG_DIRto use a different directory.
Launch a client
Run the command from your project directory; the client itself must already be installed.
| Client | Command | Note |
|---|---|---|
| Claude Code | impact claude | |
| Codex | impact codex | Codex CLI only, not Codex Desktop; needs the local proxy |
| Cursor | impact cursor . | Cursor Desktop: chat, Agent and Tab; needs the local proxy |
| Antigravity | impact antigravity | The IDE and the Agents app; needs the local proxy |
| Kilo Code | impact kilo | Kilo CLI, not the editor extension |
| OpenCode | impact opencode |
- Arguments, stdin and exit codes pass straight through, so
impact claude --continueandimpact 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
--modelflag or setIMPACT_MODELto any language model ID from Models:IMPACT_MODEL=claude-sonnet-5-5 impact claude. In Kilo and OpenCode, prefix the ID withimpact/:--model impact/claude-sonnet-5-5. - In Codex, GPT models also support higher-speed tiers: see Fast and Ultrafast.
Check your account
impactprints your signed-in email, current balance and available commands.impact statusshows Credits, Held (reserved for in-flight requests) and Available, followed by your spend per model over the last 7 days.impact doctorchecks 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| Command | What it does |
|---|---|
impact proxy setup | Generates local certificates, ports and proxy credentials (or adds newly supported clients) |
impact proxy start | Starts the proxy in the background |
impact proxy or impact proxy status | Shows whether the proxy is running, its ports, your account and loaded Cursor models |
impact proxy restart | Restarts the background proxy |
impact proxy stop | Stops 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 runruns the proxy in the foreground until Ctrl+C for debugging (impact proxy startruns the same process in the background). - Setup flags.
--port <n>picks a specific proxy port (by default, a free port starting at17420).--forceregenerates all certificates, ports and proxy credentials; stop the proxy first. - Certificates and logs.
impact proxy setupcreates aproxydirectory inside the config folder (readable only by you) containing local certificates, port settings, random proxy credentials andproxy.log. Certificate authority private keys are discarded right after signing, and only processes launched viaimpact …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.1that 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 loginandimpact logouttake effect immediately and client apps never receive yoursk-imp-…key. Restart the proxy after updating the CLI (impact proxy statuswarns 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 yourPATH.IMPACT_CURSOR_USER_DATA_DIR: custom directory for the isolated profile opened byimpact cursor(defaults tocursor/profileinside the config folder, separate from your regular Cursor profile).IMPACT_CURSOR_APP_DIR: path to the installed Cursor application directory ifimpact proxycannot locate it automatically. Export this in the shell where you runimpact proxy startorimpact proxy restart.IMPACT_CONFIG_DIR: overrides the directory where CLI settings andcredentials.jsonare 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/cliimpact 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-keyto 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(orzsh,fish) to print the completion script. For example, in Bash, addsource <(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
| Message | Fix |
|---|---|
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. |