Skip to content
v0.19.0 · Open source · AGPL-3.0

q-ringOpen-source OS keychain manager for AI coding agents

A free CLI and MCP server that keeps API keys in your operating system's keychain and hands them to Cursor, Claude Code, and Kiro on request. Nothing leaves your machine - no cloud, no account, no .env file.

Install
$ pnpm add -g @i4ctime/q-ring
scroll

Open source, by the numbers

Everything ships in the box

MCP Tools
46
across 10 groups
Features
35
in 4 categories
AI Editors
4
Cursor · Kiro · Claude Code · VS Code

Works everywhere

Drop into your AI editor of choice

MCP-native, hook-friendly, and CLI-first. q-ring slots into the agent toolchain you already use.

CursorFirst-class
Native plugin
Drop-in plugin with hooks, secrets MCP, and one-shot env injection.
KiroAuto-discovered
MCP server
MCP server is detected automatically - zero-config setup.
Claude CodeMCP server
MCP server
Add q-ring as an MCP server in your project's .mcp.json.
VS CodeNative MCP
Compatible
Point .vscode/mcp.json at qring-mcp - or use the CLI directly.

The honest comparison

Why q-ring instead of .env?

Other tools were built for a human at a keyboard. q-ring is built so AI coding agents can read, rotate, and audit keys without a plaintext file ever existing - and you can read every line of how.

Capabilityq-ring.env filesdotenv-vault1Password CLI
Anchored to OS keyringmacOS Keychain, Linux Secret Service, Windows Credential Vault
MCP-native (AI agents)Cursor / Claude / Kiro can read & rotate secrets
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

Comparison reflects features at v0.19.0. PRs to update this table are welcome.

Try it in your browser

One palette, every command.

Press ⌘K anywhere on this site to fuzzy-search every page, MCP tool, and CLI command. Hit Enter to copy, navigate, or open docs.

  • 46 MCP tools grouped by capability - pick one to copy its tool name into your editor.
  • 33 CLI examples across 9 groups - from qring set to qring teleport pack.
  • Keyboard-first - arrow keys to navigate, Enter to act, Esc to close.
Browse all MCP tools
~/q-ring · live preview

What ships in q-ring

Quantum Features

35 capabilities inspired by quantum physics - engineered for real-world secret management. Click any feature to peek at how it works.

Quick Start

Five commands. Your secrets are quantum-secured. Step through them.

~ / terminal
# Store a secret (prompts securely if value is omitted)
$ qring set OPENAI_API_KEY sk-...[ok] saved OPENAI_API_KEY [global]

Model Context Protocol

MCP Integration

46 tools for seamless AI agent integration. Pick a category to browse the tools, then drop the snippet into your editor.

ToolDescription
get_secretRetrieve with superposition collapse + observer logging
promote_secretCopy one env state to another (no-op when equal; force to overwrite)
diff_environmentsPer-key same / different / only-a / only-b / collapsed - statuses only
list_secretsList keys with quantum metadata
set_secretStore with optional TTL, env state, tags (re-setting keeps tags; clearTags removes them)
delete_secretRemove a secret
has_secretBoolean check (respects decay)
export_secretsExport as .env/JSON with key and tag filters
import_dotenvParse and import secrets from .env content
check_projectValidate secrets against .q-ring.json manifest
env_generateGenerate .env from project manifest

Configuration

Drop in your MCP config

Same single binary, every host. Pick your editor and paste.

.cursor/mcp.json
{
  "mcpServers": {
    "q-ring": {
      "command": "qring-mcp"
    }
  }
}

Under the hood

Architecture

A modular core engine bridging CLI and MCP to your OS-native keyring. Pick any module to see what it does, where it lives and a command that uses it.

qring CLI
MCP Server
Core Engine
@napi-rs/keyring
OS Keyring

src/core/(grouped by role)

crypto
envelope.ts
noise.ts
entanglement.ts
validate.ts
resolution
scope.ts
collapse.ts
import.ts
exec.ts
governance
policy.ts
approval.ts
hooks.ts
observability
observer.ts
scan.ts
linter.ts
context.ts
provisioning
provision.ts
tunnel.ts
teleport.ts
agent
agent.ts
memory.ts
dashboard.ts

Module inspector

Envelope

Storage format that wraps every secret with environment states, TTL, entanglement links and access counts

Try it

$ qring inspect OPENAI_API_KEY --project

Background daemon

Agent Mode

Autonomous background daemon that guards your secrets 24/7 - rotates, audits, and alerts so you don't have to.

Scan Cadence
60s
default interval, configurable
Anomaly Heuristics
4
burst · off-hours · new source · tampered
Audit Chain
256-bit
SHA-256 hash chain, tamper-evident

Scan Cadence. Scans every secret on the interval (set it with --interval <seconds>) and flags expiration, staleness, and anomalies locally.

Anomaly Heuristics. Reads the local audit chain for burst reads of one key, unusual-hour access, new sources, and tampering. Nothing leaves the machine.

Audit Chain. Every read, write, wrap, and push lands in a chained local log, so edits and deletions are detectable with qring audit:verify.

~/agent
$ qring agent --interval 60 --auto-rotate --verbose

Drop into your editor

Editor Plugins

Quantum secret management built into Cursor, Kiro, and Claude Code. Rules, skills, agents, commands, hooks, and the MCP connector - pre-wired to q-ring's 46 tools. Click any card for details.

~/install
# One command per editor:
$ qring setup cursor # or kiro / claude
# Claude Code can also install from the marketplace:
$ /plugin marketplace add I4cTime/q-ring

Operator surface

Status Dashboard

Headline KPIs, secrets table, manifest gaps, policy posture, approvals, hooks, anomalies, and a filterable 24h audit feed - streaming live from 127.0.0.1 with qring status.

127.0.0.1:9876/?token=•••
Health Summary
12of 14
12 healthy2 stale0 expired
Environment
prodauto-detected · git/main
Access (24h) +18%
Decay Timers
API_KEY
DB_PASS
STRIPE_KEY
Entanglement
API_KEY↔API_BACKUPDB_PASS↔DB_REPLICA
Anomalies

All clear

No suspicious access in the last 7 days.

Live SSE updates

Snapshots stream every 5s. Search input, sort order, and scroll position survive each tick - no lost typing.

KPI strip + 14 panels

Headline KPIs, then health, env, manifest, policy, secrets table, decay, superposition, entanglement, tunnels, approvals, hooks, agent memory, anomalies, and a filterable audit feed.

Token-gated, local, never values

Self-contained Preact page on 127.0.0.1 - every route requires the per-launch ?token printed by qring status, other local users can't snoop, and secret values are never rendered, only metadata.

~/terminal
# Launch the dashboard (auto-opens your browser)
$ qring status

# Custom port
$ qring status --port 4200

# Don't auto-open the browser
$ qring status --no-open

Common questions

Frequently asked

Everything you might want to know before adopting q-ring. If something isn't covered here, open an issue on GitHub - we update this list regularly.

Still curious? Open a question and we'll add it.

  • Free foreverEvery feature, command, and MCP tool. No paywall, no premium tier.
  • No telemetryq-ring never phones home. The only outbound call is the one you request.
  • Local-firstSecrets live in your OS keyring and the dashboard runs on 127.0.0.1.
Ready when you are

Stop leaking secrets.
Start shipping with confidence.

Three minutes to install, zero seconds of cloud setup. q-ring meets your AI agents where they already live - and your secrets never have to.

Open source under AGPL-3.0. No accounts. No telemetry. No vendor lock-in. Read the code before you run it.