TestRelic CLI configuration
Configure the CLI's backend URL, theme, statusline, and keybindings, and learn where session cookies, tokens, and MCP config files live on disk.
config command
testrelic config set baseUrl <your-backend-url> # write a value
testrelic config get baseUrl # read a value
testrelic config list # show all settings
testrelic config path # print the config file location
testrelic config set statusLine "<your-statusline-command>"Secret values are never printed: config get and config list show claudeApiKey only as
set when it has a value. Inside the interactive CLI, /config shows the same settings.
Config keys
| Key | Values | Meaning |
|---|---|---|
baseUrl | URL ending in /api/v1 | Backend to talk to. Default: production. |
defaultRepoId / defaultRepoName | repo id / name | Repo attached as context to every conversation. |
theme | auto | dark | light | ascii | Colour theme (also /theme). |
mode | cloud | local | Default data boundary. See Modes & engines. |
engine | auto | cloud | claude-code | codex | ollama | cursor | Default agent engine. |
localPermissionMode | plan | default | acceptEdits | bypassPermissions | Permission mode for local engines (default acceptEdits). |
effort | low | medium | high | xhigh | max | ultracode | Reasoning effort for chat sessions. |
claudeApiKey | key | Optional API key for the Claude Code engine; otherwise it uses your claude login. |
ollamaModel / ollamaNumCtx | model name / number | Model and context size for the Ollama engine. |
autoUpdate | true | false | Auto-update on interactive start (default on). |
remoteControl | true | false | Web control of sessions (default on). See Web control. |
fullscreen | true | false | Start the UI full-screen (default off). |
editorMode | normal | vim | Composer editing mode. |
statusLine | command | Your own statusline script in place of the built-in status bar. |
statusBar, bell, expandTools, scrollRegions | true | false | Status bar, terminal bell, expanded tool activity, and scroll regions. |
memoryEnabled, rulesEnabled | true | false | Long-term memory for new conversations, and injecting the nearest TESTRELIC.md rules into each turn (both on by default). |
$ testrelic config path
/home/sam/.testrelic/cli-config.json
$ testrelic config set baseUrl https://platform.testrelic.ai/api/v1
baseUrl = https://platform.testrelic.ai/api/v1
$ testrelic config get theme
dark
$ testrelic config get statusLine
(unset)
$ testrelic config set theme neon
expected auto, dark, light, or ascii
$ testrelic config set statusLine ~/.testrelic/statusline.sh
statusLine = ~/.testrelic/statusline.sh
File locations
| Path | Purpose |
|---|---|
~/.testrelic/cli-config.json | CLI settings written by testrelic config set (testrelic config path prints it). |
~/.testrelic/token | The CLI's token, saved by testrelic login or testrelic login --token. |
~/.testrelic/cookies.json | Persisted session cookies. |
~/.testrelic/studio-token | TestRelic Studio's own sign-in, kept separate from the CLI's. See Authentication. |
~/.testrelic/mcp.json | Global MCP server config. |
./.mcp.json | Project MCP server config (wins on name collisions). |
~/.testrelic/trusted-mcp.json | Which project .mcp.json files you've trusted. See MCP host. |
~/.testrelic/keybindings.json | Custom keybindings (/keybindings). |
~/.testrelic/history | Input history for Ctrl+R. |
The ~/.testrelic/ directory and its mcp.json + token are shared with @testrelic/mcp,
so a token you already use for MCP works here too.
Backend URL
The CLI defaults to production. Override it three ways — see Authentication:
testrelic config set baseUrl https://your-host.example.com/api/v1 # persisted
testrelic --base-url https://your-host.example.com/api/v1 # per-invocation
export TESTRELIC_CLOUD_URL=https://your-host.example.com/api/v1 # environmentWeb control (Ask AI Remote sessions)
From CLI 1.2.1, an interactive CLI session shows up under Remote in
Ask AI on the web when it runs on the TestRelic Cloud agent and the CLI
is signed in with testrelic login. With web control on, which is the default, the web
app can send messages to the session, answer its approval prompts and stop a turn. With it
off, the web app can still watch the session but can't drive it.
| Setting | Effect |
|---|---|
testrelic config set remoteControl false | Web control off for every session (true turns it back on). |
TESTRELIC_REMOTE_CONTROL | Overrides the config for sessions started from this environment. Takes on/off, true/false, 1/0 or yes/no. |
testrelic --no-remote-control | Off for this session, whatever the config or environment says. |
/remote on · /remote off | Switches it mid-session. /remote (or /remote status) shows the setting, what turned it off, and whether the web app can see this session. |
Appearance & editing
/theme— switch between auto, dark, light, and ascii themes./vim— toggle vim editing mode./keybindings— view and customize keybindings.testrelic config set statusLine <cmd>— render your own statusline script.
Terminal notes (Windows)
- Built for Windows Terminal; legacy conhost falls back to an ASCII glyph set.
- Key handling filters key-press events (Windows also delivers release events).
Diagnostics
Run testrelic, then type /doctor to check your configuration, sign-in, MCP servers,
updater and terminal.
Next steps
→ Overview · Quickstart