Switch the harness for a thread
/model. To change the reasoning effort on Codex or Claude, run /effort; /effort default clears the override.
Choose a billing mode
key or missing, so you can see what Baton will read before you switch.
A missing key keeps the picker open with the exact variable name.
/auth stays readable while a turn runs, and a mode change waits until the turn or orchestration ends.
From a shell, run baton auth <provider> api.
Sign in
baton login <provider>.
Find the key Baton will use
--json emits one row per provider.
The lookup order is:
~/.baton/config.json.- The harness’s own settings.
- The environment variable.
Use a gateway or a non-default endpoint
SetapiKeyEnv to give Baton a provider-neutral variable name. The harness still receives its native variable. Set apiBaseUrl for Grok or Antigravity.
agy acp and appends /v1beta, so its base URL is the endpoint root. Do not add /v1. Grok uses the OpenAI-compatible /v1 base. Cursor rejects a custom endpoint; use cursor-agent login. OpenCode keeps its own provider settings in opencode.json.
Check what is installed
baton doctor lists each harness, its binary, and its auth source. It also reports the checks Baton needs for its own features, such as git and gh.
Next
Context and memory
File mentions, search, memory files, and compaction.
Configuration
Every key in
~/.baton/config.json.