Motus — AI skill for Claude Code
Keep API keys and tokens out of your AI coding agent.
How to install Motus
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open espadat-studio/motus and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Motus does
Keep API keys and tokens out of your AI coding agent. Redacts exact secret values from tool output and session files in pi, and blocks credential files and printing commands in pi and Claude Code. Fails closed.
Alternatives in AI
- Phantom — An AI co-worker with its own computer 1.3k ★
- AI Claude Start — Multi-profile Claude Code launcher with secure credential management 219 ★
- Arbitrage — A Claude Code skill for token arbitrage: keep premium model tokens for judgment, dispatch all code-writing to 172 ★
README
motus
**[motus.espadat.com](https://motus.espadat.com)**
Stop your AI coding agent from leaking your API keys.
An agent that runs `env`, `cat .env` or [`forge -vvvv`](https://book.getfoundry.sh/forge/) sends every value it prints to the model provider. In [pi](https://github.com/earendil-works/pi) it also lands in the session files, where memory tools copy it again. motus loads your secrets at session start and replaces each exact value with `[REDACTED:NAME]` before output leaves the tool. It also blocks the commands and files that print secrets in the first place.
- pi: redaction plus blocks. Covers tool results, saved messages, prompts,
!shell commands and the provider request. - Claude Code: blocks only, through a
PreToolUsehook. Claude Code ignores output rewrites for Bash, so there is nothing to redact with. - Five sources:
env,command, `mise`, `pa` and `1password`. One TOML file configures all of it. - Web3 safe: no entropy or hex rules, so tx hashes, addresses and storage slots pass through untouched.
- Fail closed: a required source that fails where it applies blocks tools until you accept partial protection.
It stops accidental leaks only. A hostile or prompt-injected agent can exfiltrate a secret before any output is redacted. Use a sandbox for that.
Status: 1.0 is not published to npm yet, and the end-to-end smoke test in [pi](https://github.com/earendil-works/pi) is still open ([`meta/plan.md`](meta/plan.md)).
Install
pi
Install globally and load motus before every other extension:
pi install npm:@espadat/motus
`pi install` appends motus to the end of `packages` in `~/.pi/agent/settings.json`. Move it to the top:
{
"packages": [
"npm:@espadat/motus",
"npm:other-extension"
]
}
- Global, never
--local: subagent [pi](https:/
Related Skills
Claude Code Secret Guard
Claude Code mod that keeps API keys, tokens and passwords out of the model's context: gitleaks scans every too
Claude Code Secret Gate
The pre-commit secret gate for AI coding agents — content-scans staged changes and blocks any commit containin
Infisical Skill
Infisical secret management skill for AI agents — keep API keys out of agent context
Rapg
Local-first secret manager for the AI-agent era — keep API keys out of .env files and out of your agent transc
AI Credential Safety
Guide to protecting API keys and credentials from AI agent exposure — .env safety, secret scanning, and Secret
Agent Firewall
A firewall for AI coding agents — inspects prompts, tool calls, and model output to catch credential leaks, pr
Related Agents
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
Secret Scanner
PYA specialist spawned by the /pya orchestrator. Finds hardcoded and leaked credentials in an untrusted reposi
Secret Hunter
Hunts publicly-leaked credentials (API tokens, cloud keys, DB strings) that belong to a previously-ingested pr