# Agent Keyring: let Claude Code and Codex sign in with Apple Passwords

Published: 2026-11-20
Updated: 2026-11-22
Status: beta, not released yet
Made by: Josh Palmer (https://x.com/jjpcodes)
Website: https://agent-keyring.jjpcodes.com/
Download: https://github.com/joshp123/agent-keyring/releases
Source code: https://github.com/joshp123/agent-keyring
Licence: MIT (free)
Security: /security.md (https://agent-keyring.jjpcodes.com/security.md)
Comparison: /compare.md (https://agent-keyring.jjpcodes.com/compare.md)
Full context: /llms-full.txt (https://agent-keyring.jjpcodes.com/llms-full.txt)

Your agents ask. You tap yes.

1Password for the Agentic OS, part of the OpenTrawl suite (https://github.com/opentrawl). Claude Code and Codex sign in to websites with the passwords you keep in Apple Passwords, approved with Touch ID, Face ID or your Apple Watch.

## The walkthrough

The home page plays four short scenes.

1. Apple Watch. You're out on your bike. Claude Code, on the Mac mini at home, needs to sign in to openai.com to top up API credits. Your Apple Watch shows the website, the account and the reason. You tap Approve, and Claude Code signs in and carries on.
2. Mac. You're at your desk. Codex needs a password and a two-factor code for hetzner.com to download last month's invoices. You click Approve and use Touch ID. One approval covers both.
3. iPhone. You're on the toilet. Claude Code, on a Linux server, asks for your github.com password to make a new access token. You deny it and say "No. Use the gh CLI." Claude Code gets your reply and uses gh instead.
4. Without Agent Keyring. The same top-up task stalls for more than two hours, until you get home and sign in yourself.

## Set it up

You handle the Mac app and Apple Passwords. Your agent sets up the rest itself.

1. Install the Mac app and copy your passwords. Download Agent Keyring from GitHub (macOS 26 or later) and open it. In Apple Passwords, choose File > Export All Items to App… and pick Agent Keyring. Nothing is deleted from Passwords, and every password starts on Ask.
2. Hand your agent the setup line. Paste the one line from the Mac app into `AGENTS.md`, `CLAUDE.md`, or straight into a chat with Claude Code or Codex. Your agent tells you what it suggests setting up next and asks before checking your network or touching anything: the Chrome extension, other computers that run your agents, or your iPhone and Apple Watch.
3. Add your iPhone and Apple Watch (optional). Turn on Tailscale (https://tailscale.com/) (free), accept the TestFlight beta on your iPhone, tap Connect and approve on your Mac with Touch ID. Add your Apple Watch from the iPhone app. Your iPhone keeps its own encrypted copy so you can approve even when your Mac is asleep.

## Each password has a rule

Every password starts on Ask. Change the rule whenever you like.

- Ask: an agent has to ask, and you approve or deny. One approval covers that one password for that one task, 30 minutes at most.
- Automatic: agents on the computers you choose get it without asking. Use it for a password you'd leave on that computer anyway, like the one for a staging site.
- Blocked: once a computer receives the rule, it refuses every request. Good for your bank and your email.

## How it works

Your agent runs a command, `agent-keyring`, and asks for one password by website. You see the website, the account, which agent on which computer is asking, and its reason. Approve, and Agent Keyring signs in for that task. There's no cloud vault and no account: your passwords stay encrypted on your own devices.

The computer your agent runs on (a Mac or a Linux server) sends the website, the account and the agent's reason to your devices (Mac, iPhone and Apple Watch). A Blocked password stops there. An approved request sends back one password, for one task, 30 minutes at most.

- Your passwords are encrypted on your own devices. Your Mac and iPhone encrypt their approval copies with keys kept in the Secure Enclave, the chip behind Touch ID and Face ID. Those keys can't leave the chip. A computer allowed to use an Automatic password keeps a copy it can open itself.
- Works in any browser, app or CLI. You just approve the request; your agent picks the right way to sign in. When it's in Chrome, Brave, Edge, Arc or Chromium with the extension loaded, the extension types the password straight into the form. In Safari, built-in agent browsers, desktop apps (via computer use) or CLI tools, your agent passes the approved password straight into the tool or app.
- One approval, one password, one task. An approval covers retries and ends when the agent releases it, when the computer receives your Stop, or after 30 minutes at most.
- Two-factor codes work too. If you set up a site's two-factor code in Apple Passwords, Agent Keyring fills it in along with the password. For an Ask password, your agent never gets the setup key, so it can't make codes of its own later.

Security details: /security.md

## Already use Apple Passwords?

Then you don't need a second password manager, a new account or a subscription. Checked November 2026:

| | Agent Keyring | 1Password for Agents | Bitwarden Agent Access |
| --- | --- | --- | --- |
| Where your passwords live | Apple Passwords | 1Password | Bitwarden |
| Cost | Free and open source (MIT) | An individual or family account on 1Password.com | Free and open source |
| Agents it works with | Claude Code, Codex and anything else that can run a shell command | Five partner apps. Not Claude Code or Codex | Anything that can run a shell command |
| Where you approve | Mac, iPhone or Apple Watch | The 1Password app, on the device the agent runs on | A terminal you keep open |
| What one approval covers | One password for one task, 30 minutes at most | One login, for up to 30 days | One request, or repeat requests from the same device for a time you choose |

Full comparison: /compare.md

## Questions

- Does my Mac have to stay awake? No. Your iPhone keeps its own encrypted copy of your passwords, and an agent on another computer sends its request straight to your iPhone and Apple Watch. That agent can sign in while your MacBook is shut in a bag.
- Do I need Tailscale? Not on one Mac. You need it to approve from your iPhone or Apple Watch, and for agents on other computers. The free plan is enough.
- Does it work in Safari, desktop apps, or the browsers built into Codex, Claude and T3 Code? Yes. You approve once, and your agent handles how to sign in: using the browser extension in Chrome-family browsers, or passing the approved password straight into Safari, built-in agent browsers, desktop apps via computer use, or CLI tools.
- What is the Chrome extension for? It lets your agent sign in to Chrome, Brave, Edge, Arc or Chromium without the password touching the agent's own tool output or chat. Your agent uses it automatically when it's available, and falls back to the CLI anywhere else.
- I saved a new password. Does Agent Keyring pick it up? Not by itself. Apple only hands passwords to another app when you start the export, so run File > Export All Items to App… again.
- What about passkeys and SMS codes? Neither. Agent Keyring handles passwords and the two-factor codes Apple Passwords generates. It can't use passkeys or read codes sent by SMS or email.

## Get an email when the beta is out

The signed beta for Mac, iPhone and Apple Watch isn't out yet. Leave your email at https://agent-keyring.jjpcodes.com/ and I'll tell you when it is. If you'd rather not wait, the source is on GitHub: https://github.com/joshp123/agent-keyring
