| written_by | ai |
|---|
Tell Codex what you want. Agent Keyring handles the login.
When Codex reaches a password in Safari or its built-in browser, Agent Keyring finds the matching Apple Passwords credential and follows your rule:
| Rule | What happens |
|---|---|
| Allow automatically | Codex continues without interrupting you. |
| Ask each time | Approve the exact website and account on Apple Watch or Touch ID. |
| Blocked | Agent Keyring refuses the request. |
Apple Passwords remains your source of truth. Agent Keyring uses Apple's credential exchange flow, Keychain and LocalAuthentication. Passwords and codes never appear in chat or command output.
Download the signed and notarised app · macOS 26 or later · free and open source
The demo uses synthetic accounts. Product screens are real native window captures. The macOS Watch prompt is genuine and captured separately; it does not claim to show a completed Watch approval.
You do not need to classify every credential yourself.
- Open
Access Rules, selectSet Rules with AIand copy the prompt. - Read the copied text, then paste it into ChatGPT, Claude or another AI. It helps you describe what you trust local agents to access unattended, what should ask you first and what they should never use.
- Copy the AI's entire final response and paste it back into Agent Keyring.
- Select
Review Changes. Agent Keyring checks every credential ID and shows every proposed change before you can apply it.
The copied text contains only a random ID, site and current rule for each login. It never contains account names, usernames, passwords or verification codes.
For credentials set to Ask each time, Agent Keyring shows the requested website, account and field before macOS asks for approval. One Apple Watch or Touch ID approval releases one requested field.
-
Download the ZIP, move
AgentKeyring.appto Applications and open it. It appears as a key in the menu bar. -
Ask Codex to run:
Set up Agent Keyring for me by running: /Applications/AgentKeyring.app/Contents/Helpers/agent-keyring install -
From the menu-bar key, choose
Open Agent Keyring, then selectAllow Passwords Import. In Apple Passwords, chooseFile→Export All Items to App→Agent Keyring, then approve once.
That is it. Ask Codex normally. You do not need to restart Codex.
Repeat the Apple Passwords export to import new, changed and removed credentials into Agent Keyring’s encrypted copy. Apple does not provide silent or incremental password export.
- the local mirror is encrypted with AES-GCM; its key is stored in your login Keychain
Allow automaticallytrusts every process running as your unlocked macOS user- approved secrets use the shared macOS pasteboard; another process in your user session could read them before Agent Keyring clears its value after 30 seconds
- the agent supplies the destination URL because browsers do not give Agent Keyring an attested active-tab origin
- passkeys are not supported yet
- Apple may omit shared credentials, Sign in with Apple records and items without passwords
- a changed password is not available to agents until you import from Apple Passwords again
Sparkle checks this repository for signed updates. Automatic installation is off.
You need Xcode 27 and an Apple Developer team with the AutoFill Credential Provider capability.
git clone https://github.com/joshp123/agent-keyring.git
cd agent-keyring
cp Config/Local.xcconfig.example Config/Local.xcconfig
./script/build_and_run.sh --verifyRun tests with swift test --package-path AgentKeyringPackage.
MIT. See LICENSE.


