Skip to content
Now: Automate With Cameron

Short-lived credentials for AI agents.

Client
Independent product
Role
Design and build
Timeline
2026, ongoing
Type
AgentsSecurity
Visit mayflykeys.dev
3products: the CLI, Send and Cloud
0plaintext secrets stored by Send
1task per credential, then it expires

The problem

AI agents and CI pipelines usually run on long-lived API keys pasted into config files and environment variables. Those keys outlive the task, get copied around, and rarely get rotated.

The more autonomy an agent has, the more a leaked or over-scoped key can do.

The approach

Treat every credential like a mayfly: issued for one task, scoped to what that task needs, and gone when it ends.

  1. 01Broker short-lived, task-scoped credentials to agents and CI from a CLI
  2. 02Share one-off secrets through self-destructing links, encrypted in the browser
  3. 03Add central policy, audit and budgets for teams in mayfly-cloud

What we built

mayfly is a CLI that brokers short-lived credentials to agents and CI, with no copy-paste. mayfly Send shares a secret through a one-time link: encryption runs in the browser, the key stays in the link fragment, and the server only ever stores ciphertext it can’t read. mayfly-cloud adds central policy, audit and budgets for every credential an organisation’s agents touch.

Timeline comparing one long-lived API key that stays valid throughout with mayfly credentials that each last only for their own task
A long-lived key outlives every task it touches. mayfly issues a scoped credential per task and lets it expire.

Results

The CLI ships through Homebrew with checksummed release binaries, and mayfly Send is live at mayflykeys.dev.

Stack used

  • Go
  • TypeScript
  • Web Crypto (AES-GCM)
  • GoReleaser
  • Homebrew