PassSumo
Connect Claude and other AI agents
PassSumo ships a small local MCP server, psumo, inside the app. An
AI agent such as Claude Code, Cursor, Codex or Claude Desktop can ask it for a password, and you approve
on your Mac. This guide walks through the setup from the beginning.
Read this first. You approve each grant on your Mac. The agent reads the folders you allow and, under Read and write, adds entries and changes existing ones where the database’s agent settings allow writing; it cannot move or delete. SSH keys work through PassSumo's SSH agent: you approve each key once on your Mac.
What you need
- PassSumo installed in
/Applications, on macOS 27 or later. - A database. Agent access is set up per database.
- An MCP client: Claude Code, Cursor, Codex, Claude Desktop, or any client that can start a local stdio server.
Step 1. Turn on agent access for a database
- Open and unlock the database in PassSumo.
- Open File → Database Settings… (Cmd+Option+,) and go to Agent access.
- Turn on Allow AI agent read access. It is off until you do.
- Under Allowed folders, tick the folders the agent may see. An entry
outside them comes back as
not_found, as if it did not exist. - Set Idle time before access ends.
A database that has never had agent access turned on must be unlocked once in PassSumo, with the setting on, before an agent can ask for it.
Step 2. Install psumo with a symlink
The psumo program lives inside the app, at
/Applications/PassSumo.app/Contents/MacOS/psumo. Point your tools at a symlink
to it, not at the bundle itself, so the setup survives app moves and updates. Run:
mkdir -p ~/.local/bin && ln -sf /Applications/PassSumo.app/Contents/MacOS/psumo ~/.local/bin/psumo
File → Database Settings… → Agent access shows the same line with your real paths and a Copy install command button.
Do not copy the file. PassSumo checks the code signature of the program
that connects to it, and a copied psumo fails that check
(unverified_peer). A symlink resolves to the real binary and works.
Check that it answers (PassSumo must be running, and a database must be open):
~/.local/bin/psumo ping
It prints pong.
Step 3. Add PassSumo to your client
Claude Code
Register the server once:
claude mcp add psumo -- ~/.local/bin/psumo mcp
The shell expands ~ before Claude Code stores the command. File → Database Settings… → Agent access also has a Copy MCP command button with your real path.
Claude Desktop
Add a server to Claude Desktop's configuration file
(claude_desktop_config.json), using the absolute path of the symlink, with
mcp as its only argument:
{
"mcpServers": {
"psumo": {
"command": "/Users/YOUR-NAME/.local/bin/psumo",
"args": ["mcp"]
}
}
}
Replace YOUR-NAME with your macOS user name, then restart Claude Desktop.
Any other MCP client
PassSumo speaks MCP over stdio, one JSON message per line, and prints nothing else on standard output. Configure your client to start this command:
/Users/YOUR-NAME/.local/bin/psumo mcp
No environment variables or extra flags are needed; mcp takes no arguments.
Step 4. Approve the first request
Ask your agent for a password. PassSumo shows an approval request that names the database and the reason the agent gave; every call must carry one. Click Allow… and confirm with Touch ID or your Mac password.
If PassSumo is not running, psumo starts it in the background. You never have
to add a timeout on the agent's side: PassSumo ends an unanswered request itself.
Step 5. Try it from Terminal
You can test the whole path without an agent. Find an entry (metadata only, no secrets):
~/.local/bin/psumo find Test
Replace Test with part of an entry's title. The first value on each line is the entry id. Then reveal one field:
~/.local/bin/psumo reveal <id> --field password
One field prints its raw value; several fields print JSON.
What the agent can and cannot do
- Tools:
list_databases,list_groups,find_entries,reveal_entry,add_entry,update_entry,ssh_catalogandssh_target. Every call needs areason, which you see when you approve. - Searching returns metadata only.
find_entriesgives titles and ids, never secret values. - Revealing returns the secret.
reveal_entryreturns the fields it names:username,password,totp,url,notesorcustom:<name>. - Read by default. At each approval, on the Mac, the person chooses Read or Read and write. Under Read and write, the agent adds entries and changes existing ones where the database’s agent settings allow writing (
add_entry,update_entry; CLI:psumo add/psumo update); it cannot move or delete. - Only allowed folders. Everything else is invisible to the agent.
Agent access policy
In File → Database Settings… → Agent access, open Edit as text. Use describe, read, write and deny for what agents may see, read or change, and exclude to hide single fields.
path "Dev/*" {
capabilities = ["read"]
exclude = ["password", "custom:Recovery codes", "attachment:*.p8"]
}
path "Servers/+/staging" { capabilities = ["read"] }
path "Servers/+/prod/*" { capabilities = ["deny"] }
path "Agents/*" { capabilities = ["read"] }
path "Agents/CI/deploy-token" { capabilities = ["write"] }
Secrets for Terraform and other CLI tools
Keep provider tokens out of ~/.zshrc and files on disk: psumo env prints several secrets after one approval. A mapping file holds no secrets, so it can sit next to your Terraform code.
# .psumo-env — no secrets in it
HCLOUD_TOKEN = Infra/Hetzner/hcloud-api
CF_DNS_TOKEN = Infra/Cloudflare/dns-token#password
psrun() { ( eval "$(psumo env --reason "$*" < .psumo-env)" && exec "$@" ) }
psrun terraform plan
The tokens exist only for that one command.
Useful psumo commands
Keep the find / reveal / ping / mcp path from the steps above. These cover the rest of day-to-day use:
# List open databases
~/.local/bin/psumo dbs
# List allowed folders
~/.local/bin/psumo ls
# Reveal every field of an entry
~/.local/bin/psumo reveal <id> --all
# Create an entry with a generated password
~/.local/bin/psumo add --group "Dev" --title "Staging DB" --generate
# Create an entry with a password from stdin
echo 'example-secret' | ~/.local/bin/psumo add --group "Dev" --title "API key" --password-stdin
# Change a field on an existing entry
~/.local/bin/psumo update <id> --url https://example.com
# List SSH keys marked for the agent
~/.local/bin/psumo ssh-catalog
# Load a marked key and print ready ssh/git lines
~/.local/bin/psumo ssh-target "deploy"
# Export several secrets for one CLI command (Terraform and friends)
~/.local/bin/psumo env < .psumo-env
# or: ~/.local/bin/psumo env --map HCLOUD_TOKEN=Infra/Hetzner/hcloud-api
# Show every command
~/.local/bin/psumo --help
Duration and revoking access
- You set Idle time before access ends in File → Database Settings… → Agent access. The grant also ends when PassSumo quits.
- In that same Agent access section, Revoke ends the current grant, End session ends one listed grant, and Revoke all ends every grant.
- The File menu's Lock & Revoke Agent Access locks the database and ends its grant in one step.
- Turning off Allow AI agent read access stops new requests for that database.
Troubleshooting
app_not_runningordb_not_open— PassSumo is not running, or the database is not open. Open it with
and retry. Agents should use the path you give them and never search the disk for databases.open -a PassSumo "<path to the .kdbx or .psum file>"disabled— agent access is off for that database. Turn it on in File → Database Settings… → Agent access.not_found— the entry is outside the allowed folders, or the id is wrong.denied— the request was declined.timeout— nobody answered in time. Ask again.unverified_peer—psumois a copy, not a symlink into the app. Re-run the install command from Step 2.write_not_granted(18) — the grant is Read; approve again as Read and write.read_only(19) — the database is open read-only; open it for writing.write_not_allowed(21) — the policy does not givewriteon that entry or group.forbidden— the entry is describe-only for agents; reveal needsread.locked— the database is locked; unlock it in PassSumo.phone_not_delivered— the paired iPhone did not show the request in time; unlock the phone and ask again.ssh_agent_disabled— turn on Offer keys to SSH clients in Settings → AI Agents → SSH Agent.ssh_socket_unavailable— PassSumo could not create the SSH agent socket; quit PassSumo and open it again.ssh_no_marked_keys— mark an SSH Key entry with Use with SSH agent.- The link points at an old location after you moved the app — run the install command again to re-point it.
Still stuck? The feedback form reaches the person who writes the code. Common questions are in the FAQ.