Your Mac. Your vault.
API keys and tokens live in an encrypted vault on your machine. No cloud sync, no account to create.
A local vault for AI coding agents
Give your agent permission to use your API keys.
Without handing over the keys.
macOS 14+ Latest release on GitHub
grantpin run --secrets API_KEY \
-- ./deploy.sh
./deploy.shAPI_KEYvalue stays hidden
~/your-project
The command gets the secret.
The agent gets redacted
output.
API_KEY=[REDACTED:API_KEY]
Decision recorded in the audit log
The agent asks. You decide. grantpin handles the secret.
API keys and tokens live in an encrypted vault on your machine. No cloud sync, no account to create.
Review the command and approve with Touch ID. Allow a single run or create a grant with a scope you choose.
Keep a local record of requests, decisions, and results. Injected secret values are redacted from command output.
A small change to your workflow
Think of grantpin as the bouncer between your AI agent and your secrets.
Add your API keys and tokens to the local vault. Manage them from the menu-bar app, or use the CLI.
Store once. Reference by name.Connect through MCP, or let your agent call the grantpin CLI. It asks to run a command with named secrets.
No secret values in the agent’s configuration.See the command, project, and requested keys. After approval, grantpin runs the command and returns redacted output.
Your approval. An audited result.Good questions.
The normal run flow passes the secret to the approved command’s environment, not to the agent. grantpin replaces exact matches of injected values in stdout and stderr before returning that output.
This is exact-match redaction: encoded or transformed values can get through. Always review the command you’re approving.
You can approve one run, allow matching requests for a limited time, or create a standing grant. Grants are scoped to a caller label, project directory, secret names, and command prefix. Matching requests can then run without a new prompt; every use is still audited.
Creating a grant requires approval. Keep its scope narrow and its lifetime short.
grantpin has an MCP server and a command-line interface. Claude Code has a dedicated connection flow in the app. Other coding agents, including Codex and Cursor, can integrate through MCP or call the CLI.
No. An approved command receives the secret and can send it elsewhere. grantpin does not sandbox commands or restrict network access, and it cannot protect a compromised user account.
The important boundary is your approval of the command and any grants you create.
The current app is for macOS 14 and later. It includes a menu-bar app, a local background service, a CLI, and an MCP server. Touch ID is used for approval, with macOS account-password fallback when needed.
Yes. grantpin is licensed under Apache 2.0. It runs locally, with no cloud account or sync service required.
Less exposure. More peace of mind.
A local home for your secrets.
A clear boundary for your agent.
macOS 14+ Latest release on GitHub
or with Homebrew
brew install --cask jmeh-sindikata/grantpin/grantpin