q-ring
Open source, local only, free
Your agent needs the key. It never needs to see it.
q-ring keeps API keys in your OS keychain and hands Cursor, Claude Code and Kiro only what policy allows. Every ask is logged. Nothing leaves your machine.
pnpm add -g @i4ctime/q-ring
Readable by anything that can read the file.
No links yet.
Simulated vault. Nothing is stored or sent.
Counted from the source, not the marketing
All of it ships free
The drill
Try it. This is the whole vault on one screen.
A simulated keychain, three agents and a policy. Type real qring commands, decide who gets what, and watch the audit chain grow.
Enter runs it. Up and down recall what you typed.
Simulated vault. Nothing is stored or sent.
Policy
new keys: approveDecide what each agent gets, key by key.
No keys yet. Store one in the console with qring set.
Waiting for you (0)
No pending asks. A key on approve makes the next agent wait here.
Canary
A fake key planted as bait. Nothing honest ever reads it, so any read is an alarm.
- Asks
- 0
- Allowed
- 0
- Denied
- 0
- Redacted
- 0
Audit chain
intact0 eventsEvery event carries the hash of the one before it. Edit one and verify names the break.
No events yet. Every command and every agent ask adds a link.
The drill
0 of 8 steps done. Try q-ring the way an agent would meet it.
- Store a key (not done)Press Move it to the keychain, or type qring set STRIPE_KEY sk-test-123.
- Let an agent ask (not done)Wait a few seconds after storing a key. An agent asks for it.
- Deny an agent (not done)Deny a pending ask, or set qring policy <KEY> deny.
- Approve an agent (not done)Approve a pending ask in the policy panel.
- Trip a canary (not done)Plant one with qring canary plant AWS_KEY and wait.
- Verify the chain (not done)Run qring verify, or press Verify on the audit chain.
- See the four moves (not done)Scroll to superposition, entanglement, tunnel and teleport.
- Install q-ring (not done)Copy the install command.
The honest comparison
Why not .env?
A .env file is plain text any agent can read. q-ring keeps keys in the OS keychain, hands out only what policy allows, and logs every ask.
| Capability | q-ring | .env files | dotenv-vault | 1Password CLI |
|---|---|---|---|---|
| Anchored to OS keyringmacOS Keychain, Linux Secret Service, Windows Credential Vault | ||||
| MCP-native (AI agents)Cursor, Claude Code and Kiro ask through tools, not files | ||||
| Auto-expiring keys (decay) | ||||
| Per-environment isolation | ||||
| Free + open source | AGPL-3.0 | - | ||
| Audit log of agent reads | ||||
| Zero cloud dependency | ||||
| One-shot env injectionqring run -- node app.js | ||||
| Pre/post-commit hooks |
Compared at v0.19.2. Spot a mistake? PRs to this table are welcome.
Superposition, entanglement, tunnel, teleport
Four moves no .env can make
A file holds one value per name and keeps it forever. The keychain can do more.
Superposition
One key, a value per environment
Store dev and prod under the same name. q-ring picks the right one from --env, QRING_ENV, the git branch or your project file.
$ qring set STRIPE_KEY sk_test_... --env dev$ qring set STRIPE_KEY sk_live_... --env prod$ qring get STRIPE_KEY --env prod --rawsk_live_...
Entanglement
Linked keys rotate together
Link two keys once. Set a new value on one and the other follows, so a shared key never goes stale in one repo.
$ qring entangle STRIPE_KEY STRIPE_KEY_WORKER[link] entangled STRIPE_KEY -> STRIPE_KEY_WORKER$ qring set STRIPE_KEY sk_live_new... # the worker copy follows[ok] saved STRIPE_KEY [global]
Tunneling
Memory-only values that self-destruct
A tunnel holds a value in memory, never on disk. It is gone after its last read or when its time runs out.
$ qring tunnel create deploy-tok --ttl 300 --max-reads 1[ghost] tunneled tun_m3k9x2_Qd8f$ qring tunnel read tun_m3k9x2_Qd8f # one read, then gonedeploy-tok
Teleportation
Encrypted bundles between machines
Pack keys into an AES-256-GCM bundle for a teammate's public key. They unpack it with their own keychain. No passphrase in chat.
$ qring teleport pack --keys STRIPE_KEY --to qring1... > b.qring[pkg] packed 1 secret(s) for 1 recipient(s)$ qring teleport unpack b.qring # on the other machine[ok] imported 1 secret(s) from teleport bundle
Cursor, Claude Code, Kiro, Windsurf and the rest
Wire it to your editor
One command writes the MCP entry. Your agent gets 46 tools and never a plaintext file.
1. Connect Cursor
# Writes .cursor/mcp.json, keeps other servers $ qring setup cursor[ok] Created: .cursor/mcp.json (server "q-ring")
Or paste the config
{
"mcpServers": {
"q-ring": {
"command": "qring-mcp"
}
}
}2. Your first five commands
# Store a secret (prompts if you leave the value out) $ qring set OPENAI_API_KEY sk-...[ok] saved OPENAI_API_KEY [global]
What the plugin adds
qring setup adds the server. The Cursor, Kiro and Claude Code plugins add rules, skills, commands and hooks on top.
Per-editor details and the prompt cookbook are in MCP Setup.
Common questions
Questions
The things people ask before they install. Missing one? Open an issue and we will add it.
Still curious? Open a question and we'll add it.
Stop leaking keys.
Start asking for them.
One install, no cloud setup. Your agent asks for a key, policy answers, and the log remembers.
- FreeEvery feature, command and MCP tool. No paid tier.
- Open sourceAGPL-3.0. Read the code before you run it.
- No telemetryIt never phones home. No account to make.
- Local onlyKeys stay in your OS keychain. The dashboard runs on 127.0.0.1.