Quick verdict
Quick verdict
- Click the key button beside any agent’s paperclip to send an API token, private key, or
.envwithout pasting it into chat: the agent receives only the key name and reads it once within 10 minutes via a pane-bound one-read pipe. - Use whole-value
${NAME}references in workspace startup environments so secrets never sit inlayout.yaml, and choose Use once or Keep (Settings › Saved secrets) for credentials stored in the macOS Keychain or private0600files. - Turn on Managed SSH (off by default, macOS and Linux) to route Claude and Codex SSH and Git operations through your 1Password SSH agent with per-request attribution, human Allow / Deny, and sanitized Git execution.
What you get
What you get
You & local secret stores
- Key button beside paperclip (masked, Use once or Keep)
- 1Password SSH agent retains private keys
- macOS Keychain / Linux 0600 files / Windows owner-only files
one-read FIFO path or single signed request
secret request (cmdbrief_ask_secret) or SSH reason
Agent pane (local or paired)
- Sees only key name & id (never the value in chat or logs)
- One-time
cmdbrief_secret_takewithin 10 minutes - Managed SSH/Git prompts you with reason & destination
Pasting an API token, .env file, or private key directly into an agent chat writes it into the prompt history, transcript files, and provider requests. CmdBrief replaces copy-paste secrets with three dedicated mechanisms — Send a secret, `${NAME}` layout references, and Managed SSH through 1Password — while keeping credentials strictly local to each machine. If you also register local or remote MCP servers, see how to run an MCP server without Docker to keep credentials out of config files.
Where CmdBrief stores secrets on Mac, Linux, and Windows
| Platform | Credential storage location | Important boundary |
|---|---|---|
| macOS | macOS Keychain (ee.cmdbrief.account, ee.cmdbrief.apikeys, ee.cmdbrief.local-access.*, ee.cmdbrief.saved-secrets.*) | Authorization follows the app’s code-signing identity; MCP helpers never read the Keychain directly. |
| Linux | Private `0600` files inside ~/.local/share/CmdBrief/secrets/ (0700 folder) | Any program running as the same Linux user can read those files. |
| Windows | Owner-only files inside %USERPROFILE%\AppData\Local\CmdBrief\secrets | Same-user boundary; Managed SSH is still marked Coming soon on Windows. |
When you move a workspace to another computer, its saved secrets remain on the original computer; when you delete a workspace, CmdBrief removes that workspace’s saved secrets on that computer. See Multiple CLI accounts and usage limits and Pair another Mac or Windows PC for how paired computers stay isolated.
Use ${NAME} references in workspace layouts
You do thisWorkspace layout YAML and run target editor
Startup environment entries in workspace layouts and run targets support whole-value ${NAME} references. CmdBrief resolves each reference from its own environment when the pane launches so tokens never sit in layout.yaml or exported templates:
env:
STRIPE_WEBHOOK_SECRET: "${STRIPE_WEBHOOK_SECRET}"
POSTHOG_API_KEY: "${POSTHOG_API_KEY}"
NODE_ENV: "development"References must span the whole value. Unset variables are skipped at launch with a warning toast.
- The run-target editor flags secret-looking literal values so you can replace them with
${NAME}before saving. - Exporting a workspace layout prompts for confirmation before writing any literal secret-like value.
- If you run a headless Linux server, pipe connector, OpenRouter, or DeepSeek keys over stdin with
cmdbrief settings set <key>instead of putting them in shell history (see the CLI reference).
Enable Managed SSH with the 1Password SSH agent
You do thisSettings › Coordination › Managed SSH
Managed SSH is off by default and supports local panes on macOS and Linux (marked Coming soon on Windows). It attributes every agent SSH or Git signing request to its exact workspace, tab, pane, and stated reason before forwarding a single signature to 1Password.
- Turn on the SSH agent in 1Password › Settings › Developer › SSH agent. CmdBrief checks the socket at
~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sockon macOS or~/.1password/agent.sockon Linux (1Password’s Flatpak and Snap builds on Linux do not provide an SSH agent). - Open Settings › Coordination › Managed SSH, verify the socket check succeeds (CmdBrief checks reachability without requesting keys or signatures), turn Managed SSH on, and save.
- Start a new agent pane after turning Managed SSH on — existing sessions do not gain the helper environment or routing hooks retroactively.
- When a Claude or Codex agent runs SSH or Git (
fetch,pull,push,ls-remote), its pre-tool hook routes covered commands through$CMDBRIEF_SSH_HELPER(cmdbrief ssh/cmdbrief git) or the local MCP tools (cmdbrief_ssh_start,_status,_cancel). - Review each signing dialog showing the pane, agent, workspace, resolved host, quoted command/Git args, reason, and key fingerprint. Click Allow for one request, Deny to stop it, or tick Keep allowing before Allow for a session-only, in-memory standing grant (revocable in the right sidebar’s SSH section; never persisted across restarts, and repositories outside the workspace always prompt).
cmdbrief ssh --reason "Check service status before proposing a restart" \
-- [email protected] 'systemctl status cmdbrief'
cmdbrief git --reason "Fetch the upstream branch before comparing changes" \
-- fetch originIf a login shell resets PATH, agents invoke "$CMDBRIEF_SSH_HELPER" in place of cmdbrief. Each operation uses a private 0700 folder under /private/tmp (macOS) or /tmp (Linux) with a 0600 broker socket.
- No silent fallback: if 1Password later becomes unavailable, Managed SSH stays on and reports the problem instead of falling back to ordinary SSH.
- Stricter Managed Git: runs
/usr/bin/gitin a private allow-listed folder so repository hooks,core.sshCommand, filters, and aliases cannot execute; stages new objects/refs privately and rejects symlinks inside.git, reftable repositories, and Git LFS pushes.pullfetches only and instructs the agent to merge locally without SSH. - Own-key hosts (`IdentityAgent none`): hosts configured with
IdentityAgent nonein your~/.ssh/config(such as an internal dev or Linux build box) bypass Managed SSH and run directly — ignoring any caller-supplied-o IdentityAgent=noneor-iflags — and are logged as Direct runs. - Expiry & audit trail: pending signing requests expire after 10 minutes (the top-bar Needs you button turns red at 2 minutes left, and an expired request leaves a pinned notice). The app-global SSH access pane keeps up to 500 metadata records for 7 days (
ssh-auth-history.json).
Check it worked
- Your terminal
ssh -G my-dev-box | grep -i identityagentShowsidentityagent nonefor hosts that should bypass 1Password and run directly. - Settings › Coordination › Managed SSHClick Open SSH access after running one managed fetchThe operation appears under its workspace with decision, signature count, exit code, and duration.
If it fails
Agent gets “That secret was already taken, its 10 minutes ran out, or the session it was sent to ended.”
You do this
Secrets sent via the key button are single-use and bound to the exact session for 10 minutes. Send it again from the key button (or approve a saved secret).
Pane header shows SSH: restart agent after enabling Managed SSH
Start a fresh pane and agent session so CmdBrief attaches the private
runtime/ssh-binhelper and verifies the control-socket ancestry.Settings › Coordination › Managed SSH cannot find 1Password on Linux
You do this
Confirm
~/.1password/agent.sockexists and 1Password was installed from the native.deb/.rpmpackage — Flatpak and Snap builds of 1Password have no SSH agent.Managed
git pullexits 1 after fetching, or a push is refused for Git LFSYou do this
By design, Managed Git
pullfetches only so the agent merges locally without SSH, and Git LFS pushes are refused before sending. Run LFS pushes yourself in a normal terminal.An own-key dev host still triggers Managed SSH review
Remove caller overrides like
-i,-F,-o IdentityAgent=none, orGIT_SSH_COMMANDfrom the command — only your~/.ssh/configIdentityAgent nonemakes a host direct.Managed SSH toggle is dimmed on Windows
Managed SSH is still marked Coming soon on Windows; use Send a secret and
${NAME}layout references there today.
Questions
Can a crew member take a secret I sent to the lead pane?
No. cmdbrief_secret_take checks kernel process identity and live pane ancestry (LOCAL_PEERPID on macOS, SO_PEERCRED on Linux, and Windows process checks). Any other pane receives “That secret was sent to another agent.”
Can I approve Managed SSH requests from Grok Bot or my phone?
Yes, for a single request only. With Remote control on and reach over that workspace, a connected chat app (as well as a paired computer with Full use or your own Linux terminal outside CmdBrief’s cgroup via cmdbrief answer host:ssh:... Allow) can send a one-time Allow or Deny—never “Keep allowing”—and the request still hands off to 1Password on the host computer. CLI sign-ins, computer sign-in approvals, and secret asks (cmdbrief_ask_secret) can never be answered from a chat app.
Does a cached 1Password approval bypass CmdBrief’s Managed SSH dialog?
No. Even if 1Password recently authorized a key, CmdBrief still gates every managed request until you click Allow (or grant an in-memory Keep allowing approval for that pane, destination, and key).
What happens to a secret I sent with “Keep” when I delete the workspace?
Deleting the workspace removes its saved secrets from that computer’s secret store. You can also remove any saved secret individually under Settings › Saved secrets.
Still unsure? Write to [email protected] or use the contact form. Contact CmdBrief →
Primary sources
Provider terms and product behavior can change. Confirm plan, pricing, model, and permission details in the current official documentation.