CLI: Config & troubleshooting
Last updated
Signing in and out, picking a default model, the settings files for permission rules, hooks, environment variables, memory files, output styles, plugins and language servers, monitoring, and diagnosing the failures that actually happen, plus the fixes.
Sign in, sign out
tempr auth # interactive prompt (recommended: keeps the key out of shell history)
tempr auth <LICENSE_KEY> # or pass it directly (it lands in shell history)
tempr logout # clear the stored credential on this machineThe CLI uses the same license as the IDE: Standard, Pro, or Teams all work, no separate subscription.
In CI, don't run tempr auth at all: set TEMPR_LICENSE_KEY from your secret store, and a run with no stored session signs in from it. The key never appears on a command line.
Default model
Every run needs a model. Set a default once, override per-run when you want:
tempr models # the model ids your license can use
tempr config set-model <id> # default for every run
tempr config show # what's set, and where the config file is
tempr -m <id> "prompt" # one-run override
tempr --model <id> # same thing, long formtempr auth offers to pick a default right after you sign in. Inside the REPL, /model <id> switches the model for the session, and /model on its own opens a picker over your catalog.
A model on Ollama, LM Studio or another server of your own is a local model: tempr -m ollama/qwen3:8b.
A coding plan's models are named by the plan, such as tempr -m minimax-plan/MiniMax-M3.1-Flash-Preview, once its key is added with tempr keys add <plan-id>. A plan is for your interactive sessions: when it runs out, the CLI says so and points you to /model, and never switches model on its own. See Coding plans.
Settings files
tempr config writes ~/.tempr/config.json. The rest is in files you edit yourself, in Claude Code's format where Claude Code has one. Comments and trailing commas are fine in the settings.json files.
| File | What Tempr reads from it |
|---|---|
managed-settings.json and managed-settings.d/*.json | Claude Code's managed settings, which an administrator deploys to C:\Program Files\ClaudeCode, /Library/Application Support/ClaudeCode or /etc/claude-code. See Managed settings. |
~/.tempr/settings.json | Your own hooks, permissions, env, outputStyle, statusLine, enabledPlugins, lspServers, and local model servers under provider and disabled_providers. |
~/.claude/settings.json | Your Claude Code settings: hooks, permissions, env, outputStyle, statusLine and the MCP and hook allow-lists, as for Tempr's own file. |
~/.tempr/config.json | What tempr config sets, and your own permission rules: permissionsAllow, permissionsAsk and permissionsDeny. |
.tempr/settings.json in a folder | The folder's hooks, permissions, env, outputStyle and statusLine. |
.claude/settings.json, .claude/settings.local.json | The same, as Claude Code writes them, so a team's Claude Code hooks, rules and variables hold here too. /output-style saves to the local file. |
.mcp.json in a folder | Claude Code's project MCP servers. See Claude Code's files. |
They're read in Claude Code's order of precedence: managed settings, then the folder's .claude/settings.local.json, then its .claude/settings.json and .tempr/settings.json, then your own. Lists such as permission rules, hooks and additional directories combine from every file; for a single value such as an env variable or outputStyle, the file higher up wins. --config <PATH> moves everything under ~/.tempr to that folder.
A folder's hooks, allow rules, additional directories, env variables, entries in the allow-lists (allowedMcpServers, allowedHttpHookUrls, httpHookAllowedEnvVars) and .mcp.json servers come with the folder, not from you, so they wait for your OK. An interactive session lists them and asks once; Yes, and remember for this folder keeps the answer. A one-shot run, a script or an editor (tempr acp) can't ask, so it leaves them out, and says so unless the output is --json; run tempr hooks allow in the folder to allow them. A change to any of them asks again. A folder's deny and ask rules, and its deny lists, always apply, and so does an allow-list the folder sets when no other file sets one, since it can only narrow.
env
Claude Code's env block: variables for the session and every process it starts, so the agent's commands, hooks, MCP servers and language servers all get them.
{
"env": {
"NODE_ENV": "development",
"DOTNET_CLI_TELEMETRY_OPTOUT": "1"
}
}Yours apply at once. A folder's variables wait for your OK like its hooks, since a PATH or NODE_OPTIONS from someone else changes what an approved command really runs; a change to them asks again. Managed variables win over every other file's.
Managed settings
An administrator can deploy Claude Code's managed-settings.json (and drop-ins in managed-settings.d), and Tempr applies it the way Claude Code does. Its hooks and rules need no OK, and nothing else overrides it. Tempr applies these keys from it:
permissions(allow, ask, deny andadditionalDirectories), andallowManagedPermissionRulesOnly, which leaves only the managed rules.permissions.disableBypassPermissionsMode: "disable", which turns off autopilot (--yolo) in every client. Any settings file can set this one, a folder's included.hooks,allowManagedHooksOnly,disableAllHooks,allowedHttpHookUrlsandhttpHookAllowedEnvVars.allowedMcpServers,deniedMcpServersandallowManagedMcpServersOnly, and the.mcp.jsonswitches below.env,outputStyle,statusLine,claudeMd, and a managedCLAUDE.mdbeside the file.
And Claude Code's managed-only restrictions. Each wins over your own and a folder's settings, and over the command line's flags:
- Models.
availableModelslists the models that may be picked: a family word such as"sonnet"or"gpt", a model id such as"claude-opus-5"(later versions that extend it count too, unlessavailableModelsMatchis"exact"), or a wholeprovider/modelid.deniedModelsblocks models even when the list allows them.allowedProviderslimits the provider part of a model id: Claude Code'santhropic,bedrock,vertexandfoundrymap to Tempr's providers,customEndpointcovers local and OpenAI-compatible providers, and any other entry is a Tempr provider key such asopenaiorollama. A ruled-out model isn't listed intempr models,/modelor Tempr Code's pickers,--modelandtempr config set-modelrefuse it, and a turn on one is refused before anything is sent. A sub-agent or Plan mode model it rules out runs on the chat's model instead. - MCP.
managed-mcp.jsonbesidemanaged-settings.jsontakes exclusive control: only its servers and themanagedMcpServersones start, andtempr mcp addis refused. Your organization's assigned servers start beside them only withallowAllClaudeAiMcps.managedMcpServersgives everyone remote (https) servers beside their own; they can't be removed here, and they take the place of a server with the same name or address. Both need noallowedMcpServersentry, anddeniedMcpServersstill applies. - Plugins.
strictKnownMarketplaceslists the marketplaces that may be added, installed from and updated (an empty list allows none), andblockedMarketplaceslists ones that may not.disableCommandPluginSourcesstops plugins that install by running a command (it followsallowManagedHooksOnlywhen unset).disableSideloadFlagsrefuses--plugin-dir.strictPluginOnlyCustomization(true, or a list ofskills,agents,hooks,mcp) takes those only from plugins and managed settings. - SSH.
sshHostAllowlistlimits--env ssh:and Tempr Code's SSH environments to matching hosts (*,*.example.com, or an exact name), checked on the name ssh really connects to after~/.ssh/config, jump hosts included. An empty list turns SSH environments off. - Files.
permissions.blockReadsOutsideWorkingDirectoriesandblockWritesOutsideWorkingDirectories(from any settings file) keep the file tools to the working folders in every mode; the write block also refuses settings files and folders only a repository's settings added, and both last for the session once set.permissions.denyInsteadOfPrompting(your own or managed settings) refuses a call that would ask, so a run nobody watches keeps going. - Browser pane (Tempr Code).
disableBrowserExternalNavigation: truekeeps the pane on local pages for you and the agent;browserExternalPageTools: "disabled"keeps only the agent's tools off external pages. - Sandbox.
sandbox.enabledforces the command sandbox on or off over--sandbox,--no-sandboxand the saved setting; withfailIfUnavailable, nothing runs where it can't.allowUnsandboxedCommands: falseremoves the way out of it,autoAllowBashIfSandboxed: falseasks about sandboxed commands as usual,network.allowManagedDomainsOnlywith no managedallowedDomainscuts the network off,filesystem.allowWriteadds writable folders, andfilesystem.denyReadanddenyWritebecome deny rules for the file tools.
tempr doctor, tempr models and tempr mcp list say what's locked, and Tempr Code's settings pages show it. The sandbox's excludedCommands (they run outside the sandbox and ask for approval as usual) and filesystem.allowRead apply too, taken from managed settings only. A few keys aren't applied: forceLoginMethod and forceLoginOrgUUID (they're for Anthropic sign-in), policyHelper, channelsEnabled, and the network keys Tempr's sandbox has no equivalent for (allowed or denied domains while the network is on, and the proxy ports). When managed settings set one, Tempr says so once at the start of a session, naming them.
MCP server allow-lists
Claude Code's allowedMcpServers and deniedMcpServers decide which MCP servers may start, whatever they came from: your mcp.json, a folder's .mcp.json, a plugin, an editor or your organization. Each entry has one of serverName, serverCommand (the command and its arguments) or serverUrl (* is a wildcard):
{
"allowedMcpServers": [
{ "serverName": "github" },
{ "serverUrl": "https://mcp.example.com/*" }
],
"deniedMcpServers": [ { "serverCommand": ["npx", "-y", "some-server"] } ]
}- Both lists combine from every settings file, and the deny list comes first. With no allow list every server may start; an empty one allows none.
- A remote server needs a
serverUrlmatch, and a local one aserverCommandmatch, when the list has entries of that kind; otherwise aserverNamematch will do. allowManagedMcpServersOnly: truein managed settings counts only the managed allow list.- For a folder's
.mcp.json:disabledMcpjsonServersin any settings file keeps a server from starting, OK or not.enabledMcpjsonServers(names) andenableAllProjectMcpServers: truestart them without the folder's OK, but only from your own or managed settings.
enabledPlugins
Turns installed plugins on or off by their name@marketplace id, as in Claude Code. An entry here wins over tempr plugin enable and disable:
{
"enabledPlugins": {
"formatter@team-tools": true,
"reviewer@team-tools": false
}
}Permission rules
Lasting rules for what runs without asking, and what never runs. A rule is a tool name, or a tool and a pattern in brackets, written with Tempr's tool names or Claude Code's:
| Rule | Covers |
|---|---|
run_command(npm test), Bash(npm test:*) | Commands that are npm test or start with it. |
edit(src/**), Edit(src/**) | Writing and patching files under src/. ** crosses folders, * doesn't. A pattern with no / matches that name in any folder. |
read_file(.env), Read(./.env) | Reading that file. A Read deny also keeps its lines out of search results. |
web_fetch(domain:github.com), WebFetch(domain:github.com) | Opening pages on that site and its subdomains. |
github__create_issue, mcp__github__create_issue, github | One MCP tool, or every tool of a server. |
- Allow lets a matching call run without asking, in every approval mode. A command that deletes, publishes or force-pushes still asks.
- Ask asks before every matching call, in every approval mode, even when an allow rule or a hook would let it run. The question names the rule, and offers no "for this session".
- Deny refuses a matching call before anyone is asked. A deny with no pattern, such as
run_command, takes the tool out of the run.
Deny beats ask, and ask beats allow, whichever file each comes from, as in Claude Code. Your own go in ~/.tempr/config.json, or under permissions in ~/.tempr/settings.json or ~/.claude/settings.json; a folder's under permissions in its settings:
// ~/.tempr/config.json
"permissionsAllow": ["Bash(npm test:*)", "edit(src/**)"],
"permissionsAsk": ["Bash(git push:*)"],
"permissionsDeny": ["Read(./.env)"]
// .tempr/settings.json or .claude/settings.json
{
"permissions": {
"allow": ["Bash(npm run lint:*)"],
"ask": ["Bash(docker:*)"],
"deny": ["WebFetch"],
"additionalDirectories": ["../shared-lib"]
}
}additionalDirectorieslets the agent read and edit files in folders beyond the workspace, and lets sandboxed commands write there. A relative path is taken from the workspace in a folder's file, and from your home folder in yours.--add-dirand/add-diradd one for a session.disableBypassPermissionsMode: "disable"underpermissions, in any settings file, turns off autopilot:--yoloand--approval-mode autopilotare refused, and a saved autopilot mode asks first instead.allowManagedPermissionRulesOnly, in managed settings, leaves only the managed rules.
/permissions lists the deny, ask and allow rules in force and the file each comes from, the extra folders, what waits for the folder's OK, and the calls refused lately. /permissions check <tool> <argument> says which rule decides a call: /permissions check run_command git push, /permissions check edit src/app.ts or /permissions check web_fetch github.com. A rule Tempr can't apply is skipped with a message; Claude Code tools Tempr doesn't have, such as Task, are skipped quietly in a .claude file.
Hooks
Hooks are your own commands, run at points in a session, written as Claude Code writes them, so a project's .claude/settings.json hooks work unchanged. Put yours under hooks in ~/.tempr/settings.json (Tempr also reads ~/.claude/settings.json), and a folder's in its settings:
{
"hooks": {
"PreToolUse": [
{ "matcher": "Bash", "hooks": [ { "type": "command", "command": "./scripts/check-command.sh", "timeout": 30 } ] }
],
"PostToolUse": [
{ "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "npx prettier --write \"$CLAUDE_PROJECT_DIR\"" } ] }
]
}
}| Event | Runs |
|---|---|
PreToolUse | Before a tool call. It can allow, deny or ask (permissionDecision), block the call, or rewrite its input with updatedInput. |
PermissionRequest | When a call is about to ask you. It can answer for you, allowing (with updatedInput if it likes) or denying; with no answer you're asked as usual. |
PermissionDenied | When a call was refused without you answering: by a deny rule, by a hook, or with nobody to ask. It's told why, and retry tells the model it may try again. |
PostToolUse | After a tool call that ran. It can tell the model something, or replace what the model is told the tool returned. |
PostToolUseFailure | After a tool call that failed, in place of PostToolUse. |
UserPromptSubmit | Before your message is sent. Its output goes along with it, or it stops the message. |
UserPromptExpansion | When a /command expands into a prompt, before UserPromptSubmit. It sees the command and its arguments, and can stop it. |
Stop | When the agent finishes. Blocking keeps the agent going with the hook's reason, up to 8 times in a row. |
StopFailure | In place of Stop, when a turn ended with an error. It only tells. |
InstructionsLoaded | When an instruction file (AGENTS.md, a CLAUDE.md, a rule) is loaded, at the start or on demand. |
ConfigChange | When a settings file changes during a session. Blocking keeps the earlier rules and hooks for the session (not for a change to managed settings). |
DirectoryAdded | When a folder is added with --add-dir or /add-dir. |
PreModelSwitch, PostModelSwitch | Before and after /model or an editor switches the model. Before, it can refuse the switch or ask you; the matcher is the model's id or its name without the provider. |
WorktreeCreate, WorktreeRemove | With one, --worktree has the hook make the worktree (printing its path) instead of git, and remove it at the end. |
SessionStart | When a session starts. Its output goes to the model. |
Notification | When the agent is waiting for you (permission_prompt). |
SessionEnd | When the session ends: clear, prompt_input_exit or other. |
PreCompact | Before the conversation is compacted. It can stop the compaction. |
PostCompact | After the conversation is compacted. |
SubagentStart, SubagentStop | When a subagent starts, and when it would stop. SubagentStart's output goes into the subagent's context; blocking SubagentStop keeps the subagent going with the hook's reason, up to 3 times. The matcher is the subagent's name. |
- Matcher: for tool events, a tool name in Claude Code's naming or Tempr's (
Bashorrun_command), a list (Edit|Write), or a regular expression. Empty or*matches everything. - Input and answer: the hook gets the event as JSON on stdin, with Claude Code's fields and tool names and Tempr's own as
tempr_tool_nameandtempr_tool_input. Exit code 2 blocks, with stderr as the reason; or the hook answers with JSON on stdout, as in Claude Code. - Shell:
/bin/sh -c; on Windows, Git Bash when it's installed and PowerShell when it isn't."shell": "bash"or"powershell"picks.CLAUDE_PROJECT_DIRandTEMPR_PROJECT_DIRare set to the workspace. - Exec form: with
"args",commandis a program run with those arguments as written, no shell. A plugin's${user_config.KEY}is filled intoargs, never into a shell command; hooks also get each option asCLAUDE_PLUGIN_OPTION_<KEY>. - Timeout: 600 seconds, 30 for
UserPromptSubmitand the model switch events, unless the hook setstimeout. - HTTP hooks (
"type": "http", withurl) POST the event's JSON there and read the reply's JSON as a command's output.$VARin aheadersvalue is filled in only for the names the hook lists inallowedEnvVars. Once any settings file setsallowedHttpHookUrls, an HTTP hook runs only when its URL matches an entry (*is a wildcard), andhttpHookAllowedEnvVarslimits the variables every HTTP hook may read. - MCP tool hooks (
"type": "mcp_tool", withserver,toolandinput) call a tool of one of the session's MCP servers, with${tool_input.file_path}and the like filled in from the event. "onFailure": "block"makes a hook that fails (can't start, times out, exits with another code, an HTTP error, an answer it can't read) block, as exit code 2 would, instead of letting things go on.- Prompt and agent hooks (
"type": "prompt"or"agent") ask a model instead of running a command, forPreToolUse,PostToolUse,PostToolUseFailure,UserPromptSubmit,UserPromptExpansion,StopandSubagentStop. An agent hook can read, list and search the workspace for up to 50 steps before it answers, and its "no" goes to the agent as feedback.modelpicks the model (the chat's by default), andcontinueOnBlocksends a prompt hook's "no" to the agent instead of ending the turn. - Claude Code events Tempr doesn't raise, such as
FileChangedorTeammateIdle, are skipped;/hooks eventslists them with why. - Managed settings can turn hooks off:
disableAllHooksruns none, andallowManagedHooksOnlyruns only the managed ones.
tempr hooks list and /hooks show what runs here. A folder's hooks wait for your OK, as above; yours and your plugins' run as soon as they're saved.
Memory files
Every turn carries the workspace's instruction files. Tempr reads Claude Code's memory files the way Claude Code does, beside AGENTS.md and other agents' files:
AGENTS.mdand.github/copilot-instructions.mdin the workspace, and your~/.tempr/AGENTS.mdfor every workspace.- An administrator's managed
CLAUDE.md(beside managed settings) and itsclaudeMdsetting. - Your
~/.claude/CLAUDE.mdand~/.claude/rules. CLAUDE.md,.claude/CLAUDE.mdandCLAUDE.local.mdin each folder from the repository's root down to the workspace, and the workspace's.claude/rules. A rule withpaths:in its front matter loads once the agent reads or edits a file it matches.- A subfolder's
CLAUDE.mdandCLAUDE.local.md, once the agent reads or edits a file there. @pathimports in any of them, up to four hops deep. A project's files import only files inside the project; your own~/.claudefiles can import anything.GEMINI.md,.cursorrulesand Cursor rules. WhereAGENTS.mdand another agent's file disagree,AGENTS.mdwins.
A file is cut at 40,000 characters, and all of them together at 64 KB; past that, the least specific go first (the managed ones last), and the turn says what was cut. Links are followed only while they stay inside the project (or, for your own files, ~/.claude), and only regular files are read. Block HTML comments are left out. /memory lists what a turn sends, what was cut or left out and why, and the files you can write your own in; tempr doctor and --verbose name them too.
Output styles
Claude Code's output styles change how the agent works and answers. The built-in ones are Default, Explanatory, Learning, Proactive and Concise. Your own are Markdown files with name, description and keep-coding-instructions front matter, in ~/.claude/output-styles, ~/.tempr/output-styles, .claude/output-styles (in the workspace or a folder above it up to the repository's root, the nearest winning) or .tempr/output-styles; plugins can bring them too.
The style in use is the outputStyle setting, read from the settings files above. /output-style lists the styles, and /output-style <name> saves one to the folder's .claude/settings.local.json, as Claude Code does. A change applies from the next message.
Status line
After each turn the CLI prints a line with the model, the mode and what the turn cost. Claude Code's statusLine setting replaces it with your own: a command that gets a JSON description of the session on stdin and prints the line, or several lines, with colours if you like. A script written for Claude Code's status line works here as long as it reads the fields both share.
{
"statusLine": {
"type": "command",
"command": "~/.tempr/statusline.sh",
"padding": 0, // spaces in front of each line
"refreshInterval": 10 // optional: run again every 10 s while the prompt waits
}
}It's read from the same settings files as everything else, the most specific winning; a folder's own statusLine runs only once you've allowed the folder's settings, as its hooks do, and disableAllHooks turns it off. It runs in the shell hooks use (Git Bash on Windows when it's installed, otherwise PowerShell), before each prompt. After a turn it's always printed; at other prompts, and on a refreshInterval, only when it reads differently, so it never interrupts what you're typing. It has 2 seconds, and if it fails or prints nothing, nothing is shown. An edit to the setting applies at the next prompt.
The JSON uses Claude Code's names: session_id, session_name, cwd, version, model.id and model.display_name, workspace.current_dir, project_dir, added_dirs and git_worktree, cost.total_cost_usd and total_duration_ms, context_window (context_window_size, used_percentage, remaining_percentage, total_input_tokens, total_output_tokens and current_usage), effort.level, output_style.name and worktree. Tempr adds tempr.approval_mode, tempr.persona, tempr.turns and tempr.total_tokens. Before the first model call there's no cost or usage yet, so those fields are missing; scripts should allow for that. COLUMNS holds the terminal's width.
#!/bin/sh
# ~/.tempr/statusline.sh: the model, the git branch and how full the context is
input=$(cat)
model=$(echo "$input" | jq -r '.model.display_name')
used=$(echo "$input" | jq -r '.context_window.used_percentage // empty')
branch=$(git -C "$(echo "$input" | jq -r '.cwd')" branch --show-current 2>/dev/null)
printf '\033[36m%s\033[0m %s %s\n' "$model" "${branch:-no branch}" "${used:+$used% context}"# ~/.tempr/statusline.ps1, with "command": "powershell -NoProfile -File C:/Users/you/.tempr/statusline.ps1"
$s = [Console]::In.ReadToEnd() | ConvertFrom-Json
$used = if ($s.context_window.used_percentage) { "$($s.context_window.used_percentage)% context" } else { "" }
"$($s.model.display_name) $($s.tempr.approval_mode) $used"/statusline <what to show> has the agent write a script like these and set statusLine in ~/.tempr/settings.json; /statusline alone shows what's set. Unlike Claude Code's, the line is printed above each prompt rather than kept at the foot of the screen.
Vim mode
Claude Code's vim mode for the prompt. Set "editorMode": "vim" in ~/.tempr/settings.json (or ~/.claude/settings.json) to have it on, or type /vim to turn it on or off for the session. Each prompt starts in insert mode; Esc goes to normal mode, and Enter sends from either. The cursor shows the mode: a bar to type, a block in normal mode, and the status line's JSON has vim.mode.
| In normal mode | Keys |
|---|---|
| Insert | i a I A o O |
| Move | h j k l w e b 0 ^ $ gg G, f F t T and a character, ; and , to repeat a find |
| Operators | d c y with a motion or a text object; dd cc yy D C |
| Text objects | iw aw i" a" i' a' i( a( i[ a[ i{ a{ (also ib and iB) |
| Edit | x r s S p P |
| Undo, redo, repeat | u, Ctrl+R, . |
To leave insert mode without reaching for Esc, map two keys to it, as in Claude Code: "vimInsertModeRemaps": { "jj": "<Esc>" }. A remap is two printable characters, and Esc is the only thing it can map to. Both settings are read from your own settings and managed settings only, not a folder's. Visual mode, counts and registers aren't there yet.
Keybindings
The prompt's keys, in Claude Code's keybindings.json format. Tempr reads ~/.tempr/keybindings.json, or ~/.claude/keybindings.json when it has none of its own, so keys you set up for Claude Code carry over. /keybindings opens the file in your editor (making it the first time) and lists the keys in force. Edits apply at the next prompt.
{
"bindings": [
{
"context": "Chat",
"bindings": {
"ctrl+e": "chat:externalEditor",
"ctrl+x ctrl+k": "command:compact", // a chord: two keys within 3 seconds
"ctrl+s": null // null takes a default key off
}
}
]
}| Action | Default | What it does |
|---|---|---|
chat:submit | Enter | Sends the message. |
chat:newline | Shift+Enter, Ctrl+J | A new line in the message. Some terminals send Shift+Enter as plain Enter; Ctrl+J works everywhere. |
chat:externalEditor | Ctrl+G | Opens the draft in $VISUAL, else $EDITOR, else Notepad or vi; what you save comes back to the prompt. A command such as code --wait works. |
chat:stash | Ctrl+S | Sets the draft aside; it comes back after your next message, or press it again on an empty prompt. |
chat:cycleMode | Shift+Tab | Interactive, then bypass (edits without asking), then plan mode, then back. Autopilot is in the cycle only when the session started in it. |
chat:imagePaste | Ctrl+V; Alt+V on Windows | Pastes the clipboard's image as an [Image #n] chip (Windows Terminal keeps Ctrl+V for text). With only text on the clipboard, pastes the text. |
history:search | Ctrl+R | Earlier prompts, newest first (those containing what you've typed, if anything), in a list you can search. |
app:interrupt | Esc, during a turn | Stops the turn, as Ctrl+C does. Anything else you type while a turn runs waits for the next prompt. |
command:<name> | Runs that slash command, keeping your draft for after. |
Keys are written as Claude Code writes them: ctrl, shift, alt (also opt, meta or cmd, which a terminal sends alike) and a key, joined with +; a chord is two of them with a space between. Tempr's prompt has the Chat and Global contexts; entries for Claude Code's other screens are skipped. Ctrl+C, Ctrl+D, Ctrl+M, Ctrl+[, Ctrl+I and Ctrl+H can't be rebound, because the terminal or the CLI uses them. While the completion list is open, its own keys (Tab, Shift+Tab, Enter) come first. On macOS and Linux the CLI turns the terminal's flow control off while it runs, so Ctrl+S reaches the prompt, and puts it back when it exits. tempr doctor and /keybindings list any entries that were skipped and why.
Monitoring (OpenTelemetry)
Tempr can export metrics and events to your own OpenTelemetry collector, set up as Claude Code's monitoring is, with the same variables, in the environment or in the env of your own settings (a folder's settings can't turn it on). It's off unless you set it up, and none of it goes to Tempr.
export CLAUDE_CODE_ENABLE_TELEMETRY=1 # or TEMPR_ENABLE_TELEMETRY=1
export OTEL_METRICS_EXPORTER=otlp # otlp, console (stderr) or none
export OTEL_LOGS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc # or http/protobuf (the default)
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317- Metrics and events are Claude Code's, named
tempr.*instead ofclaude_code.*: sessions, tokens, cost, lines of code, commits, pull requests, edit decisions and active time; prompts, tool results and decisions, API requests and errors. - A prompt's text is redacted unless
OTEL_LOG_USER_PROMPTS=1; tool parameters go only withOTEL_LOG_TOOL_DETAILS=1. - The per-signal endpoint, protocol and header variables, the export intervals, temporality and
OTEL_RESOURCE_ATTRIBUTESare read too. There's no Prometheus exporter and no traces. - The same export works in
tempr acp.
Language servers
With a language server, each edit's result carries the errors and warnings it reports for the file, and the agent gets the read-only lsp tool. A plugin brings one in its .lsp.json; you can add your own under lspServers in ~/.tempr/settings.json, in the same shape:
{
"lspServers": {
"gopls": {
"command": "gopls",
"args": ["serve"],
"extensionToLanguage": { ".go": "go" }
}
}
}command and extensionToLanguage are required. Optional, with Claude Code's defaults: env, initializationOptions, settings, workspaceFolder, startupTimeout (30000 ms), requestTimeout (60000 ms), restartOnCrash (true), maxRestarts (3) and diagnostics (true; false stops the errors after edits). A server starts the first time a file it handles is edited or asked about. Plugins' servers come first; for a file extension two servers handle, the first one is used. A folder's settings can't add one, since it would run a program.
Troubleshooting
| Symptom | Fix |
|---|---|
No model configured on every run | Pass -m <id> or run tempr config set-model <id>; no default is set on this machine. |
| Auth errors on a machine that used to work | Run tempr doctor to check connectivity; if the credential is stale, tempr logout then tempr auth. |
| Turns fail in a CI container but work locally | Check that TEMPR_LICENSE_KEY is actually set in the job (without it the run exits 3 with Not signed in, and a bad key prints TEMPR_LICENSE_KEY was rejected), and pass -m explicitly so the run doesn't depend on local config. |
| Unexpected tool behavior or empty MCP list | tempr mcp list shows what's configured; MCP tools only appear once a server is added with tempr mcp add or tempr mcp browse, and enabled. tempr doctor starts each enabled server and reports any that fail. |
A folder's hooks, allow rules, env variables or .mcp.json servers don't apply | They wait for your OK. tempr hooks list shows what's waiting; tempr hooks allow in the folder allows it, or start an interactive session there and say yes. A change to them asks again. |
| An MCP server doesn't start | /mcp says whether it needs sign-in (/mcp login <name>) or was turned off for failing (/mcp restart <name>). A server that deniedMcpServers, allowedMcpServers or disabledMcpjsonServers keeps out doesn't start either; see MCP server allow-lists. |
Autopilot is turned off by ... | A settings file sets permissions.disableBypassPermissionsMode to "disable"; the message names it. Run without --yolo, or with another --approval-mode. |
Hook skipped, Permission rule skipped or Setting skipped at the start | The message says which file and why: an event Tempr doesn't run hooks for, a tool it doesn't have, or JSON it couldn't read. |
The agent ignores part of a CLAUDE.md | Run /memory: it shows what was cut to fit the budget, imports that weren't followed, and links that lead outside the project. |
A local model doesn't show in tempr models | Its server isn't running, or isn't where Tempr looks. See Local models. |
| Can't tell what the agent did | Re-run with --verbose for each tool call's full output and token usage, use /diff in the REPL to see what the last turn changed on disk, or read the saved session with tempr history show <id>. |
tempr doctor
tempr doctor checks that the config directory is writable, that the server is reachable, that you're signed in with an active plan and the session can refresh, that your catalog has models, that your default model is set and in that catalog, and that each enabled MCP server starts (--skip-mcp skips that one). It lists your local model servers, and fails only if the one your default model is on doesn't answer. It also says what the sandbox can do here and which Unix sockets it lets through, and which instruction files a session in this folder would send. When something misbehaves, run it first. It distinguishes "can't reach the server" from "not signed in" from "configured fine," which covers most first-line debugging. It exits 1 if any check fails, so a CI job can gate on it.
The agent loop runs server-side, so a flaky local connection does not kill an in-flight turn, but doctor is still the fastest way to confirm the machine can reach Tempr at all.