← All work
Mac software · Developer tools

Pistachio

A secrets manager for your Macs and the coding agents on them. Project files keep references; iCloud Keychain keeps the values, and Touch ID decides who gets one.

2026 Maturity: Pre-1.0

Overview

Pistachio is a secrets manager for your Macs and the coding agents that run on them. Project files keep references like pistachio://shop/production/DATABASE_URL, the values stay in iCloud Keychain, and Pistachio fills them in when a command starts.

Pistachio's approval panel over its main window: an agent in ~/Projects/site asks to use DATABASE_URL and STRIPE_KEY, with Touch ID to allow once, Deny, and an option to allow from that folder until the agent quits.
Pistachio's main window: secrets grouped by project and service, and a DATABASE_URL item showing its masked value, its reference, its environment and where it was imported from.

My role

Creator: product, design and engineering. Built at Snack Studio.

The problem

An .env file holds live credentials in plain text. It gets committed, synced and pasted, and coding agents now read it straight into their transcripts. Pistachio takes the values out of the file and leaves a reference behind.

How it works

  • Approval: pst run swaps references for values as a command starts. Reading an item asks for Touch ID, Apple Watch or your password, in a panel that shows which program is asking, from which folder, for which command. You can allow once, allow a folder for a while, or mark an item safe for agents to read.
  • One door to the keychain: The command-line tool never touches the keychain. It asks a broker over a local socket, and the broker reads the item from the keychain that iCloud syncs.
  • Agents: A Claude Code plugin adds a skill and an MCP server. The MCP server has no tool that returns a secret's value.
  • Output: Command output is masked wherever an exact copy of a value six characters or longer appears. A proxy mode keeps OpenAI and Anthropic keys inside Pistachio and hands the command a placeholder and a local address instead.

Its limits

Anything running as you can ask the broker, and malware running as you can request approvals. Once a value is released to a command, it is out of Pistachio's hands, and masking only catches exact copies. The keychain's encryption is Apple's.

Where it stands

Pre-1.0. Version 0.5.0 shipped on November 23, 2026. It started on November 10 under the name Latchkey, which some of its commands and files still carry. It pushes values to Vercel, GitHub Actions, Railway, Fly and Linux hosts over ssh, keeps earlier values, and restores deleted items for 30 days. The command-line tool needs macOS 14 or later and the app macOS 15; source-available under FSL-1.1-ALv2, which becomes Apache 2.0 two years after each release.