Repository navigation
Releases
Releases · stevederico/agent-keychain
0.23.0
First public release.
agent-keychain is a zero-crate Rust secret store for Linux that gives an AI agent a secret only after you approve that request with your login password, in the polkit prompt. No account, no cloud, no dependencies: std only, [dependencies] is empty.
Highlights
get/set/rm/list/log, every value-touching request approved in a polkit prompt that names the secret and the callerwith github --for 2h -- claude: approve once, then that program and its children get those secrets without prompts until it expires- One prompt at a time, and backoff after a denial, so an agent cannot wear you down
- Vault encrypted with XChaCha20-Poly1305 (ported from libsodium), key sealed by
systemd-creds(TPM2 when present) - Daemon runs as its own system user under a hardened systemd service; every request is logged, never values
scanfinds keys in plain files (.env,~/.npmrc, ...) without printing them;importstores them under one approvaldoctor,skill(guide for AI agents),--jsoneverywhere, per-command help
Install
git clone https://github.com/stevederico/agent-keychain
cd agent-keychain && ./install.sh
agent-keychain doctor
Needs Rust, systemd and polkit. See SPEC.md for the threat model, including what it does not cover.