cli / commands / connecthillclimb

hillclimb connect

Connect the agents that run operators (claude, codex, pi) and the OpenRouter route that pays for them.

hillclimb connect COMMAND [OPTIONS]

Options

optionwhat it does
--jsonThe same rows as data.

hillclimb connect claude

Claude Code as the operator agent, billed to your Claude subscription.

The login is Claude Code's own (claude auth login); hillclimb only checks it the way an operator will — with ANTHROPIC_API_KEY stripped, so a key left in the environment cannot masquerade as the subscription. --auth api-key keeps the key instead, for headless machines.

hillclimb connect claude [OPTIONS]

Options

optionwhat it does
--auth TEXTWho pays: subscription (default) | api-key.
--model TEXTModel to ping with (default: the configured one).
--probe / --no-probeMake one tool-free agent call to prove the route works. Default: on.
--login / --no-loginRun claude auth login when logged out. Default: on.
--default / --no-defaultPin this agent as the default. Default: only when none is pinned there yet.
--local / --userWhere the defaults (and an OpenRouter key) go: --user (the default) is ~/.config/hillclimb/, every folder on this machine; --local is this folder's hillclimb dir, overriding the user level for it alone.

hillclimb connect codex

The Codex CLI as the operator agent.

Runs codex login, then copies the credential into the isolated CODEX_HOME searches use, so your personal ~/.codex settings change neither a search's results nor its token bill. --auth openrouter bills OpenRouter credits instead (hillclimb connect openrouter first).

hillclimb connect codex [OPTIONS]

Options

optionwhat it does
--auth TEXTWho pays: subscription (default) | api-key | openrouter.
--model TEXTModel to ping with (default: the configured one).
--probe / --no-probeMake one tool-free agent call to prove the route works. Default: on.
--login / --no-loginRun codex login when logged out. Default: on.
--default / --no-defaultPin this agent as the default. Default: only when none is pinned there yet.
--local / --userWhere the defaults (and an OpenRouter key) go: --user (the default) is ~/.config/hillclimb/, every folder on this machine; --local is this folder's hillclimb dir, overriding the user level for it alone.

hillclimb connect openrouter

OpenRouter credits as the bill for codex or pi operators.

The only credential hillclimb stores itself: the key is validated against OpenRouter (one unbilled call), then written to a .env — the user-level one in ~/.config/hillclimb/, or with --local the one beside this folder's config.yaml that hillclimb init gitignores — never into config.yaml, where it could be journaled. --agent codex also pins the route.

hillclimb connect openrouter [OPTIONS]

Options

optionwhat it does
--key TEXTThe API key; omitted, connect asks for it (input hidden).
--agent TEXTAlso route this agent through OpenRouter: codex | pi.
--model TEXTOpenRouter model id, e.g. qwen/qwen3-coder.
--probe / --no-probeMake one tool-free agent call to prove the route works. Default: on.
--default / --no-defaultPin this agent as the default. Default: only when none is pinned there yet.
--local / --userWhere the defaults (and an OpenRouter key) go: --user (the default) is ~/.config/hillclimb/, every folder on this machine; --local is this folder's hillclimb dir, overriding the user level for it alone.

hillclimb connect pi

The pi coding agent as the operator agent — the one that can sample.

pi logs in inside its own TUI, so this imports what that login wrote (~/.pi/agent/auth.json) into pi's isolated hillclimb home, together with pi.models_file if the config names one.

hillclimb connect pi [OPTIONS]

Options

optionwhat it does
--auth TEXTWho pays: subscription (default) | api-key | openrouter.
--model TEXTModel to ping with (default: the configured one).
--probe / --no-probeMake one tool-free agent call to prove the route works. Default: on.
--default / --no-defaultPin this agent as the default. Default: only when none is pinned there yet.
--local / --userWhere the defaults (and an OpenRouter key) go: --user (the default) is ~/.config/hillclimb/, every folder on this machine; --local is this folder's hillclimb dir, overriding the user level for it alone.