q-ring is a secret management tool designed specifically for AI coding agents. Through the MCP (Model Context Protocol) protocol, it securely anchors secrets in the operating system's native vault, avoiding pasting API keys in plaintext into .env files or using cumbersome secret managers. It provides a CLI and 46 built-in MCP tools and integrates seamlessly with editors such as Cursor, Kiro, and Claude Code.
Main capabilities include:
- Superposition: a single key can simultaneously store values for multiple environments such as dev/staging/prod, and is automatically resolved according to context.
- Entanglement: link keys across projects; when one key is rotated, all associated copies are automatically updated.
- Tunneling: create temporary keys that exist only in memory, which can self-destruct after a TTL or maximum number of reads is set.
- Teleportation: package keys into an AES-256-GCM encrypted bundle, supporting two locking methods—passphrase or recipient public key—for secure transmission.
- Environment detection and promotion: automatically detect the current environment (via environment variables, Git branches, etc.), and support comparison of differences between environments and promotion.
- Quantum decay (TTL): keys can be set with a time-to-live; after expiration, reads are blocked, and warnings are issued when expiration is near.
- Auditing and observer effect: all key read, write, and delete operations are recorded in a tamper-proof hash chain, with anomaly detection supported.
- Key generation and import/export: generate cryptographically strong keys, support batch import from .env files, and selective export.
- Project manifest and least-privilege operation: declare required keys via .q-ring.json; qring run injects only the keys declared by the project, and output is automatically redacted.
- Deployment platform push: push keys to GitHub Actions, Vercel, Cloudflare Workers, fly.io, Railway, and Netlify via each platform's own CLI; q-ring does not hold platform tokens.
- Key validity verification: automatically detect providers (OpenAI, Anthropic, GitHub, etc.) and test whether keys are valid.
- Hooks: trigger webhooks, shell commands, or process signals when keys change, with SSRF protection.
- Configurable rotation: set rotation format and interval; upon expirationAdvance notice.
- Secure execution and automatic redaction: inject secrets when running commands, and automatically redact all known secret values from output.
- Codebase secret scanning: scan for hardcoded credentials using regex heuristics and entropy analysis.
- Composite/template secrets: store connection strings that dynamically resolve other secrets.
- User approval (zero-trust agent): protect sensitive production secrets, requiring explicit user approval; approval tokens are HMAC-verified, scoped, and time-limited.
- Canary honeytokens: plant realistic-looking fake credentials; any access triggers a desktop alert and logs an audit event, with webhook notification support.
Usage: q-ring is designed for global installation, and the CLI can be installed via a package manager. The Docker method provides an MCP server, suitable for hosted MCP deployments or CI experiments, but there is no OS keychain inside the container, so it is not suitable for persistent local storage. The MCP server can be connected to editor configuration with a single command, using non-destructive merging.
Use cases: when AI coding agents need secure access to secrets; multi-environment secret management; securely sharing secrets among teams; injecting secrets in CI/CD; detecting secret leakage (canary).
Limitations: redaction is a best-effort safety net, not a guarantee; canaries can only observe reads that pass through q-ring; the Docker method does not support persistent local secret storage; some features (such as ElevenLabs and Vercel verification) require explicitly specifying the provider.