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.
- 01Broker short-lived, task-scoped credentials to agents and CI from a CLI
- 02Share one-off secrets through self-destructing links, encrypted in the browser
- 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.
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