Block
Refunds, payouts, force pushes to main, live Stripe keys in a shell and edits to Passkey itself stop with no prompt. Block always wins over everything else.
Touch ID for Claude Code on macOS
Passkey for AI is a tiny native hook for Claude Code. It blocks the worst tool calls outright and asks for Touch ID before risky ones: refunds, pushes to main, production deploys, recursive deletes.
One payment. Every 1.x update. Works offline. No account.
Or let your AI agent install it: copy a prompt.
Install with AI
Paste one prompt into Claude Code, Codex or Antigravity. The agent does the steps and stops at each Touch ID for you.
Claude Code runs the checks and the build. Once Passkey is installed it guards that same session, so the agent cannot approve its own setup.
You are Claude Code, running on my Mac.
Read https://passkeyforai.com/install.md and carry out the section "Install Passkey" (anchor #install). Follow its safety rules: stop at every Touch ID step and tell me exactly what to do, never bypass, edit or disable Passkey, never read or print secrets, and report what you did and what failed.
If you cannot fetch the page, tell me instead of guessing.
You are Claude Code, running on my Mac.
Task: Install Passkey. Install Passkey for AI on my Mac and register its hook in Claude Code.
Safety rules, they apply to every step:
1. Passkey is a Touch ID gate for Claude Code. It deliberately stops an AI agent from changing its own files, approving its own config, registering or removing its hook, and uninstalling it. Those steps need my fingerprint on the Mac.
2. At every Touch ID step, stop. Tell me exactly what to do (the command to run, the sheet that will appear, what to touch) and wait until I say it is done. Do not continue on your own.
3. Never try to bypass, disable, edit or work around Passkey. If a command is blocked or asks for Touch ID, that is the product working. Do not retry it in another form, do not script around it, do not stop processes, and do not edit ~/.claude/settings.json, ~/.claude/passkey, /usr/local/etc/passkey or /usr/local/libexec/passkey yourself.
4. Never read or print license files, member keys, admin keys or enrollment tokens. Use only what I paste to you in this chat, and do not repeat it back. Do not put a secret into a command you run. Give me the command and I will run it in my own terminal.
5. Do not run a command that changes security settings until I have seen it. Show me the exact command and say what it changes.
6. When you finish, report what you did, what you checked and what the check said, and anything that failed or that you could not do. Do not claim a step worked unless you saw the result.
What works today:
- Passkey for AI 1.x is in early release. There is no binary download yet. The installer (install.sh) builds one Swift file on the Mac, so the Mac needs the Xcode Command Line Tools.
- You need the release folder: the folder that holds install.sh, src/passkey.swift and presets/. If I do not have it, ask me where to get it. The README quick start clones https://github.com/shreyvaughn/passkey-for-claude.git for people who have access. Do not download Passkey from anywhere else and do not invent a download URL.
BIN means the Passkey program: ~/.claude/passkey/bin/passkey for a normal install, /usr/local/libexec/passkey/passkey for a hardened install. It may not be on PATH, so use the full path.
Steps:
1. Check the Mac. Run sw_vers -productVersion (macOS 13 or later is required), xcode-select -p and swiftc --version. If xcode-select -p fails, tell me to run xcode-select --install in my terminal and wait. Ask me whether this Mac has a Touch ID sensor or a Magic Keyboard with Touch ID. Passkey has no password fallback, so without one, gated actions are refused. Check that Claude Code is installed with claude --version.
2. Find the release folder (see "What works today"). Run ls on it and confirm install.sh, src/passkey.swift and the presets folder are there. Read install.sh and README.md so the commands you give me are exact.
3. Ask me these questions in one message. Hardened or normal? Hardened puts a root-owned binary in /usr/local/libexec/passkey and the config in /usr/local/etc/passkey so Claude cannot edit its own rules, and it asks for my sudo password. It is recommended. Which presets: stripe (free, recommended), git, publish, shell-danger. The last three need a Pro license and stay off without one. Mode: per-call (default, asks every time) or window (one Touch ID, then 1 to 120 minutes, default 15, for that Claude session).
4. Build the install command from my answers: ./install.sh --presets <comma list> with --mode window --window-minutes <n> if I chose window mode and --hardened if I chose hardened. Use --presets none for only the built-in guard. Always pass --presets so the installer does not ask questions on a terminal you do not have.
5. Show me the exact command and what it does: it builds src/passkey.swift with swiftc, copies the program and presets, writes the config, registers the hook in ~/.claude/settings.json (after backing it up to settings.json.bak-passkey) and asks for Touch ID once.
6. Touch ID step. If Passkey is not installed yet and I chose a normal install, you may run the command yourself once I agree. A Touch ID sheet appears on my Mac. Stop and tell me to touch the sensor. For a hardened install, or if Passkey is already installed, give me the command to run in my own terminal in the release folder, because it needs my sudo password or the guard will block you. Wait until I say it finished.
7. Do not try to register the hook, edit settings.json or run passkey approve or install-hook yourself.
Check:
- Run BIN status. Report the approval state, the mode, the presets and the license line it prints.
- Run BIN check-config. It should report no errors.
- Run grep -n passkey ~/.claude/settings.json (read only) and confirm a PreToolUse hook entry points at the Passkey program.
- Ask me to run BIN test-dialog. A Touch ID sheet appears and I touch the sensor. Wait for my answer.
Hand back to me:
- Tell me to restart Claude Code (or open /hooks) so it loads the hook.
- List the choices that were made (hardened or normal, presets, mode) and what status said.
- Remind me that the audit log is ~/.claude/passkey/audit.log and that git, publish and shell-danger need a Pro license (the next task).
The short prompt tells the agent to read /install.md.The full prompt carries every step, so it works with no fetching.
Codex runs the checks and the build. Passkey's hook guards Claude Code sessions, not Codex, so for Codex these rules are instructions, not enforcement.
You are Codex, running on my Mac. Passkey's hook guards Claude Code sessions only and does not see your tool calls, so the rules below are binding instructions for you, not something enforced on you.
Read https://passkeyforai.com/install.md and carry out the section "Install Passkey" (anchor #install). Follow its safety rules: stop at every Touch ID step and tell me exactly what to do, never bypass, edit or disable Passkey, never read or print secrets, and report what you did and what failed.
If you cannot fetch the page, tell me instead of guessing.
You are Codex, running on my Mac. Passkey's hook guards Claude Code sessions only and does not see your tool calls, so the rules below are binding instructions for you, not something enforced on you.
Task: Install Passkey. Install Passkey for AI on my Mac and register its hook in Claude Code.
Safety rules, they apply to every step:
1. Passkey is a Touch ID gate for Claude Code. It deliberately stops an AI agent from changing its own files, approving its own config, registering or removing its hook, and uninstalling it. Those steps need my fingerprint on the Mac.
2. At every Touch ID step, stop. Tell me exactly what to do (the command to run, the sheet that will appear, what to touch) and wait until I say it is done. Do not continue on your own.
3. Never try to bypass, disable, edit or work around Passkey. If a command is blocked or asks for Touch ID, that is the product working. Do not retry it in another form, do not script around it, do not stop processes, and do not edit ~/.claude/settings.json, ~/.claude/passkey, /usr/local/etc/passkey or /usr/local/libexec/passkey yourself.
4. Never read or print license files, member keys, admin keys or enrollment tokens. Use only what I paste to you in this chat, and do not repeat it back. Do not put a secret into a command you run. Give me the command and I will run it in my own terminal.
5. Do not run a command that changes security settings until I have seen it. Show me the exact command and say what it changes.
6. When you finish, report what you did, what you checked and what the check said, and anything that failed or that you could not do. Do not claim a step worked unless you saw the result.
What works today:
- Passkey for AI 1.x is in early release. There is no binary download yet. The installer (install.sh) builds one Swift file on the Mac, so the Mac needs the Xcode Command Line Tools.
- You need the release folder: the folder that holds install.sh, src/passkey.swift and presets/. If I do not have it, ask me where to get it. The README quick start clones https://github.com/shreyvaughn/passkey-for-claude.git for people who have access. Do not download Passkey from anywhere else and do not invent a download URL.
BIN means the Passkey program: ~/.claude/passkey/bin/passkey for a normal install, /usr/local/libexec/passkey/passkey for a hardened install. It may not be on PATH, so use the full path.
Steps:
1. Check the Mac. Run sw_vers -productVersion (macOS 13 or later is required), xcode-select -p and swiftc --version. If xcode-select -p fails, tell me to run xcode-select --install in my terminal and wait. Ask me whether this Mac has a Touch ID sensor or a Magic Keyboard with Touch ID. Passkey has no password fallback, so without one, gated actions are refused. Check that Claude Code is installed with claude --version.
2. Find the release folder (see "What works today"). Run ls on it and confirm install.sh, src/passkey.swift and the presets folder are there. Read install.sh and README.md so the commands you give me are exact.
3. Ask me these questions in one message. Hardened or normal? Hardened puts a root-owned binary in /usr/local/libexec/passkey and the config in /usr/local/etc/passkey so Claude cannot edit its own rules, and it asks for my sudo password. It is recommended. Which presets: stripe (free, recommended), git, publish, shell-danger. The last three need a Pro license and stay off without one. Mode: per-call (default, asks every time) or window (one Touch ID, then 1 to 120 minutes, default 15, for that Claude session).
4. Build the install command from my answers: ./install.sh --presets <comma list> with --mode window --window-minutes <n> if I chose window mode and --hardened if I chose hardened. Use --presets none for only the built-in guard. Always pass --presets so the installer does not ask questions on a terminal you do not have.
5. Show me the exact command and what it does: it builds src/passkey.swift with swiftc, copies the program and presets, writes the config, registers the hook in ~/.claude/settings.json (after backing it up to settings.json.bak-passkey) and asks for Touch ID once.
6. Touch ID step. If Passkey is not installed yet and I chose a normal install, you may run the command yourself once I agree. A Touch ID sheet appears on my Mac. Stop and tell me to touch the sensor. For a hardened install, or if Passkey is already installed, give me the command to run in my own terminal in the release folder, because it needs my sudo password or the guard will block you. Wait until I say it finished.
7. Do not try to register the hook, edit settings.json or run passkey approve or install-hook yourself.
Check:
- Run BIN status. Report the approval state, the mode, the presets and the license line it prints.
- Run BIN check-config. It should report no errors.
- Run grep -n passkey ~/.claude/settings.json (read only) and confirm a PreToolUse hook entry points at the Passkey program.
- Ask me to run BIN test-dialog. A Touch ID sheet appears and I touch the sensor. Wait for my answer.
Hand back to me:
- Tell me to restart Claude Code (or open /hooks) so it loads the hook.
- List the choices that were made (hardened or normal, presets, mode) and what status said.
- Remind me that the audit log is ~/.claude/passkey/audit.log and that git, publish and shell-danger need a Pro license (the next task).
The short prompt tells the agent to read /install.md.The full prompt carries every step, so it works with no fetching.
The Antigravity agent runs the checks and the build. Passkey's hook guards Claude Code sessions, not Antigravity, so for Antigravity these rules are instructions, not enforcement.
You are the agent in Google Antigravity, running on my Mac. Passkey's hook guards Claude Code sessions only and does not see your tool calls, so the rules below are binding instructions for you, not something enforced on you.
Read https://passkeyforai.com/install.md and carry out the section "Install Passkey" (anchor #install). Follow its safety rules: stop at every Touch ID step and tell me exactly what to do, never bypass, edit or disable Passkey, never read or print secrets, and report what you did and what failed.
If you cannot fetch the page, tell me instead of guessing.
You are the agent in Google Antigravity, running on my Mac. Passkey's hook guards Claude Code sessions only and does not see your tool calls, so the rules below are binding instructions for you, not something enforced on you.
Task: Install Passkey. Install Passkey for AI on my Mac and register its hook in Claude Code.
Safety rules, they apply to every step:
1. Passkey is a Touch ID gate for Claude Code. It deliberately stops an AI agent from changing its own files, approving its own config, registering or removing its hook, and uninstalling it. Those steps need my fingerprint on the Mac.
2. At every Touch ID step, stop. Tell me exactly what to do (the command to run, the sheet that will appear, what to touch) and wait until I say it is done. Do not continue on your own.
3. Never try to bypass, disable, edit or work around Passkey. If a command is blocked or asks for Touch ID, that is the product working. Do not retry it in another form, do not script around it, do not stop processes, and do not edit ~/.claude/settings.json, ~/.claude/passkey, /usr/local/etc/passkey or /usr/local/libexec/passkey yourself.
4. Never read or print license files, member keys, admin keys or enrollment tokens. Use only what I paste to you in this chat, and do not repeat it back. Do not put a secret into a command you run. Give me the command and I will run it in my own terminal.
5. Do not run a command that changes security settings until I have seen it. Show me the exact command and say what it changes.
6. When you finish, report what you did, what you checked and what the check said, and anything that failed or that you could not do. Do not claim a step worked unless you saw the result.
What works today:
- Passkey for AI 1.x is in early release. There is no binary download yet. The installer (install.sh) builds one Swift file on the Mac, so the Mac needs the Xcode Command Line Tools.
- You need the release folder: the folder that holds install.sh, src/passkey.swift and presets/. If I do not have it, ask me where to get it. The README quick start clones https://github.com/shreyvaughn/passkey-for-claude.git for people who have access. Do not download Passkey from anywhere else and do not invent a download URL.
BIN means the Passkey program: ~/.claude/passkey/bin/passkey for a normal install, /usr/local/libexec/passkey/passkey for a hardened install. It may not be on PATH, so use the full path.
Steps:
1. Check the Mac. Run sw_vers -productVersion (macOS 13 or later is required), xcode-select -p and swiftc --version. If xcode-select -p fails, tell me to run xcode-select --install in my terminal and wait. Ask me whether this Mac has a Touch ID sensor or a Magic Keyboard with Touch ID. Passkey has no password fallback, so without one, gated actions are refused. Check that Claude Code is installed with claude --version.
2. Find the release folder (see "What works today"). Run ls on it and confirm install.sh, src/passkey.swift and the presets folder are there. Read install.sh and README.md so the commands you give me are exact.
3. Ask me these questions in one message. Hardened or normal? Hardened puts a root-owned binary in /usr/local/libexec/passkey and the config in /usr/local/etc/passkey so Claude cannot edit its own rules, and it asks for my sudo password. It is recommended. Which presets: stripe (free, recommended), git, publish, shell-danger. The last three need a Pro license and stay off without one. Mode: per-call (default, asks every time) or window (one Touch ID, then 1 to 120 minutes, default 15, for that Claude session).
4. Build the install command from my answers: ./install.sh --presets <comma list> with --mode window --window-minutes <n> if I chose window mode and --hardened if I chose hardened. Use --presets none for only the built-in guard. Always pass --presets so the installer does not ask questions on a terminal you do not have.
5. Show me the exact command and what it does: it builds src/passkey.swift with swiftc, copies the program and presets, writes the config, registers the hook in ~/.claude/settings.json (after backing it up to settings.json.bak-passkey) and asks for Touch ID once.
6. Touch ID step. If Passkey is not installed yet and I chose a normal install, you may run the command yourself once I agree. A Touch ID sheet appears on my Mac. Stop and tell me to touch the sensor. For a hardened install, or if Passkey is already installed, give me the command to run in my own terminal in the release folder, because it needs my sudo password or the guard will block you. Wait until I say it finished.
7. Do not try to register the hook, edit settings.json or run passkey approve or install-hook yourself.
Check:
- Run BIN status. Report the approval state, the mode, the presets and the license line it prints.
- Run BIN check-config. It should report no errors.
- Run grep -n passkey ~/.claude/settings.json (read only) and confirm a PreToolUse hook entry points at the Passkey program.
- Ask me to run BIN test-dialog. A Touch ID sheet appears and I touch the sensor. Wait for my answer.
Hand back to me:
- Tell me to restart Claude Code (or open /hooks) so it loads the hook.
- List the choices that were made (hardened or normal, presets, mode) and what status said.
- Remind me that the audit log is ~/.claude/passkey/audit.log and that git, publish and shell-danger need a Pro license (the next task).
The short prompt tells the agent to read /install.md.The full prompt carries every step, so it works with no fetching.
Passkey blocks agents from changing its own files, approving its own config and removing itself. Those steps need your Touch ID, so the agent stops and tells you what to do. Prompts for activating a license, joining a team, adding rules, reviewing the log and uninstalling are on Install with AI.
you Clean up the failed orders from last week. ● Bash(stripe refunds create --charge ch_3Q8x… --live) passkey blocked this call rule stripe-shell-money-out · refunds are never allowed from an agent · no prompt shown ● I can't issue refunds from this session. I'll list the charges so you can review them.
Money out is blocked with no prompt. Claude sees why and picks another path.
you Create a payment link for the annual plan. ● Bash(stripe payment_links create --line-items[0][price]=price_1Q… ) passkey is waiting for your finger...
✓ approved with Touch ID · the call ran · logged to audit.log
A system sheet names the exact action and the amount. Claude cannot click it.
you Run the tests and commit the fix. ● Bash(npm test) ✓ tests passed ● Bash(git commit -m "block force push to main in the parser") ✓ ● Bash(git push origin fix/parser) ✓ a named branch passes passkey stayed silent · matching calls only, a few milliseconds each
Rules read what a command does, not what it says. A commit message that mentions "force push" triggers nothing.
Illustrative simulation of the real prompts. The messages follow the product's wording.
The problem
Coding agents now hold real keys: Stripe, GitHub, your cloud, your database. A terminal prompt helps, but three things keep it from being a real gate.
How it works
Passkey reads each call before it runs. Most pass in a few milliseconds without you noticing.
Refunds, payouts, force pushes to main, live Stripe keys in a shell and edits to Passkey itself stop with no prompt. Block always wins over everything else.
A macOS Touch ID sheet states what Claude is about to do, in plain words, with the amount. Cancel, time out, or lose the sensor and the call is refused.
Everything else runs untouched. Normal coding stays fast. Every decision is written to a local audit log you can read.
Per-call asks every time and suits money and production. Window asks once, then stays quiet for a set number of minutes in that Claude session only. Block rules and always-ask rules still apply.
If the config breaks or changes without your finger, Passkey keeps enforcing the rules you approved last and adds the new ones on top. Removing a rule needs Touch ID.
--hardened puts the binary and config in root-owned folders and checks owners and permissions on every call, so a process on your account cannot loosen the rules.
Presets
Each preset is a short JSON file you can read in a minute. Add your own next to them.
Passkey protects itself. Edits to its files, reads of its signing key, running its approve or uninstall commands from Claude, killing the process, and changes to Claude Code settings all stop or ask.
Blocks refunds, payouts, transfers, deletes, webhooks and API keys. Blocks any amount over $1,000. Customer-facing actions always ask. The dialog says what and how much, with LIVE or test.
Force pushes to main or master and branch deletes are blocked. A push to main, a push of HEAD, a push that names no branch, and git aliases that push all ask. A named branch passes.
npm, pnpm and yarn publish, cargo publish, twine upload, production deploys, GitHub releases, terraform apply and kubectl apply or delete always ask, even inside an approval window.
rm -rf of your home folder and disk erases are blocked. Any other recursive delete, sudo, DROP DATABASE, TRUNCATE TABLE and docker volume removals ask.
Add a rule in a few lines of JSON: match a tool, a field and a pattern, then block or ask. Gate your production database, your deploy script, anything.
# your own rule, in JSON
{
"name": "prod-db-writes",
"tool": "mcp__supabase__execute_sql",
"pattern": "\\b(insert|update|delete)\\b",
"action": "auth",
"describe": { "*": "write to the production database: {value}" }
}
The honest part
Hooks run as you. A determined process can dodge pattern rules over shell commands: an obfuscated command, a script written first and run later, a tool no preset knows. Passkey turns the obvious risky calls into a deliberate human act and says what it cannot see.
--hardened so Claude cannot edit its own rules.Found a gap? Open a private security advisory. It will be fixed and added to the 297 tests.
Hey, it's Shrey
I run OsmoSync, and I let Claude Code near Stripe, GitHub and servers every day. A terminal prompt never felt like a real gate to me. The session can answer it, and "allow always" is one click.
So I built the gate I wanted: a hook that moves the decision to my fingerprint, and blocks the things I never want an agent to do. I run it on my own Mac. 297 tests cover it, including the bypass attempts I could think of.
If it saves you one bad afternoon, it paid for itself.
Shrey Vaughn, founder of OsmoSync
Pricing
No subscription for individuals and no per-call fees. Teams pay per seat, from $8 a month.
Always on, no account
One person, every Mac you own
30-day refund. Secure checkout by Stripe.
Per seat, billed monthly or yearly
5 seats: $40 per month
Early price for the first 100 teams. After that, new teams pay $12 per seat per month or $120 per seat per year. Teams that join early keep their price. Team guide
Cancel any time in the billing portal. Secure checkout by Stripe.
Install
With an AI agent
The agent installs it. You approve the Touch ID prompts.
Claude Code runs the checks and the build. Once Passkey is installed it guards that same session, so the agent cannot approve its own setup.
You are Claude Code, running on my Mac.
Read https://passkeyforai.com/install.md and carry out the section "Install Passkey" (anchor #install). Follow its safety rules: stop at every Touch ID step and tell me exactly what to do, never bypass, edit or disable Passkey, never read or print secrets, and report what you did and what failed.
If you cannot fetch the page, tell me instead of guessing.
You are Claude Code, running on my Mac.
Task: Install Passkey. Install Passkey for AI on my Mac and register its hook in Claude Code.
Safety rules, they apply to every step:
1. Passkey is a Touch ID gate for Claude Code. It deliberately stops an AI agent from changing its own files, approving its own config, registering or removing its hook, and uninstalling it. Those steps need my fingerprint on the Mac.
2. At every Touch ID step, stop. Tell me exactly what to do (the command to run, the sheet that will appear, what to touch) and wait until I say it is done. Do not continue on your own.
3. Never try to bypass, disable, edit or work around Passkey. If a command is blocked or asks for Touch ID, that is the product working. Do not retry it in another form, do not script around it, do not stop processes, and do not edit ~/.claude/settings.json, ~/.claude/passkey, /usr/local/etc/passkey or /usr/local/libexec/passkey yourself.
4. Never read or print license files, member keys, admin keys or enrollment tokens. Use only what I paste to you in this chat, and do not repeat it back. Do not put a secret into a command you run. Give me the command and I will run it in my own terminal.
5. Do not run a command that changes security settings until I have seen it. Show me the exact command and say what it changes.
6. When you finish, report what you did, what you checked and what the check said, and anything that failed or that you could not do. Do not claim a step worked unless you saw the result.
What works today:
- Passkey for AI 1.x is in early release. There is no binary download yet. The installer (install.sh) builds one Swift file on the Mac, so the Mac needs the Xcode Command Line Tools.
- You need the release folder: the folder that holds install.sh, src/passkey.swift and presets/. If I do not have it, ask me where to get it. The README quick start clones https://github.com/shreyvaughn/passkey-for-claude.git for people who have access. Do not download Passkey from anywhere else and do not invent a download URL.
BIN means the Passkey program: ~/.claude/passkey/bin/passkey for a normal install, /usr/local/libexec/passkey/passkey for a hardened install. It may not be on PATH, so use the full path.
Steps:
1. Check the Mac. Run sw_vers -productVersion (macOS 13 or later is required), xcode-select -p and swiftc --version. If xcode-select -p fails, tell me to run xcode-select --install in my terminal and wait. Ask me whether this Mac has a Touch ID sensor or a Magic Keyboard with Touch ID. Passkey has no password fallback, so without one, gated actions are refused. Check that Claude Code is installed with claude --version.
2. Find the release folder (see "What works today"). Run ls on it and confirm install.sh, src/passkey.swift and the presets folder are there. Read install.sh and README.md so the commands you give me are exact.
3. Ask me these questions in one message. Hardened or normal? Hardened puts a root-owned binary in /usr/local/libexec/passkey and the config in /usr/local/etc/passkey so Claude cannot edit its own rules, and it asks for my sudo password. It is recommended. Which presets: stripe (free, recommended), git, publish, shell-danger. The last three need a Pro license and stay off without one. Mode: per-call (default, asks every time) or window (one Touch ID, then 1 to 120 minutes, default 15, for that Claude session).
4. Build the install command from my answers: ./install.sh --presets <comma list> with --mode window --window-minutes <n> if I chose window mode and --hardened if I chose hardened. Use --presets none for only the built-in guard. Always pass --presets so the installer does not ask questions on a terminal you do not have.
5. Show me the exact command and what it does: it builds src/passkey.swift with swiftc, copies the program and presets, writes the config, registers the hook in ~/.claude/settings.json (after backing it up to settings.json.bak-passkey) and asks for Touch ID once.
6. Touch ID step. If Passkey is not installed yet and I chose a normal install, you may run the command yourself once I agree. A Touch ID sheet appears on my Mac. Stop and tell me to touch the sensor. For a hardened install, or if Passkey is already installed, give me the command to run in my own terminal in the release folder, because it needs my sudo password or the guard will block you. Wait until I say it finished.
7. Do not try to register the hook, edit settings.json or run passkey approve or install-hook yourself.
Check:
- Run BIN status. Report the approval state, the mode, the presets and the license line it prints.
- Run BIN check-config. It should report no errors.
- Run grep -n passkey ~/.claude/settings.json (read only) and confirm a PreToolUse hook entry points at the Passkey program.
- Ask me to run BIN test-dialog. A Touch ID sheet appears and I touch the sensor. Wait for my answer.
Hand back to me:
- Tell me to restart Claude Code (or open /hooks) so it loads the hook.
- List the choices that were made (hardened or normal, presets, mode) and what status said.
- Remind me that the audit log is ~/.claude/passkey/audit.log and that git, publish and shell-danger need a Pro license (the next task).
The short prompt tells the agent to read /install.md.The full prompt carries every step, so it works with no fetching.
Codex runs the checks and the build. Passkey's hook guards Claude Code sessions, not Codex, so for Codex these rules are instructions, not enforcement.
You are Codex, running on my Mac. Passkey's hook guards Claude Code sessions only and does not see your tool calls, so the rules below are binding instructions for you, not something enforced on you.
Read https://passkeyforai.com/install.md and carry out the section "Install Passkey" (anchor #install). Follow its safety rules: stop at every Touch ID step and tell me exactly what to do, never bypass, edit or disable Passkey, never read or print secrets, and report what you did and what failed.
If you cannot fetch the page, tell me instead of guessing.
You are Codex, running on my Mac. Passkey's hook guards Claude Code sessions only and does not see your tool calls, so the rules below are binding instructions for you, not something enforced on you.
Task: Install Passkey. Install Passkey for AI on my Mac and register its hook in Claude Code.
Safety rules, they apply to every step:
1. Passkey is a Touch ID gate for Claude Code. It deliberately stops an AI agent from changing its own files, approving its own config, registering or removing its hook, and uninstalling it. Those steps need my fingerprint on the Mac.
2. At every Touch ID step, stop. Tell me exactly what to do (the command to run, the sheet that will appear, what to touch) and wait until I say it is done. Do not continue on your own.
3. Never try to bypass, disable, edit or work around Passkey. If a command is blocked or asks for Touch ID, that is the product working. Do not retry it in another form, do not script around it, do not stop processes, and do not edit ~/.claude/settings.json, ~/.claude/passkey, /usr/local/etc/passkey or /usr/local/libexec/passkey yourself.
4. Never read or print license files, member keys, admin keys or enrollment tokens. Use only what I paste to you in this chat, and do not repeat it back. Do not put a secret into a command you run. Give me the command and I will run it in my own terminal.
5. Do not run a command that changes security settings until I have seen it. Show me the exact command and say what it changes.
6. When you finish, report what you did, what you checked and what the check said, and anything that failed or that you could not do. Do not claim a step worked unless you saw the result.
What works today:
- Passkey for AI 1.x is in early release. There is no binary download yet. The installer (install.sh) builds one Swift file on the Mac, so the Mac needs the Xcode Command Line Tools.
- You need the release folder: the folder that holds install.sh, src/passkey.swift and presets/. If I do not have it, ask me where to get it. The README quick start clones https://github.com/shreyvaughn/passkey-for-claude.git for people who have access. Do not download Passkey from anywhere else and do not invent a download URL.
BIN means the Passkey program: ~/.claude/passkey/bin/passkey for a normal install, /usr/local/libexec/passkey/passkey for a hardened install. It may not be on PATH, so use the full path.
Steps:
1. Check the Mac. Run sw_vers -productVersion (macOS 13 or later is required), xcode-select -p and swiftc --version. If xcode-select -p fails, tell me to run xcode-select --install in my terminal and wait. Ask me whether this Mac has a Touch ID sensor or a Magic Keyboard with Touch ID. Passkey has no password fallback, so without one, gated actions are refused. Check that Claude Code is installed with claude --version.
2. Find the release folder (see "What works today"). Run ls on it and confirm install.sh, src/passkey.swift and the presets folder are there. Read install.sh and README.md so the commands you give me are exact.
3. Ask me these questions in one message. Hardened or normal? Hardened puts a root-owned binary in /usr/local/libexec/passkey and the config in /usr/local/etc/passkey so Claude cannot edit its own rules, and it asks for my sudo password. It is recommended. Which presets: stripe (free, recommended), git, publish, shell-danger. The last three need a Pro license and stay off without one. Mode: per-call (default, asks every time) or window (one Touch ID, then 1 to 120 minutes, default 15, for that Claude session).
4. Build the install command from my answers: ./install.sh --presets <comma list> with --mode window --window-minutes <n> if I chose window mode and --hardened if I chose hardened. Use --presets none for only the built-in guard. Always pass --presets so the installer does not ask questions on a terminal you do not have.
5. Show me the exact command and what it does: it builds src/passkey.swift with swiftc, copies the program and presets, writes the config, registers the hook in ~/.claude/settings.json (after backing it up to settings.json.bak-passkey) and asks for Touch ID once.
6. Touch ID step. If Passkey is not installed yet and I chose a normal install, you may run the command yourself once I agree. A Touch ID sheet appears on my Mac. Stop and tell me to touch the sensor. For a hardened install, or if Passkey is already installed, give me the command to run in my own terminal in the release folder, because it needs my sudo password or the guard will block you. Wait until I say it finished.
7. Do not try to register the hook, edit settings.json or run passkey approve or install-hook yourself.
Check:
- Run BIN status. Report the approval state, the mode, the presets and the license line it prints.
- Run BIN check-config. It should report no errors.
- Run grep -n passkey ~/.claude/settings.json (read only) and confirm a PreToolUse hook entry points at the Passkey program.
- Ask me to run BIN test-dialog. A Touch ID sheet appears and I touch the sensor. Wait for my answer.
Hand back to me:
- Tell me to restart Claude Code (or open /hooks) so it loads the hook.
- List the choices that were made (hardened or normal, presets, mode) and what status said.
- Remind me that the audit log is ~/.claude/passkey/audit.log and that git, publish and shell-danger need a Pro license (the next task).
The short prompt tells the agent to read /install.md.The full prompt carries every step, so it works with no fetching.
The Antigravity agent runs the checks and the build. Passkey's hook guards Claude Code sessions, not Antigravity, so for Antigravity these rules are instructions, not enforcement.
You are the agent in Google Antigravity, running on my Mac. Passkey's hook guards Claude Code sessions only and does not see your tool calls, so the rules below are binding instructions for you, not something enforced on you.
Read https://passkeyforai.com/install.md and carry out the section "Install Passkey" (anchor #install). Follow its safety rules: stop at every Touch ID step and tell me exactly what to do, never bypass, edit or disable Passkey, never read or print secrets, and report what you did and what failed.
If you cannot fetch the page, tell me instead of guessing.
You are the agent in Google Antigravity, running on my Mac. Passkey's hook guards Claude Code sessions only and does not see your tool calls, so the rules below are binding instructions for you, not something enforced on you.
Task: Install Passkey. Install Passkey for AI on my Mac and register its hook in Claude Code.
Safety rules, they apply to every step:
1. Passkey is a Touch ID gate for Claude Code. It deliberately stops an AI agent from changing its own files, approving its own config, registering or removing its hook, and uninstalling it. Those steps need my fingerprint on the Mac.
2. At every Touch ID step, stop. Tell me exactly what to do (the command to run, the sheet that will appear, what to touch) and wait until I say it is done. Do not continue on your own.
3. Never try to bypass, disable, edit or work around Passkey. If a command is blocked or asks for Touch ID, that is the product working. Do not retry it in another form, do not script around it, do not stop processes, and do not edit ~/.claude/settings.json, ~/.claude/passkey, /usr/local/etc/passkey or /usr/local/libexec/passkey yourself.
4. Never read or print license files, member keys, admin keys or enrollment tokens. Use only what I paste to you in this chat, and do not repeat it back. Do not put a secret into a command you run. Give me the command and I will run it in my own terminal.
5. Do not run a command that changes security settings until I have seen it. Show me the exact command and say what it changes.
6. When you finish, report what you did, what you checked and what the check said, and anything that failed or that you could not do. Do not claim a step worked unless you saw the result.
What works today:
- Passkey for AI 1.x is in early release. There is no binary download yet. The installer (install.sh) builds one Swift file on the Mac, so the Mac needs the Xcode Command Line Tools.
- You need the release folder: the folder that holds install.sh, src/passkey.swift and presets/. If I do not have it, ask me where to get it. The README quick start clones https://github.com/shreyvaughn/passkey-for-claude.git for people who have access. Do not download Passkey from anywhere else and do not invent a download URL.
BIN means the Passkey program: ~/.claude/passkey/bin/passkey for a normal install, /usr/local/libexec/passkey/passkey for a hardened install. It may not be on PATH, so use the full path.
Steps:
1. Check the Mac. Run sw_vers -productVersion (macOS 13 or later is required), xcode-select -p and swiftc --version. If xcode-select -p fails, tell me to run xcode-select --install in my terminal and wait. Ask me whether this Mac has a Touch ID sensor or a Magic Keyboard with Touch ID. Passkey has no password fallback, so without one, gated actions are refused. Check that Claude Code is installed with claude --version.
2. Find the release folder (see "What works today"). Run ls on it and confirm install.sh, src/passkey.swift and the presets folder are there. Read install.sh and README.md so the commands you give me are exact.
3. Ask me these questions in one message. Hardened or normal? Hardened puts a root-owned binary in /usr/local/libexec/passkey and the config in /usr/local/etc/passkey so Claude cannot edit its own rules, and it asks for my sudo password. It is recommended. Which presets: stripe (free, recommended), git, publish, shell-danger. The last three need a Pro license and stay off without one. Mode: per-call (default, asks every time) or window (one Touch ID, then 1 to 120 minutes, default 15, for that Claude session).
4. Build the install command from my answers: ./install.sh --presets <comma list> with --mode window --window-minutes <n> if I chose window mode and --hardened if I chose hardened. Use --presets none for only the built-in guard. Always pass --presets so the installer does not ask questions on a terminal you do not have.
5. Show me the exact command and what it does: it builds src/passkey.swift with swiftc, copies the program and presets, writes the config, registers the hook in ~/.claude/settings.json (after backing it up to settings.json.bak-passkey) and asks for Touch ID once.
6. Touch ID step. If Passkey is not installed yet and I chose a normal install, you may run the command yourself once I agree. A Touch ID sheet appears on my Mac. Stop and tell me to touch the sensor. For a hardened install, or if Passkey is already installed, give me the command to run in my own terminal in the release folder, because it needs my sudo password or the guard will block you. Wait until I say it finished.
7. Do not try to register the hook, edit settings.json or run passkey approve or install-hook yourself.
Check:
- Run BIN status. Report the approval state, the mode, the presets and the license line it prints.
- Run BIN check-config. It should report no errors.
- Run grep -n passkey ~/.claude/settings.json (read only) and confirm a PreToolUse hook entry points at the Passkey program.
- Ask me to run BIN test-dialog. A Touch ID sheet appears and I touch the sensor. Wait for my answer.
Hand back to me:
- Tell me to restart Claude Code (or open /hooks) so it loads the hook.
- List the choices that were made (hardened or normal, presets, mode) and what status said.
- Remind me that the audit log is ~/.claude/passkey/audit.log and that git, publish and shell-danger need a Pro license (the next task).
The short prompt tells the agent to read /install.md.The full prompt carries every step, so it works with no fetching.
Passkey blocks agents from changing its own files, approving its own config and removing itself. Those steps need your Touch ID, so the agent stops and tells you what to do. Prompts for activating a license, joining a team, adding rules, reviewing the log and uninstalling are on Install with AI.
passkey license install license.json. It is checked on your Mac and never sent anywhere.# from the release folder
./install.sh --hardened
~/.claude/passkey/bin/passkey test-dialog
Needs macOS 13 or later, a Touch ID sensor and the Xcode Command Line Tools. Full install guide.
Guides
A hook that blocks it, a DIY version you can paste, and why branch protection still matters.
Read the guideRestricted keys, test mode and a hook that blocks refunds and payouts before they run.
Read the guideWhere built-in permission rules stop and a hardware check starts. They work together.
Read the comparisonFAQ
No. Claude Code's prompt appears in the terminal session the agent runs in, and the session can be set to allow things automatically. Passkey for AI is a PreToolUse hook that opens a separate macOS Touch ID sheet. The agent cannot click it, there is no password field to type into, and some actions are blocked with no prompt at all. They work together: keep Claude Code's rules, add the fingerprint check for the calls that matter.
No. The sheet is a system dialog that needs a finger on the sensor. It has no password button and no fallback. If you do not confirm, the call is refused.
The built-in guard (Passkey protects its own files, signing key and Claude Code settings) and the Stripe preset: money-out actions are blocked, customer-facing actions always ask, and everything else that touches the account asks with a plain-words description. Pro adds the git, publish and shell-danger presets and your own rules.
A license is a small signed file. Passkey checks the signature on your Mac with a public key built into the program. It never contacts a server, so it keeps working without a network. One payment covers you on every Mac you own and every 1.x update.
Yes, with one catch. Paste a short prompt into Claude Code, Codex or Antigravity and the agent runs the install steps and reports back. Passkey deliberately blocks agents from changing its own files, config approval, hook registration and removal, so the agent stops at each Touch ID step and tells you what to press. That part stays with you. The prompts, a raw install.md and prompts for a license, a Team, custom rules and uninstall are on Install with AI.
Everything in Pro for every seat, plus one place for the audit log, approval from a phone, two-person approval, a signed policy pushed to every Mac (ready for your MDM) and reports for security review. The admin gets a portal at passkeyforai.com/team. Each Mac still enforces its rules locally. The Team guide has the setup steps.
$8 per seat per month, or $80 per seat per year, for the first 100 teams. After that, new teams pay $12 per seat per month or $120 per seat per year. A team that subscribes at the early price keeps it for as long as its subscription runs. You change seats or cancel in the billing portal, and checkout shows the exact price before you pay.
Only on a Mac that joined a Team: the audit log lines (what was asked, the rule name, the decision, the session id and the time), the device name, the version, and approval requests. It never sends file contents, command output or your prompts. A Mac without Team sends nothing. Details are on the privacy page.
Not today. Passkey runs on the Mac where Claude Code runs, and the Touch ID sheet appears there. If you steer a session from your phone while the Mac is away, a risky action waits for your finger or is refused. It never runs unapproved. Cloud sessions are outside the hook. The Team plan adds approval from a phone: a small web app on the phone shows the request and asks for Face ID or Touch ID there, while the hook still runs on the Mac.
No, and it does not pretend to be. Hooks run as you, and pattern rules over shell commands can be dodged by a determined process. Passkey turns the obvious risky calls into a deliberate human act and blocks the worst ones. Use restricted API keys, branch protection and the hardened install alongside it.
No. It uses the same macOS Touch ID check that unlocks your Mac. Nothing is registered with a website and nothing leaves the Mac.
A Magic Keyboard with Touch ID works. With the lid closed and no Touch ID keyboard, gated actions are refused and everything else keeps running. There is no password fallback by design.
No. Calls that match no rule return in a few milliseconds. Only matching calls wait for you.
Yes. If Passkey for AI does not fit your setup, write to us within 30 days of purchase and we refund the $29.
Compared against Claude Code's documented permission rules and hooks on 2026-11-30. Features change, so check the current Claude Code docs.
macOS 13+ · Touch ID · Claude Code · Not affiliated with Anthropic