A native Mac tool for developers

Your projects move. Your secrets don't.

Development credentials live in your Mac's iCloud Keychain. Latchkey fills them in when a command starts.

Free · Notarized by Apple · macOS 15 or later

Your app gets the variables it expects; nothing is rewritten around a new secrets API. Example data.

From scattered .env files to a working project.

Import the environment you already have. Latchkey stores the credentials and replaces their values with references. On another Mac, restore the project's environment and get back to work. The environment travels with the project; the credential stays in your vault.

1

References in your files. Values in Keychain.

Point Latchkey at an env file. A dry run shows where each value would go and sends nothing. Then one approval saves them to iCloud Keychain under the repository's name and the environment the file name implies, and --rewrite leaves a reference where each value was. Settings such as PORT are recognised and left in the file; --skip leaves out anything else you name.

Terminal
lk import .env.local --dry-run --skip PORT
lk import .env.local --rewrite --skip PORT
Importing, every option
2

Recreate the env file in any checkout.

Project environment records sync with your credentials across your Macs. A fresh checkout or worktree shouldn't mean rebuilding your environment by hand: lk project recognizes the checkout from its Git remote, and lk export writes its env file from the record, with references and plain settings, never a value, and without relying on the original machine's file paths.

Environments, projects and export
3

Your credentials aren't tied to one Mac.

Items, their history and each environment's record are keychain items in Latchkey's own access group, carried end to end encrypted by iCloud Keychain to every Mac signed in to your Apple Account with Latchkey installed. On the next Mac, clone and export, and the same environment is there. Grants stay on the Mac where you made them.

Second-Mac test pending Keychain sync is Apple's; we haven't yet run this whole sequence on a second Mac for the release.

How sync works, and its limits
4

Agents run the commands. You decide what they get.

Agents can check what a task needs, run commands through Latchkey, and ask for access when a grant doesn't cover it. Set grants for a folder, a session, a command or a time limit. Review activity, and revoke the grant when the work is done. A request the grant doesn't cover, like production, asks again.

Agents, skills and MCP

Be the person at the Mac

An agent's command is asking for two keys. Choose in the panel the way you would in the app: Deny prints the real refusal, Allow Once runs the tests with the values concealed, and a grant shows the next run going through, or, limited to one command, asking again.

You're the person at the Mac: when the agent's command asks, choose in the panel.

Everything the panel shows comes from macOS, not from the request: the program and those that started it, the folder it runs in, and its full command line. A script that talks to Latchkey directly instead of through the signed lk tool is named by its path, with a warning. The same limits can be set ahead of time with lk grant 'shop/development/*' --session --for 4h.

claude in ~/Projects/shop
Claude wants to use 2 itemsClaude in ~/Projects/shop

shop/development/DATABASE_URL, shop/development/STRIPE_KEY

Details
Asked by
Claude, via zsh › claude › Terminal
Folder
~/Projects/shop
Command
lk run --env shop/development -- npm test

Every item, grant and request in one Mac window

Items grouped by project and environment, which ones agents may read without asking, where each is used, every request in Activity, and the grants in effect. This window works with example data. What you chose in the panel above is already in its Activity, and a grant you made is under Grants, where Revoke stops future reads through it. Changes ask for Touch ID; revealing a value asks unless its No Approval setting permits it.

The Latchkey window, with example data. With scripts on, it works: search, filter by type or environment, pick a project or service in the sidebar, and open an item. It lists:

  • shop: DATABASE_URL, STRIPE_KEY, PGHOST and NEXT_PUBLIC_SITE_URL for development; DATABASE_URL for preview, not pushed yet; DATABASE_URL and STRIPE_KEY for production, the key changed since its last push
  • blog: ADMIN_PASSWORD, SENTRY_DSN and GITHUB_TOKEN
  • api: the ASC_P8 key file and API_BASE_URL
  • Shared: OPENAI_API_KEY and ANTHROPIC_API_KEY

Opening an item shows its value (hidden until Touch ID), reference, type, access, service, project, environment, note, location, history and recent activity. Review lists what may need a look.

Example data; the values are made up. The menu bar icon opens a smaller panel with search and recent activity, like the one above the terminal.

When a key changes, the reference doesn't.

lk touched lists every key Latchkey released to programs an agent started. lk rotate walks through them: it ends the grants that cover them, opens each service's page for a new key, and saves what you paste, with the old value kept in history. Every file and environment that refers to the item keeps working; with --push, linked Vercel, GitHub Actions, Railway and Fly environments get the new value too.

Rotating

Keep supported API keys out of agent processes

