TemprTempr
Docs
CLI

CLI command reference

Last updated

Every command, flag, and REPL shortcut in tempr, plus the tool set the agent drives. New here? Start with the CLI quickstart.

Commands

CommandDoes
tempr "<prompt>"One-shot agent turn: a real tool-calling loop that reads, edits, runs commands, and searches your codebase, then exits.
temprInteractive REPL with persistent cross-session history, line editing, and tab-completion for /commands and @personas.
<something> | temprHeadless/piped mode: runs one turn and writes to stdout. With no prompt argument, stdin is the whole prompt; with one (git diff | tempr "review this"), the piped text follows the prompt as context. See Scripts, pipes & CI.
tempr auth [<LICENSE_KEY>]Sign in. With no key, choose between your browser and pasting your license key (the same license as the IDE). Through the browser, it shows a code and opens the Tempr portal, where you approve the sign-in on any device, so it works over SSH too; --browser goes straight there. For scripts and CI, pass the key or set TEMPR_LICENSE_KEY. After signing in, it offers to add a provider key if you have none, then to pick a default model.
tempr acpRun as an Agent Client Protocol agent, for an editor such as Zed or JetBrains AI Assistant to start and talk to over stdin and stdout.
tempr logoutClear the stored credential on this machine.
tempr keysYour provider keys. Tempr calls every model with your own key for its provider. list (also plain tempr keys), add [provider] to add or replace one (no provider opens a picker), and remove <provider>. The key is typed at a hidden prompt, piped in on stdin, or read with --from-env <VARIABLE>; it's never passed as an argument, where it would land in shell history. Tempr checks the key with the provider before saving it: one the provider rejects isn't saved unless you confirm or pass --force, and one that couldn't be checked is saved with a note. Azure, AWS Bedrock and custom endpoints are set up on the Portal's Provider keys page instead, and on a Team plan your organization's admin manages keys. A coding plan is added by its plan id, such as tempr keys add kimi-code; the picker lists the plans open to Tempr, with the vendor's rule under each (see Coding plans).
tempr configManage settings: show, set-model <id> (your default model), set-approval-mode <interactive|autopilot|bypass>, allow-command <prefix> / disallow-command <prefix> (the run_command allow-list), allow-site <site> / disallow-site <site> (sites the agent opens pages on without asking: docs.example.com, or *.example.com for its subdomains), set-web-search <on|off> (whether interactive sessions search the web), set-notifications <on|off> (the bell and desktop notification after a long turn), set-idle-compaction <on|off> (Claude Code's idle compaction, off by default), set-sandbox <on|network|off|auto> (whether every run's commands go in the sandbox; auto, the default, sandboxes --yolo and CI runs), and set-crash-reports <on|off>.
tempr historySaved sessions: list (this folder's; --all for every folder's), search <words> (sessions in every folder where all the words come up, newest first; --here for this folder's only), show <id>, export <id> (the conversation as Markdown on stdout; -o, --output <FILE> writes it to a file), rename <id> <title>, fork <id>, and delete <id>. Resume one with tempr --id <SESSION_ID>.
tempr mcpMCP servers for the terminal agent: list, browse [query] (install from Tempr's curated catalog), add <name> [--cwd <dir>] [--env KEY=VALUE] -- <command> [args...] for a local server, add --transport http|sse <name> <url> for a remote one (see Remote MCP servers), and remove, enable, disable, login and logout, each taking the server's name. list also shows each server's sign-in state, and this folder's .mcp.json servers and whether they're allowed to start.
tempr pluginClaude Code's plugins: commands, agents, skills, hooks, MCP and language servers in one, installed from a marketplace. list (installed, and what the marketplaces offer), install <name> (name@marketplace when two have it; installing again updates it), uninstall <name> (--keep-data keeps its data folder), enable <name> and disable <name>. Marketplaces: marketplace add <source> (owner/repo on GitHub, a git address, a folder, or a marketplace.json file or URL), marketplace list, marketplace update [name] (all of them without a name), and marketplace remove <name>, which removes the plugins installed from it too. See Plugins.
tempr hookslist shows the hooks that run here and where each comes from, and this folder's that wait for your OK. allow lets this folder's settings apply as they are now: its hooks, its allow rules and additional directories, its env variables, its entries in allow-lists such as allowedMcpServers, and its .mcp.json servers. A change to them asks again. See Settings files.
tempr doctorCheck the config directory, server connectivity, sign-in, the model catalog, your default model, and your MCP servers (--skip-mcp to leave those unstarted), and says what the sandbox can do on this machine, which Unix sockets it lets through, and which instruction files a session here would send. It lists your local model servers too; only the one your default model is on has to answer. Exits 1 if any check fails, including a sandbox turned on that can't run here.
tempr models [filter]List the models your license can use, with prices and context sizes, then the local models Tempr finds, priced free. --ids-only prints one id per line.
tempr usageShow what this machine's turns have cost, by model. --range today|week|month|all (default week); --json for machine-readable totals.
tempr initDraft an AGENTS.md for this workspace from a scan of what's in it. --print writes it to stdout; --force overwrites an existing file.
tempr completion <shell>Print a shell completion script for bash, zsh, fish, or powershell.
tempr updateCheck for a newer release and print the command that installs it. --check only reports, exiting 1 when an update is available.
tempr --versionPrint the installed CLI version (also -v, or tempr version).

Options

These flags apply to a chat or agent run:

FlagDoes
-m, --model <MODEL>Use this model for the run, overriding tempr config set-model. A local model is ollama/<model>, lmstudio/<model>, or your own provider's id and the model.
--reasoning <LEVEL>How much the model reasons for this run: none, minimal, low, medium, high, xhigh, max, on, or default. Overrides the level saved with /reasoning for this invocation only; a level the model lacks becomes the nearest one it has.
-y, --yoloRun unattended: approval mode autopilot for this invocation only. File edits, MCP calls, and allow-listed commands run without asking. On Linux and macOS its commands run in the sandbox by default, with the network on, so any command goes ahead; elsewhere, commands that aren't allow-listed still ask, and are refused when there's no terminal to ask on. Commands that delete, publish or force-push always ask. When a settings file sets permissions.disableBypassPermissionsMode to "disable", --yolo and --approval-mode autopilot are refused (exit code 2), and a saved autopilot mode asks first instead.
--approval-mode <MODE>Approval mode for this run only: interactive, autopilot, or bypass. Overrides the saved mode without changing it. Note that bypass is stricter than autopilot: file edits run, but every command and MCP call asks.
--planStart in plan mode: the agent looks around with read-only tools and proposes a plan, and nothing changes until you approve it. With no terminal to approve on, the plan is the answer. /plan switches it in the REPL.
--askPlain single-turn chat with no tool-calling, for quick questions, no file access.
--id <SESSION_ID>Resume a saved session (see tempr history list). A new id is generated and saved automatically when omitted.
-c, --continueResume the most recent session started in this folder.
--jsonEmit newline-delimited JSON (one event per line, then a final result object) instead of formatted text, built for scripting. See the JSON event stream.
--verbosePrint each tool call's full output, what the model thought under each ✻ Thought for Ns line, and token usage (prompt/completion/total, and cost if known) after each turn.
--max-turns <N>Stop after N steps of the agent loop. This guards an unattended run against a model that won't converge. The server clamps it to your plan's ceiling.
--allowed-tools <NAMES>Comma-separated tool names this run may use, e.g. read_file,search_files. An MCP server's name covers all of its tools.
--disallowed-tools <NAMES>Comma-separated tool names this run may not use, applied after --allowed-tools.
--prompt-file <PATH>Read the message from a file instead of the command line, for prompts too long or too quote-heavy to pass as an argument.
--max-cost <usd>Stop once this run's model calls have cost this many US dollars, such as 0.50, sub-agents included. Exits with code 6. Tempr's server enforces it too, stopping a run before its next model call. A model whose price isn't known can't be counted, and the CLI says so. See Capping what a run spends.
--search / --no-searchLet the model search the web for this run, or don't. Without either, an interactive session searches (unless tempr config set-web-search off) and a script (--json, piped input, CI) doesn't. See Web search.
--sandbox / --sandbox-network / --no-sandboxRun this run's commands in the sandbox (Linux and macOS), with the network cut off or left on, or not at all, overriding tempr config set-sandbox and the default for --yolo. If a sandbox you asked for can't run here, nothing runs: exit code 7.
-w, --worktree <NAME>Run this session in a git worktree of its own, so it doesn't touch this folder. See Worktrees.
--add-dir <DIR>Let the agent read and edit files in this folder too, for this session, as Claude Code's --add-dir does. Can be given more than once. permissions.additionalDirectories in settings adds one for good, and /add-dir adds one mid-session.
--env <ENV>Run the workspace and every tool in another environment: wsl:<distro> (a WSL distribution, on Windows) or ssh:<host> (a Host from ~/.ssh/config, or user@host). See Remote environments.
--env-dir <PATH>With --env: the folder over there to work in. Required for ssh; for WSL it defaults to this folder's /mnt/<drive> path.
--env-allow-homeWith --env-dir: allow the home folder itself over there as the workspace, dotfiles and all.
--env-user-mcpWith --env: start your own stdio MCP servers (your config's and your plugins') over there too. By default only the remote folder's own .mcp.json servers start there.
--plugin-dir <DIR>Load a plugin from this folder for this session only, as Claude Code's --plugin-dir does: for trying a plugin you're writing. Can be given more than once.
--config <PATH>Use a config directory other than ~/.tempr. Works with every command.

REPL slash commands

Inside an interactive tempr session:

CommandDoes
/helpList the slash commands, mentions, approval modes, and flags.
/model [id]Switch the model for this session. No id opens a picker over your catalog.
/reasoning [level]Set how much the current model reasons, saved per model. No level opens a picker over the levels the model offers; default goes back to the model's own.
/persona [name]Switch persona for the rest of the session; no name opens a picker, and /persona none clears it. For a single turn, start the message with @name (Tab completes it).
/mcpList the session's MCP servers, with each one's sign-in state and how many resources and prompts it offers.
/mcp browse [query]Browse or search Tempr's curated MCP catalog and add a server.
/mcp restart <name>Start a server again that failed, or that was turned off for failing.
/mcp login <name>, /mcp logout <name>Sign in to a remote server that uses OAuth, in your browser, or delete its sign-in. The server restarts with it.
/mcp__<server>__<prompt> [args]Send an MCP server's prompt as your message, with its arguments. Tab completes them after /. @<server>:<uri> anywhere in a message attaches one of the server's resources (Tab completes after @).
/keysList your provider keys; /keys add [provider] adds one and /keys remove <provider> removes one, without leaving the session.
/resumePick an earlier session from this folder and load its history.
/historyList saved sessions.
/commandsList the command templates you can invoke as /name: built-in, yours in ~/.tempr/commands/, and the workspace's in .tempr/commands/.
/agentsList the built-in personas and your own custom agents (.tempr/agents/ or ~/.tempr/agents/).
/rulesList your organization's rules.
/skillsList your organization's skills and this workspace's skills in .tempr, .agents and .claude.
/plan [on|off]Turn plan mode on or off; on its own it switches.
/diffShow what the last turn changed on disk.
/undoPut the last turn's file changes back, skipping any file that has changed since.
/rewindGo back to before one of your last 20 messages: the files its turns changed, the conversation from it on, or both. A file changed since the agent wrote it is only overwritten if you say so. What the turns' commands did can't be taken back.
/compact [focus]Replace the conversation so far with the model's summary of it, so a long session keeps going inside the model's context window. Anything after /compact tells the summary what to keep. The files stay as they are; /rewind can't go back past the summary. It also happens by itself before a turn once the last request filled 90% of the model's context window.
/tasks [<id>|stop <id>|stop all]List the sub-agents and commands running in the background in this session, with their status, id, time and latest activity (/bashes does the same). /tasks <id> prints one's whole output, /tasks stop <id> stops one and /tasks stop all stops them all.
/permissionsList the deny, ask and allow rules in force and the file each comes from, the extra folders the agent may use, what waits for this folder's OK, and the calls refused lately. /permissions check <tool> <argument> says which rule decides a call, such as /permissions check run_command npm test. See Permission rules.
/add-dir <folder>Let the agent read and edit files in a folder beyond this one, for this session. On its own, it lists the folders added.
/hooks [events]List the hooks in force, and this folder's that wait for your OK. /hooks events lists the events and handler types Tempr runs, and Claude Code's events it doesn't raise, with why.
/code-review [level] [target]Review changes for bugs, as Claude Code's command does. See Code review.
/btw <question>Ask a quick question about the conversation so far. It's answered without tools, shown apart, and not kept in the conversation. /btw on its own shows the last answer again.
/voice [models|model|language|hold|tap|off|key]Dictate a message: records until you press Enter, then puts the text in the prompt to edit and send. Esc throws the recording away. /voice hold lets you hold Space on an empty prompt to talk instead, and /voice tap starts and stops on a key. Runs on your own OpenAI or Groq key. See Voice input.
/loop [interval] <prompt>Run a prompt again every interval (10 minutes by default) while the session stays open. /loop on its own lists this session's loops, /loop stop <n> or stop all ends them. See /loop.
/output-style [name]Pick how the agent works and answers: Default, Explanatory, Learning, Proactive, Concise or one of your own. No name lists them, the one in use marked. The choice is saved as outputStyle in this folder's .claude/settings.local.json and applies from the next message. See Output styles.
/statusline [what to show]Have the agent write your own status line, a script that prints the line above the prompt in place of the built-in one, and set Claude Code's statusLine setting in ~/.tempr/settings.json. With nothing after it, shows what's set. See Status line.
/ide [off]Link to VS Code or a JetBrains IDE with the Tempr extension or plugin: your selection goes with each message, edits that ask are shown in its diff view, and the agent can read its problems. Run in the editor's own terminal, the CLI links by itself. /ide off unlinks. See Link the CLI to your editor.
/vimTurn vim mode in the prompt on or off for this session. "editorMode": "vim" in your settings keeps it on. See Vim mode.
/keybindingsOpen ~/.tempr/keybindings.json (Claude Code's format) in your editor, making it the first time, then list the keys in force and anything skipped. See Keybindings.
/memoryList the instruction files this session's turns send (AGENTS.md, CLAUDE.md at every level, rules and imports), what was cut or left out and why, and the files you can write your own in. See Memory files.
/plugin [...]Run tempr plugin without leaving the session: /plugin install <name>, /plugin marketplace add <source> and the rest. A plugin installed mid-session brings its commands, agents and skills at once, and its hooks and MCP servers from the next session.
/export [file]Write this session out as Markdown, by default to a file in this folder named after the session's title.
/initHave the agent write this folder's AGENTS.md from the code. With none there yet, it first writes the draft tempr init would, then fills it in.
/clearClear this session's conversation history.
/exitQuit (so do exit, quit, and /quit).
!commandRun a command in this folder yourself (!git status, !npm test), with its output shown as it runs. The output goes in front of your next message, so the agent sees what you saw. Nothing is asked: it's your own command, as if typed in a shell. Ctrl+C stops it.
@pathAttach a file in this folder to the message: an image goes in as an image, any other file as text.
Ctrl+V (Alt+V on Windows)Paste the clipboard's image: it's kept under ~/.tempr/attachments and an [Image #1] chip goes in the message at the cursor, as in Claude Code. The image goes with the message, up to 5 MB. Pasting or dropping an image file's path does the same. With only text on the clipboard, Ctrl+V pastes the text. Nothing to install on Windows or macOS; on Linux it needs wl-paste (Wayland) or xclip (X11), and says which when neither is there. The key is chat:imagePaste in Keybindings.

A turn that runs 30 seconds or more without you rings the terminal bell when it finishes or asks for approval, with a desktop notification in terminals that show one (iTerm2, WezTerm, Ghostty, kitty, rxvt, foot, Konsole). Not in CI or with output redirected; tempr config set-notifications off or TEMPR_NO_NOTIFY turns it off.

When the model reasons before a step, ✻ Thought for Ns shows in its place; --verbose prints what it thought. When the agent keeps a checklist for a task of several steps, the list shows each time it changes, with the step in progress marked.

Idle compaction is Claude Code's, and off until you run tempr config set-idle-compaction on. Then a conversation of 200K tokens or more left at the prompt is summarized shortly before its prompt cache runs out (about 5 minutes). If you come back after the cache ran out, your next message starts from the summary instead of resending the whole conversation uncached; if you come back sooner, nothing changes. It works in tempr acp too, and its cost counts toward --max-cost.

Plan mode

In plan mode the agent only reads: it looks around with read-only tools and ends with a plan. Tempr shows the plan and asks Carry out this plan?

  • Yes, accept edits carries it out with file edits going ahead and commands asking (approval mode bypass).
  • Yes, ask before edits carries it out asking before each edit and command (interactive).
  • Yes, auto carries it out on autopilot.
  • No, keep planning asks what should change, and the agent goes on planning.

Approving turns plan mode off. Start in it with --plan, or switch it with /plan.

Worktrees

tempr -w <NAME> (or --worktree) runs the session in a git worktree at ~/.tempr/worktrees/<repo>-<NAME>, on a new branch tempr/<NAME> (or NAME itself when it has a slash), so it can work beside other sessions without touching the folder you started in. The same name again goes back into that worktree; add -c to continue its session. One session at a time works in a worktree.

Files git doesn't carry, such as .env, can come along: list them in a .worktreeinclude at the repository's root, in .gitignore's syntax, as in Claude Code. A new worktree gets each file that matches and that git ignores; tracked files and files already there are left alone. A WorktreeCreate hook, when you have one, makes the worktree instead of git, and WorktreeRemove hooks remove it (see Hooks). --worktree isn't available with --env.

When the session ends, a worktree with nothing uncommitted is removed, and its branch too if this session made it and nothing was committed to it. Otherwise the work stays, and Tempr says where. Your OK for a folder's settings (tempr hooks allow) is the repository's, so it covers its worktrees, and the repository's own .claude/settings.local.json is read, since a worktree doesn't have it.

The agent tool set

In agent mode, the model drives the same tool families as the IDE, executed locally against your workspace:

Tool familyWhat it does
FilesRead, write, and edit files (read first, then targeted edits).
run_commandRun shell commands, gated by the command-safety allow-list: read-only commands and each ecosystem's build, test, lint and type-check commands (dotnet test, npm test, npm run build, pytest, go test, cargo test, mvn test, ./gradlew build and the like). A command with a line break or a redirection (>, <) is never allowed by the list, since either can run or write something the list never saw. A command runs in the workspace root or a folder inside it, stops after 2 minutes unless the model asks for up to 10, and long output keeps its start and end. Each turn tells the model which projects the workspace holds and how each builds and tests. In the sandbox, any command may run instead. With run_in_background, a command keeps running after the call returns: see Background commands.
command_output, stop_commandRead what a background command has printed since the agent last looked, and stop it.
todo_writeA checklist the agent keeps for a task of several steps and rewrites as it goes. It changes nothing on disk, so it never asks, and plan mode allows it.
lspAsk a language server for a definition, references, hover text, implementations, or a file's or the workspace's symbols. Read-only. Offered only when a language server is configured (Language servers); with one, each edit's result also carries the errors and warnings the server reports for the file.
Semantic searchEmbedding-based search over the workspace that finds conceptually related code.
SymbolsFind where a name is defined before the places it's used, in C#, TypeScript and JavaScript, Python, Go, Rust, Java, Kotlin, C and C++, Swift, Ruby and PHP, and what a function calls. Lexical, not a language server.
TestsDiscover and run .NET tests with structured pass/fail results. Other projects run their own test command through run_command.
DiagnosticsRead compiler and analyzer diagnostics from dotnet build, or tsc for a TypeScript project at the root.
Workspace graphA .NET workspace's projects and their references, and call-graph context. The .NET-only tools are offered only where there's a .NET project.
Sub-agent delegationHand a focused sub-task to a specialist persona mid-turn, or start it in the background and carry on.
MCP bridgeExpose tools from your configured MCP servers, and their resources and prompts.
Web pages and packagesweb_fetch reads a page as Markdown and lookup_package finds a package's latest version and links on npm, PyPI, crates.io, the Go module proxy, NuGet or Maven Central. Both run on Tempr's servers, not your machine.
Web searchOn an Anthropic, OpenAI or xAI model, the model searches the web with its provider's own search; on other models, with your Perplexity key if you saved one, else your Tavily key. See Web search.

Which pages the agent opens

Without asking, the agent opens a link that appeared in your messages, in a tool's result, or on a page it has already read in this session, and any page of a well-known documentation site such as docs.python.org, developer.mozilla.org or learn.microsoft.com. For any other address it asks first:

  • Yes opens that one page.
  • Yes, and trust <site> for this session also opens that site's other pages without asking until you exit.
  • No, or No, and tell the agent why, opens nothing.

To stop being asked about a site for good, run tempr config allow-site <site>. With no terminal to ask on (piped input, --json, or CI set), an address that would have asked is refused and the agent is told why. Every approval mode asks, since reading a page the agent chose can send what's in the address to that site. A URL that carries a key, token or password is only opened if you typed that credential yourself. Tempr's servers can't reach localhost or your own network; for those the agent uses curl through run_command, which you approve like any command. --disallowed-tools web_fetch turns page reading off for a run.

On a Claude model through your Anthropic key, an OpenAI model through your OpenAI key, or a Grok model through your xAI key, the agent can search the web with the provider's own search tool. Each search shows as Searching the web for "…", and the pages it finds are ones the agent may then open with web_fetch without asking.

Other providers' models (Groq, Cerebras, DeepSeek, Google and the rest) search with Perplexity's Search API instead, on your Perplexity key: save one on the Portal's API keys page, or ask your organization's admin to add one to the org's keys. With no Perplexity key, a Tavily key (Nebius's search API) does the same, and its free plan covers 1,000 searches a month. Where an admin limits which models a member can use, search needs perplexity/search (or perplexity/*) on that list, or tavily/search for a Tavily key. Each search returns up to five results with an extract of each page, shows the same way, and costs $1 per 1,000 searches on that key. Without a Perplexity key those models don't search; web_fetch and lookup_package still work for them. Perplexity's own models search through its Agent API either way, and local models don't search.

The provider runs each search and bills it to your key: $10 per 1,000 searches on Anthropic and OpenAI, $5 per 1,000 on xAI, where opening a page counts as a search too, and $1 per 1,000 on Perplexity (one credit each on Tavily, $8 per 1,000 pay-as-you-go), plus the tokens the results add. The cost tempr usage and the Portal's usage page show includes the searches.

An interactive session searches unless you turn it off with tempr config set-web-search off. A script (--json, piped input, or CI set) doesn't, so a CI job's cost and output don't depend on what the web says that day; pass --search to let it. --no-search or --disallowed-tools web_search turns it off for one run.

Sandbox (Linux and macOS)

--sandbox runs the agent's commands inside a sandbox: they can change files only in the current folder, the folders added with --add-dir or additionalDirectories, and the temp folders, and they can't open network connections. Package managers get a cache of their own. Reading is open. tempr config set-sandbox on turns it on for every run, and --no-sandbox off for one.

On by default for --yolo and CI. A run on autopilot with nobody deciding command by command (--yolo, --approval-mode autopilot, or autopilot in CI) runs its commands in the sandbox with the network on: the file limits hold, and installs, restores and tests that use localhost still work. Where the sandbox can't run, those runs go ahead unsandboxed, as before, and an interactive session says so. --sandbox cuts off the network as well; --no-sandbox, or tempr config set-sandbox off, keeps --yolo out of the sandbox. Other runs aren't sandboxed unless you ask, since the sandbox would let their commands run without asking.

Inside it, any command runs without asking, in every approval mode, so an unattended run can build, test and try things that have no allow-list entry. Commands that delete, publish or force-push still ask. When a command fails because the sandbox blocked it, a download say, the agent can ask to run it outside the sandbox, which always asks you first; a run with nobody to ask refuses it.

  • What it covers: run_command, the .NET test tools and get_diagnostics. Not !command, which you type yourself, and not MCP servers.
  • Protected files: a command may not keep changes to the files that run or allow things later, outside the sandbox, as Claude Code's sandbox guards them: .git/hooks, .git/config, the folder core.hooksPath names (Husky's .husky/), each submodule's config and hooks, .agentcommands.json, .claude/settings.json and settings.local.json, .tempr/settings*.json, .mcp.json, launch.json under .claude and .tempr, the .claude/agents, commands, hooks and skills folders, the scripts the folder's hooks run, .vscode, .idea, and the shell and git startup files at the workspace root (.bashrc, .zshrc, .profile, .gitconfig, .gitmodules and the like). On Linux, Tempr puts back anything a command changed there and tells the agent; on macOS the sandbox refuses the write. The agent's own edits to these files always ask, in every approval mode, and so do git config writes of core.* and include keys. CLAUDE.md isn't among them: the agent may edit its memory.
  • One at a time: one sandboxed command runs at a time per repository, so each one's check of the protected files is its own.
  • Package caches: each package manager (npm, pip, NuGet, Go, Cargo, Gradle, Maven and others) is pointed at Tempr's own cache in ~/.cache/tempr/sandbox-cache. Your own caches are read-only from the sandbox, since builds outside it load code from them; NuGet still reads your packages, as a fallback folder. dotnet keeps its per-user files in ~/.cache/tempr/sandbox-dotnet rather than ~/.dotnet, which holds global tools and stays read-only.
  • The network: --sandbox-network (or set-sandbox network) keeps the file limits and leaves the network on. Cutting it off blocks TCP connections on Linux, so name lookups still work, and TCP, UDP and name lookups on macOS.
  • Unix sockets: blocked whether the network is on or off, as in Claude Code's sandbox, so a command can't reach Docker's socket, an ssh-agent or tmux, which would act for it outside the sandbox. A command can still use sockets in its own temp folder. "sandbox": {"network": {"allowAllUnixSockets": true}} lifts the block; on macOS, allowUnixSockets lists single socket paths to let through. On Linux, allowUnixSockets can't let single sockets through, as in Claude Code: only allowAllUnixSockets does. Tempr reads both from managed settings, your own ~/.claude/settings.json and ~/.tempr/settings.json, and the folder's .claude/settings.local.json, never from a repository's committed .claude/settings.json. tempr doctor says which applies.
  • Where it runs: on Linux 5.13 or later, and 6.7 or later to cut off the network, through the kernel's Landlock; it needs no install and no privileges, and works in a container and on Ubuntu 24.04. On macOS through Seatbelt (/usr/bin/sandbox-exec), as Claude Code's sandbox does it there, with nothing to install. It isn't available on Windows yet (inside WSL2 it works), or in a remote environment. If you ask for it where it can't run, nothing runs: tempr exits with code 7 rather than run your commands unsandboxed. The default for --yolo and CI isn't asking, so it doesn't stop a run.
  • Managed settings: your organization's sandbox.enabled wins over --sandbox, --no-sandbox and set-sandbox, and its other sandbox keys can cut off the network, add writable folders or keep commands from leaving the sandbox. See Managed settings; tempr doctor lists what's locked.

Background commands

For a command that keeps running, such as a dev server, a watcher or a long build, the agent sets run_in_background on run_command. It asks like any other command, then starts and returns at once with an id such as bg-1. No timeout applies. The agent reads what it printed since it last looked with command_output, which can wait up to 60 seconds for something new, and ends it with stop_command.

  • /tasks lists them, running or ended, and /tasks stop <id> ends one.
  • Up to 10 run at once, each keeping the last 200,000 characters it printed.
  • They belong to the session: they all stop when it ends, and Tempr says how many it stopped.
  • They don't run in the sandbox yet. There, the agent is told to run the command without run_in_background.

Background sub-agents

The agent can start a sub-agent in the background (run_in_background on its delegation) and go on with the turn, as in Claude Code. A sub-agent that asked for one gets a git worktree of its own, removed afterwards if it changed nothing.

  • /tasks lists them with the background commands: status, id, time and latest activity. /tasks <id> prints one's whole output, /tasks stop <id> stops one and /tasks stop all stops everything.
  • What they find goes to the agent before your next message, or press Enter on its own to hand it over once they're done.
  • A sub-agent's question is asked while a turn has the terminal, and refused while you're at the prompt.
  • A one-shot or piped run waits for its sub-agents, hands their results to the agent, then exits.
  • Their edits are their own: /undo and /rewind leave them alone. They all stop when the session ends. --ask runs have none.

Code review

/code-review is Claude Code's review command, built in. The agent reviews with its own tools (git, and gh for a pull request), handing review passes to sub-agents, then prints its findings as a numbered list: severity, file and line, summary, and when it fails.

/code-review                      # this branch's commits ahead of its upstream, plus uncommitted changes
/code-review high 123             # pull request #123, at effort high
/code-review main...feature       # a range; a branch name or a path works too
/code-review src/auth --fix       # then fix the important findings in the working tree
  • Level: low, medium (the default), high, xhigh or max, from a few findings it's sure of to many, some uncertain. A level you type is remembered.
  • Options: --fix fixes the important findings after reporting them; --max-findings <n|all|default> sets how many are reported.
  • It works in a one-shot run too (tempr "/code-review high"), which prints the same list, and in editors. Claude Code's ultra level and --comment aren't available.

Remote environments

--env runs the session's workspace and every tool in another environment while the CLI runs here: a WSL distribution, or a machine you reach with ssh. Files are read and written there, and commands, git, the folder's hooks and stdio MCP servers run there. Nothing is installed or uploaded on the other side; it needs a POSIX shell with base64, find, grep, readlink and xargs.

tempr --env wsl:Ubuntu                         # this folder's /mnt path in the distro
tempr --env ssh:devbox --env-dir ~/src/app     # a Host from ~/.ssh/config
tempr --env ssh:me@10.0.0.5 --env-dir /srv/app "run the tests"
  • The folder: ssh needs --env-dir; WSL defaults to this folder's /mnt/<drive> path. A relative path or ~/ starts from the home folder over there. The home folder itself is refused unless you add --env-allow-home, since its dotfiles (.ssh, .aws, shell profiles) would be in the agent's reach.
  • ssh runs in batch mode with your own config, keys and agent, and never asks for a password. TEMPR_SSH_CONFIG points it at another config file. A host name may use only letters, digits and . _ @ : [ ] -. wsl: is for Windows.
  • Settings and rules: the remote folder's settings, hooks, permission rules and protected files apply as they would locally. A settings file there that exists but can't be read stops every tool call until it can be.
  • MCP: only the remote folder's own .mcp.json stdio servers start there, unless you add --env-user-mcp; remote (HTTP) servers connect from here.
  • Not available remotely yet: the sandbox (asking for it exits with code 7), --worktree and --add-dir (refused), language servers, the symbol, project, test and semantic-search tools, rewinding or reverting files, and the folder's own skills, commands and agents. The session says so when it starts.
  • The session records its environment, and the --json session line has it as environment.

Claude Code's files

A repository set up for Claude Code works as it is. Tempr reads, without changing them:

  • Commands in .claude/commands and ~/.claude/commands, subfolders too, invoked as /name.
  • Subagents in .claude/agents and ~/.claude/agents, invoked as @name. Their tools are mapped to Tempr's; a model is kept only when it's a provider/model id Tempr can use, otherwise the chat's model runs them.
  • Skills in .claude/skills and ~/.claude/skills.
  • MCP servers in the project's .mcp.json, local, HTTP and SSE, with ${VAR} and ${VAR:-default} filled in from the environment. One takes the place of your own server of the same name.
  • Memory: CLAUDE.md at every level Claude Code reads it, .claude/rules, and @path imports. See Memory files.
  • Output styles in .claude/output-styles and ~/.claude/output-styles, and the outputStyle setting. See Output styles.
  • Status line: the statusLine setting and the script it runs. See Status line.
  • Settings in .claude/settings.json, .claude/settings.local.json, ~/.claude/settings.json and an administrator's managed-settings.json, in Claude Code's order: hooks, permission rules, env, MCP server allow-lists and more. See Settings files.

A command or agent in Tempr's own folder wins over Claude Code's of the same name in the same place, the workspace's or yours. A folder's .mcp.json servers, hooks, allow rules, env variables and allow-list entries are things someone else chose, so they wait for your OK: an interactive session lists them and asks once, and tempr hooks allow allows them from a script. A change to any of them asks again.

Remote MCP servers

Besides the servers in the Portal, which go through Tempr's relay, the CLI connects to a remote MCP server directly, as Claude Code does:

tempr mcp add --transport http linear https://mcp.linear.app/mcp
tempr mcp add --transport http api https://mcp.example.com/mcp --header "Authorization: Bearer $TOKEN"
tempr mcp login linear       # sign in, if the server uses OAuth
  • Transports: http is Streamable HTTP; sse is the older HTTP+SSE transport, which some servers still use. --header (-H) can be given more than once.
  • Sign-in: a server that uses OAuth shows as needing sign-in in tempr mcp list and /mcp. tempr mcp login <name> or /mcp login <name> opens your browser, which comes back to http://localhost:PORT/callback; --no-browser prints the address instead. The tokens are kept encrypted in ~/.tempr and refreshed. tempr mcp logout <name>, or removing the server, deletes them. For an authorization server that can't register Tempr itself, add --client-id and --callback-port to match a client you registered.
  • Resources and prompts: a server's resources are mentioned as @server:protocol://path and go with the message; its prompts are commands, /mcp__server__prompt arg1 arg2, in the REPL, in tempr acp and at the start of a one-shot prompt (tempr "/mcp__github__review 42", piped input after it). A missing argument or unknown prompt in a one-shot run exits with code 2. A server that says its tools, resources or prompts changed is listed again.
  • Which servers may start: Claude Code's allowedMcpServers and deniedMcpServers apply to every server, whatever it came from. See MCP server allow-lists.

Plugins

Tempr installs Claude Code's plugins from Claude Code's marketplaces. Add a marketplace, then install from it:

tempr plugin marketplace add owner/repo
tempr plugin list
tempr plugin install formatter

What an enabled plugin brings:

  • Its commands as /plugin:command, its agents as @plugin:agent, and its skills as plugin:skill.
  • Its hooks and MCP servers. You installed it, so they need no folder OK.
  • Its language servers (.lsp.json), for the lsp tool and the errors after each edit.
  • Its bin/ folder, first on the agent's command PATH.

Plugins live in ~/.tempr/plugins, each with a data folder that's kept across updates. An enabledPlugins entry in ~/.tempr/settings.json wins over enable and disable, as in Claude Code. A plugin can come from any of Claude Code's sources: a folder in the marketplace, GitHub, a git URL or subfolder, an npm package (its install scripts never run), a zip over HTTPS (its sha256 checked), or a command that prints its folder. A command is shown to you and runs only when you say yes (tempr plugin install <name> --yes accepts it where nothing can ask); it runs again once a session, and a changed command asks again. A plugin that asks for values (userConfig) asks when you install it, and tempr plugin config <name> shows or sets them (key=value, or server.key=value for an MCP bundle's). Sensitive values are kept encrypted, never in settings.json. MCP bundles (.mcpb) in a plugin are unpacked when it's installed.

Tip

The agent loop runs server-side like the IDE, so a dropped connection doesn't lose an in-flight turn, and every session is saved automatically, ready to resume with tempr --id. A local model's loop runs on your machine instead.

Next steps