References, not values
The agent only ever sees ms:// names. A prompt-injected agent has nothing to leak.
morsec is a secret broker that keeps Claude Code API keys out of the agent. It stores API keys, database passwords and tokens in the macOS keychain and gives Claude Code and Codex an ms:// reference instead. A local daemon swaps the real key into a request only when it goes to a host the user allowed.
Coding agents need keys to do real work. Call Stripe. Query the database. Push to git. The usual setup puts Claude Code secrets where the agent can read them.
The agent reads the project, so it reads the .env. Now the value sits in its context, its transcript and every tool call it makes.
Secret managers that run a command with secrets as environment variables keep keys out of files. The process, and an agent running under it, still holds the plaintext.
A page or a repo can tell the agent to do something else. "Be careful with your prompts" doesn't stop a tricked agent from posting a key to a paste site.
Same machine, same files, same permissions. Whatever stops a leak has to hold even when the agent itself has been turned against the user.
Names travel. Values arrive only where they're allowed. Setup is five commands.
morsec is a credential broker, not another vault. It decides where each key may go and who said yes.
The agent only ever sees ms:// names. A prompt-injected agent has nothing to leak.
A key goes only to the hosts its rule names. Private, loopback and metadata addresses are refused.
For psql, ssh, git and deploy scripts, msd runs the command itself. The agent gets the output, not the password. ms mcp offers the same as typed MCP tools.
Approvals are drawn by morsec from the real request and confirmed with Touch ID. Keychain items open only for the signed morsec daemon.
Allowed or blocked, each use leaves a hash-chained receipt. ms scan checks agent transcripts for any vault value.
If msd isn't running, no key leaves the Mac. ms stop cuts every agent off, and ms doctor says what's wrong.
Most secret tools answer "who can read this key". morsec also answers "where can this key go", on the user's own Mac.
| morsec | .env files | 1Password CLI (op run) | Infisical Agent Vault | |
|---|---|---|---|---|
| What the agent can read | An ms:// reference | The plaintext value | The value, as an environment variable of the process it runs | Not the real credential: the proxy adds it |
| Where a key can go | Only the hosts bound to it | Anywhere | Anywhere the process sends it | The hostnames set for each proxied service |
| Where keys are stored | macOS keychain on the user's Mac | A file in the project | 1Password | Infisical |
| What has to run | A local daemon (msd) | Nothing | 1Password CLI and account | An Agent Vault proxy, alongside or near the agents |
| Commands that need a value (psql, ssh, git) | msd runs the command; the agent gets output | Value in the environment | Value in the environment | Databases and SSH reachable through the proxy |
| Approval per use | Touch ID for production keys | None | Not described on the op run page | Hooks: the user's own server allows or refuses |
| Record of each use | Hash-chained receipt, allowed or blocked | None | Not described on the op run page | Session logs |
Competitor facts from public docs as of 2026-11-20: 1Password (1password.dev/cli/secrets-environment-variables), Infisical Agent Vault (infisical.com/docs/documentation/platform/agent-vault/overview, infisical.com/blog/agent-proxy). Doppler (doppler run), Infisical (infisical run) and HashiCorp Vault Agent (process supervisor mode) also inject secrets as environment variables, per their docs.
Claims below are from the released v0.1.0.
The agent works with ms:// names. The value is added after the request leaves the agent, only for bound hosts.
Homebrew, npm and a curl installer ship the same Developer ID signed, notarized binaries. The curl installer checks checksums, signatures and notarization before it installs anything, and never uses sudo. The npm package runs no install scripts.
Released 2026-11-17: swap mode, run mode, ms mcp, ms doctor, and connectors for Claude Code and Codex.
Claude Code or Codex on a Mac, with keys for payments, databases, git hosts or cloud APIs.
One rule for where each key may go, and a record of every use, allowed or blocked.
A control that holds when the agent is tricked, instead of a policy that hopes it won't be.
Short answers first. Anything not covered here is a question for a lab engineer.
Give Claude Code an ms:// reference instead of the key. morsec stores the value in the macOS keychain, and its local daemon swaps it into requests only for the hosts the user bound to that key.
No. Keys stay in the Mac's keychain and only go to hosts the user allows. morsec makes no model calls.
Claude Code and Codex today, plus any MCP client through ms mcp. Cursor and Gemini are next, per the morsec site.
op run gives the process the real values; morsec gives it a name. op run starts a command with secrets as environment variables, so an agent running under it can read them. morsec keeps the value in msd and adds it only to requests bound for allowed hosts.
Both keep the credential in a proxy instead of the agent; morsec does it locally on one Mac. Agent Vault brokers credentials from Infisical through a proxy deployed in the user's infrastructure. morsec uses the macOS keychain, needs no server or account, and asks for Touch ID on production keys.
Nothing leaks. The agent never had the key, so skipping morsec only loses it access to the service.
Nothing goes out. morsec fails closed: no daemon, no swap, no key.
Each product started as a tool the lab needed for its own agent work.
Motiontic sets up coding agents with keys that stay where they belong. Talk through where the keys should live, which hosts they need and who approves what.
Describe the agent, the systems it touches and what it must never get wrong. The first call is with a lab engineer, who will say plainly whether it is ready for production, and whether Motiontic is the right team.