For OpenAI and Anthropic, Latchkey's local proxy keeps the upstream key out of the command while forwarding its API requests. The process can still use the provider; it never receives the original key. Try what a command could do with it:

In the command's environment

OPENAI_API_KEY=lk-proxy-3f9c…8e4a
OPENAI_BASE_URL=http://127.0.0.1:52817/v1

Arriving at api.openai.com

POST /v1/chat/completions
Authorization: Bearer lk-proxy-3f9c…8e4a
Choose something for the command to try.

The command gets a placeholder and a base URL on your Mac; Latchkey adds the real key to requests bound for api.openai.com or api.anthropic.com and refuses unauthenticated ones. Other credentials are still delivered normally. For AWS, lk run --aws-session gives the command STS credentials that expire after 15 minutes, while your long-lived key stays in Latchkey.

Terminal
lk run --proxy --env shop/development -- npm test
lk run --aws-role arn:aws:iam::123456789012:role/dev -- terraform plan

Works with your terminal, coding agents, deploy platforms and Safari

What it protects, and where it stops

Values live in iCloud Keychain in an access group only the signed Latchkey app can read. The lk tool checks the app's signature before sending anything, the app reads each caller's identity from the kernel, and every release, change and refusal goes in a tamper-evident log. The limits are stated as precisely as the protections.

A released value is out of its handsA command you allowed has the key, and Latchkey can't control what it does with it. --proxy is the exception, for OpenAI and Anthropic: the command gets a placeholder, never the key.
A reference isn't permissionIt names a secret; it doesn't grant access to it. A committed file of references gives away names, not values, and every read that isn't agent-safe or granted still asks.
Anything running as you can askAny program in your Mac account can ask, not only agents. The panel names who asked and from where; keep grants narrow and short, and deny what you don't recognize.

The security model, trust boundaries and limits

Free today. Pro is planned as a one-time purchase.

Everything above is free in the direct download, and will be in the Mac App Store version, with no account and no trial. Latchkey Pro adds four sets of tools on top, as a one-time in-app purchase in the Mac App Store, with updates included and no subscription.

LatchkeyFree

Available now, and the core is meant to stay free.

  • iCloud Keychain storage and latchkey:// references
  • Env file import and lk run
  • Approvals, grants and the security protections
  • The CLI, the MCP server and the header-injecting proxy
  • Exporting references and your own values
  • Pushing values to Vercel, Railway, Fly and GitHub Actions
Download free

Latchkey Pro$79 one time

Planned Everything in Latchkey, plus:

  • Agent controls: secret requests, where an agent asks you for a missing key and gets back only the reference, and a hook that stops commands like cat .env
  • Recovery and migration: importers for 1Password, Bitwarden and the Passwords app, and an encrypted backup with restore
  • Rotation and lifecycle: last-used dates, expiry dates with reminders, and leak alerts
  • Provider integrations: each key's origin: the service, the console where it's managed, and when it was last rotated
Request early access

Pro isn't on sale yet; the price is proposed. Compare editions

Start from what you came to do

For developersLatchkey is free to download and use. Start there, and see what Latchkey Pro will add when it's ready.
For teamsMove a small team's credentials out of scattered env files with a fixed-scope migration from Snack Studio, and help shape Latchkey Teams.
For technical evaluatorsInspect how values are stored and released, where protection ends, every command, and what's built and what isn't.

One developer, building in the open.

Latchkey is designed and built by , a systems engineer in Spokane, Washington, and published by his studio, Snack Studio. The source is on GitHub, every change is in the changelog, and questions reach the studio at latchkey@snackstud.io.

Stop being the credential courier.

Keep your projects, credentials and coding agents working together, with access you can inspect and control. Latchkey is free to download and use, and the core is meant to stay free. Pro will add more for a one-time price in the Mac App Store.

  1. 1Download and installOpen the latest disk image and drag Latchkey to Applications, or run brew tap zachshallbetter/latchkey, brew trust zachshallbetter/latchkey and brew install --cask latchkey.
  2. 2Add the command-line toolThe Homebrew cask adds both for you. With the disk image, open Latchkey and choose Latchkey › Install Command Line Tool… to add latchkey and lk to ~/.local/bin. They link to the tool inside the app, so they update with it.
  3. 3Check itRun lk status. Beside how you approve, your item and grant counts and the socket, it should say storage: iCloud Keychain and that the app's signature was checked.

Development previewLatest version 0.4.0 (what's new). Notarized by Apple and free. macOS 15 or later; Intel verification is pending; iCloud Keychain on for sync between Macs. Installation steps · Source · Command reference