q-ring
q-ring is a local-first MCP server for managing OS-keychain secrets with agent-safe workflows, auditing, and governance.
Create, read, list, inspect, check, export, import, and delete secrets across global, project, team, and org scopes.
Manage per-environment secret states, compare environments, and promote values without exposing them.
Generate CSPRNG secrets, entangle linked keys, and rotate or validate credentials against upstream providers.
Use ephemeral in-memory tunnels and encrypted teleport bundles for temporary or cross-machine secret sharing.
Run commands with secrets injected as environment variables while redacting leaked values from output.
Query, verify, and export a tamper-evident audit log; detect anomalies and review agent sessions.
Register hooks that fire on secret writes, deletes, or rotations via shell, HTTP, or signal.
Check project manifests, detect environments, generate
.envfiles, and get redacted project context for agents.Scan codebases or lint files for hardcoded secrets, optionally replacing findings with
process.envreferences.Enforce and preview
.q-ring.jsongovernance policy for tools, key reads, exec commands, and wrap rules.Persist encrypted agent memory and run multi-project health scans with optional auto-rotation.
Launch a local token-gated status dashboard with live KPIs, audit events, hooks, approvals, and anomaly alerts.
Provides a secure, encrypted alternative to storing sensitive API keys in plain-text .env files.
Uses Git branch heuristics to automatically detect environments and resolve the correct secret values.
Anchors credentials to the native GNOME Keyring to provide OS-level security for secrets on Linux.
Anchors credentials to the native macOS Keychain to provide secure, OS-level secret management.
Manages OpenAI API keys with advanced features like environment-specific resolution and access auditing.
Facilitates the generation and secure storage of Stripe API keys within the native OS vault.
q-ring
OS keychain secrets for AI coding agents, over MCP.
Website: qring.i4c.studio
Stop pasting API keys into plain-text .env files or wrestling with clunky secret managers. q-ring securely anchors your credentials to your OS's native vault (macOS Keychain, Linux Secret Service, Windows Credential Vault) and supercharges them with mechanics from quantum physics.
π View the Official Documentation for a complete CLI reference, MCP prompt cookbooks, and architecture details.
Why q-ring?
Superposition: Store one key with multiple states (dev/staging/prod) that collapse based on context.
Entanglement: Link keys across projects so rotating one automatically updates them all.
Tunneling: Create ephemeral, in-memory secrets that self-destruct after a set time or read count.
Teleportation: Securely pack and share AES-256-GCM encrypted secret bundles.
Seamless AI Integration: 46 built-in MCP tools for native use in Cursor, Kiro, and Claude Code.
π Installation
q-ring is designed to be installed globally so it's available anywhere in your terminal. Pick your favorite package manager:
# pnpm (recommended)
pnpm add -g @i4ctime/q-ring
# npm
npm install -g @i4ctime/q-ring
# yarn
yarn global add @i4ctime/q-ring
# Homebrew (macOS / Linux)
brew install i4ctime/tap/qringDocker (MCP server)
The repo ships a Dockerfile that builds the MCP server and exposes it through mcp-proxy β useful for hosted MCP deployments (e.g. Glama) or keeping the server off the host entirely:
git clone https://github.com/I4cTime/q-ring.git
cd q-ring
docker build -t qring-mcp .
docker run --rm -p 8080:8080 qring-mcpNote: inside a container there is no OS keychain (GNOME Keyring / macOS Keychain), so this path is for the MCP protocol surface, ephemeral use, and CI experiments β not for durable local secret storage. For day-to-day use install the CLI natively via one of the package managers above.
Related MCP server: Vaulted MCP Server
β‘ Quick Start
# 1οΈβ£ Store a secret (prompts securely if value is omitted)
qring set OPENAI_API_KEY sk-...
# 2οΈβ£ Retrieve it anytime
qring get OPENAI_API_KEY
# 3οΈβ£ List all keys (values are never shown)
qring list
# 4οΈβ£ Generate a cryptographic secret and save it
qring generate --format api-key --prefix "sk-" --save MY_KEY
# 5οΈβ£ Run a full health scan
qring health
# Something not working? Diagnose the install (keyring, audit, MCP wiring)
qring doctor
# Tab completion for your shell
qring completion zsh > ~/.zsh/completions/_qring # also: bash, fishQuantum Features
Superposition β One Key, Multiple Environments
A single secret can hold different values for dev, staging, and prod simultaneously. The correct value resolves based on your current context.
# Set environment-specific values
qring set API_KEY "sk-dev-123" --env dev
qring set API_KEY "sk-stg-456" --env staging
qring set API_KEY "sk-prod-789" --env prod
# Value resolves based on context
QRING_ENV=prod qring get API_KEY # β sk-prod-789
QRING_ENV=dev qring get API_KEY # β sk-dev-123
# Inspect the quantum state
qring inspect API_KEYEnvironment Promotion β Diff, Then Promote
Once a secret carries per-environment states, promotion replaces copy-paste: compare two environments key by key (statuses only, never values), then copy a value from one state to another. diff exits 1 on drift, so it doubles as a CI gate; promote refuses to overwrite a differing target unless you say so.
# What differs between staging and prod? (same / different / missing on one side)
qring diff staging prod
# Make prod match staging for one key (asks before overwriting a different value)
qring promote DATABASE_URL --from staging --to prod
# Non-interactive, e.g. in a release script
qring promote DATABASE_URL --from staging --to prod --force --jsonMCP agents get the same two operations as diff_environments and promote_secret.
Wavefunction Collapse β Smart Environment Detection
q-ring auto-detects your environment without explicit flags. Resolution order:
--envflagQRING_ENVenvironment variableNODE_ENVenvironment variableGit branch heuristics (
main/masterβ prod,developβ dev).q-ring.jsonproject configDefault environment from the secret
# See what environment q-ring detects
qring env
# Project config (.q-ring.json)
echo '{"env": "staging", "branchMap": {"release/*": "staging"}}' > .q-ring.jsonQuantum Decay β Secrets with TTL
Secrets can have a time-to-live. Expired secrets are blocked from reads. Stale secrets (75%+ lifetime) trigger warnings.
# Set a secret that expires in 1 hour
qring set SESSION_TOKEN "tok-..." --ttl 3600
# Set with explicit expiry
qring set CERT_KEY "..." --expires "2026-06-01T00:00:00Z"
# Health check shows decay status
qring healthObserver Effect β Audit Everything
Every secret read, write, and delete is logged with a tamper-evident hash chain. Access patterns are tracked for anomaly detection.
# View audit log
qring audit
qring audit --key OPENAI_KEY --limit 50
# Detect anomalies (burst access, unusual hours, chain tampering)
qring audit --anomalies
# Verify audit chain integrity
qring audit:verify
# Export audit log
qring audit:export --format json --since 2026-03-01
qring audit:export --format csv --output audit-report.csvQuantum Noise β Secret Generation
Generate cryptographically strong secrets in common formats.
qring generate # API key (default)
qring generate --format password -l 32 # Strong password
qring generate --format uuid # UUID v4
qring generate --format token # Base64url token
qring generate --format hex -l 64 # 64-byte hex
qring generate --format api-key --prefix "sk-live-" --save STRIPE_KEYEntanglement β Linked Secrets
Link secrets across projects. When you rotate one, all entangled copies update automatically.
# Entangle two secrets
qring entangle API_KEY API_KEY_BACKUP
# Now updating API_KEY also updates API_KEY_BACKUP
qring set API_KEY "new-value"
# Unlink entangled secrets
qring disentangle API_KEY API_KEY_BACKUPTunneling β Ephemeral Secrets
Create secrets that exist only in memory. They never touch disk. Optional TTL and max-read self-destruction.
# Create an ephemeral secret (returns tunnel ID)
qring tunnel create "temporary-token-xyz" --ttl 300 --max-reads 1
# Read it (self-destructs after this read)
qring tunnel read tun_abc123
# List active tunnels
qring tunnel listTeleportation β Encrypted Sharing
Pack secrets into AES-256-GCM encrypted bundles for secure transfer between machines. Two ways to lock a bundle:
Passphrase (v1): keys derived with PBKDF2-HMAC-SHA512 (210 000 iterations); each bundle records its iteration count, so old bundles still unpack.
Recipients (v2, 0.18): each teammate runs
qring teleport keygenonce and shares their recipient string (qring1β¦, an X25519 public key; the private half lives in their OS keyring).pack --toencrypts a fresh content key to every recipient β HKDF-SHA256 over an ephemeral X25519 agreement, AES-256-GCM throughout,node:cryptoonly β so nothing secret travels beside the bundle and nobody has to whisper a passphrase.
# Passphrase bundle (prompts)
qring teleport pack --keys "API_KEY,DB_PASS" > bundle.txt
cat bundle.txt | qring teleport unpack
# Recipient bundle: teammates publish their recipient onceβ¦
qring teleport keygen # β qring1a3Fβ¦ (share this; keep the keyring)
qring teleport identity # print it again later
# β¦then you address the pack to them (repeatable or comma-separated)
qring teleport pack --keys "API_KEY,DB_PASS" --to qring1a3F⦠--to qring1Zz9⦠> bundle.txt
# They unpack with the identity in their keyring β no passphrase
cat bundle.txt | qring teleport unpack
# Preview: who it's addressed to, whether that's you, and what's inside
qring teleport unpack <bundle> --dry-runImport β Bulk Secret Ingestion
Import secrets from .env files directly into q-ring. Supports standard dotenv syntax including comments, quoted values, and escape sequences. The CLI accepts either a file path or raw content; the import_dotenv MCP tool only accepts raw content (it never reads files from disk) so an agent can't coerce it into reading arbitrary local files.
# Import all secrets from a .env file
qring import .env
# Import to project scope, skipping existing keys
qring import .env --project --skip-existing
# Preview what would be imported
qring import .env --dry-runSelective Export
Export only the secrets you need using key names or tag filters.
# Export specific keys
qring export --keys "API_KEY,DB_PASS,REDIS_URL"
# Export by tag
qring export --tags "backend"
# Combine with format
qring export --keys "API_KEY,DB_PASS" --format jsonSecret Search and Filtering
Filter qring list output by tag, expiry state, or key pattern.
# Filter by tag
qring list --tag backend
# Show only expired secrets
qring list --expired
# Show only stale secrets (75%+ decay)
qring list --stale
# Glob pattern on key name
qring list --filter "API_*"
# Script-friendly existence check (exit 0 if present, 1 if not; decay-aware)
qring has OPENAI_API_KEY --quiet && echo "configured"Project Secret Manifest
Declare required secrets in .q-ring.json and validate project readiness with a single command.
# Validate project secrets against the manifest
qring check
# See which secrets are present, missing, expired, or stale
qring check --project-path /path/to/projectEnv File Sync
Generate a .env file from the project manifest, resolving each key from q-ring with environment-aware superposition collapse.
# Generate to stdout
qring env:generate
# Write to a file
qring env:generate --output .env
# Force a specific environment
qring env:generate --env staging --output .env.stagingSecret References & Least-Privilege Run
A qring:// reference is a committable pointer to a secret β it goes in your .env file instead of the value. qring run resolves references and manifest keys at spawn time, injecting only what the project declares (unlike exec, which injects the whole scope). Output is auto-redacted.
# .env β safe to commit: these are references, not values
DATABASE_URL=qring://project/DATABASE_URL
OPENAI_API_KEY=qring://global/OPENAI_API_KEY
STRIPE_KEY=qring:///STRIPE_KEY # auto scope: project, then global
SESSION_TTL=3600 # plain values pass through
# Run with declared secrets injected (manifest + .env refs)
qring run -- pnpm dev
# Preview what would be injected, without running
qring run --dry-run -- pnpm dev
# Pin an environment, use a specific env file, or skip the manifest
qring run --env prod --env-file .env.prod --no-manifest -- ./deploy.shThe key lives in the path, never the host (qring://project/KEY, not qring://KEY) β URL hosts are case-insensitive, and env-var keys are not. Malformed references fail loudly instead of leaking a literal qring://β¦ string into the child. A reference pinned to an environment: qring://project/DATABASE_URL?env=prod.
Editor Setup
Wire the q-ring MCP server into an editor's MCP config with one command. Merges non-destructively β other servers are preserved, and an existing q-ring entry is only replaced with --force.
qring setup cursor # .cursor/mcp.json (project) or --global for ~/.cursor
qring setup kiro # .kiro/settings/mcp.json, with read-only autoApprove list
qring setup claude # .mcp.json (project scope)
# Preview without writing
qring setup cursor --dry-runPush to Deployment Platforms
Push manifest secrets to GitHub Actions, Vercel, Cloudflare Workers, fly.io, Railway, or Netlify through each platform's own authenticated CLI (gh / vercel / wrangler / flyctl / railway / netlify) β q-ring never holds platform tokens, and values travel over stdin (or, for Netlify's import-only CLI, a 0600 temp file that is removed immediately), never argv. Every push is recorded in the audit chain.
# Push the .q-ring.json manifest keys to GitHub Actions secrets
qring push github --repo you/your-app
# Push to Vercel environments
qring push vercel --vercel-env production,preview
# Push to Cloudflare Workers secrets
qring push cloudflare
# fly.io (flyctl secrets import over stdin β note flyctl deploys per import), Railway, Netlify
qring push fly --app my-app
qring push railway --service api --railway-env production
qring push netlify --site 1234-abcd
# Explicit keys, preview first
qring push github --keys DATABASE_URL,API_KEY --dry-runCanaries can ride along: qring canary plant KEY --format aws --push github plants a honeytoken locally and seeds it into the platform without reading it back (see Canary Honeytokens).
Secret Liveness Validation
Test if a secret is actually valid with its target service. q-ring auto-detects the provider from key prefixes (sk- β OpenAI, ghp_ β GitHub, etc.) or accepts an explicit provider name.
# Validate a single secret
qring validate OPENAI_API_KEY
# Force a specific provider
qring validate SOME_KEY --provider stripe
# Validate all secrets with detectable providers
qring validate --all
# Only validate manifest-declared secrets
qring validate --all --manifest
# List available providers
qring validate --list-providersBuilt-in providers: OpenAI, Anthropic, OpenRouter, Google AI (Gemini), Groq, Hugging Face, ElevenLabs*, Vercel*, Stripe, GitHub, AWS (format check), Generic HTTP. Keys are only ever sent in headers, never URLs. (*no safe public prefix β select explicitly with --provider or the manifest provider field.)
Output:
β OPENAI_API_KEY valid (openai, 342ms)
β STRIPE_KEY invalid (stripe, 128ms) β API key has been revoked
β AWS_ACCESS_KEY error (aws, 10002ms) β network timeout
β DATABASE_URL unknown β no provider detectedHooks β Callbacks on Secret Change
Register webhooks, shell commands, or process signals that fire when secrets are created, updated, or deleted. Supports key matching, glob patterns, tag filtering, and scope constraints.
# Run a shell command when a secret changes
qring hook add --key DB_PASS --exec "docker restart app"
# POST to a webhook on any write/delete
qring hook add --key API_KEY --url "https://hooks.example.com/rotate"
# Trigger on all secrets tagged "backend"
qring hook add --tag backend --exec "pm2 restart all"
# Signal a process when DB secrets change
qring hook add --key-pattern "DB_*" --signal-target "node"
# List all hooks
qring hook list
# Remove a hook
qring hook remove <id>
# Enable/disable
qring hook enable <id>
qring hook disable <id>
# Dry-run test a hook
qring hook test <id>Hooks are fire-and-forget: a failing hook never blocks secret operations. The hook registry is stored at ~/.config/q-ring/hooks.json.
SSRF protection: HTTP hook URLs targeting private/loopback IP ranges (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, ::1, fc00::/7) are blocked by default. DNS is checked up front and re-validated at connect time, so a hostname can't pass the check then rebind to a private address before the socket opens. To allow hooks targeting local services (e.g. during development), set the environment variable QRING_ALLOW_PRIVATE_HOOKS=1 (the older spelling Q_RING_ALLOW_PRIVATE_HOOKS=1 still works until 1.0, with a deprecation warning).
Configurable Rotation
Set a rotation format per secret so the agent auto-rotates with the correct value shape, and a rotation interval so q-ring reminds you before a credential goes stale. Every secret remembers when its value last changed (rotatedAt); with --rotate-every it becomes due soon inside the last 20% of the interval (or the last 7 days, whichever is shorter) and overdue past it β in qring inspect, qring rotate:due, the dashboard's "Rotate soon" card and the inspect_secret tool.
# Store a secret with rotation format metadata
qring set STRIPE_KEY "sk-..." --rotation-format api-key --rotation-prefix "sk-"
# Store a password with password rotation format
qring set DB_PASS "..." --rotation-format password
# Remind me every 90 days
qring set STRIPE_KEY "sk-..." --rotate-every 90
# What needs rotating? (most overdue first; --all lists every scheduled secret)
qring rotate:due
qring rotate:due --jsonSecure Execution & Auto-Redaction
Run commands with secrets securely injected into the environment. All known secret values are automatically redacted from stdout and stderr to prevent leaking into terminal logs or agent transcripts. Exec profiles restrict which commands may be run.
Redaction catches each value (longer than 5 characters) verbatim, in its common encoded forms (base64 standard and URL-safe, at any offset inside a longer base64 string; lowercase and uppercase hex; URL-encoded; JSON-escaped), and as a slice: any run of 16 or more consecutive characters of it, such as a truncated log line. Every hit is replaced with a token that names the keyring key the value came from, so an agent reading the output knows which secret appeared without seeing it:
connecting with [QRING:REDACTED:DATABASE_URL]
Authorization: Basic [QRING:REDACTED:API_TOKEN][QRING:REDACTED] without a name means the value's key is unknown.
Limits, so redaction stays fast and leaves ordinary output alone:
Encoded forms are matched for values up to 256 characters. Longer values (PEM keys, service-account JSON) are not matched in encoded form.
Slices are matched for every credential part up to 1024 characters; credential parts longer than 1024 characters (a whole opaque value counts as one part) are not sliced, though the value is still matched verbatim (q-ring prints a one-line, counts-only note on stderr). Only the credential-bearing parts of a structured value are sliced: the
user:passwordof a URL with credentials (the path and query of a URL without), the signature of a JWT, the body of a PEM block, in a JSON object, the string values under credential-named keys (key,secret,token,password,private,auth, ...; not URL or URI fields) and any PEM value, each read the same way, so a service-account JSON contributes itsprivate_keybody,private_key_idand tokens but notclient_emailor its public cert URLs. A JSON value with no such string is matched whole only. So a different connection string to the same host, or another JWT with the same header, is left alone. Repeated-character runs (0000000000000000,abababababababab) never count as a slice; account numbers and hex tokens do.
Redaction is a best-effort safety net, not a guarantee: a value the child encrypts, compresses, or prints fewer than 16 characters of gets through.
# Execute a deployment script with secrets injected
qring exec -- npm run deploy
# Inject only specific tags
qring exec --tags backend -- node server.js
# Run with a restricted profile (blocks network tools and interpreters/shells, 30s timeout)
qring exec --profile restricted -- npm testWhat an agent's exec_with_secrets injects follows three tiers:
Manifest. When
.q-ring.jsondeclares asecretsmanifest, the MCP tool injects only the declared keys (intersected with itskeysinput), the same least-privilege setqring runuses. A key an agent planted withset_secretstays inert unless you declared it.Credential-shaped names. Without a manifest, only keys whose names read as credentials are injected (
β¦_KEY,β¦_TOKEN,β¦_SECRET,β¦_PASSWORD,β¦_URL,β¦_DSN,β¦_CREDENTIALS, ...). The result names the keys it skipped. Declare a manifest to lift the rule.Denylist, on every path. A key whose name is not a plain environment variable name is never injected. Neither is one that steers what a program runs:
NODE_OPTIONS,LD_PRELOAD,PATH,GIT_*,MAKEFLAGS,TAR_OPTIONS,MAVEN_OPTS,CGO_*, proxy and CA-bundle variables, and more. From the CLI you can still inject a process-control name deliberately with--keys NAME. The denylist is best effort; for agents the boundary is tiers 1 and 2.
Codebase Secret Scanner
Migrating a legacy codebase? Quickly scan directories for hardcoded credentials using regex heuristics and Shannon entropy analysis.
# Scan current directory
qring scan .Output:
β src/db/connection.js:12
Key: DB_PASSWORD
Entropy: 4.23
Context: const DB_PASSWORD = "..."Composite / Templated Secrets
Store complex connection strings that dynamically resolve other secrets. If DB_PASS rotates, DB_URL is automatically correct without manual updates.
qring set DB_USER "admin"
qring set DB_PASS "supersecret"
qring set DB_URL "postgres://{{DB_USER}}:{{DB_PASS}}@localhost/mydb"
# Resolves embedded templates automatically
qring get DB_URL
# Output: postgres://admin:supersecret@localhost/mydbUser Approvals (Zero-Trust Agent)
Protect sensitive production secrets from being read autonomously by the MCP server without explicit user approval. Each approval token is HMAC-verified, scoped, reasoned, and time-limited. The gate applies to bulk reads too β export_secrets and teleport_pack over MCP skip approval-protected keys that lack a valid grant.
# Mark a secret as requiring approval
qring set PROD_DB_URL "..." --requires-approval
# Temporarily grant MCP access for 1 hour with a reason
qring approve PROD_DB_URL --for 3600 --reason "deploying v2.0"
# List all approvals with verification status
qring approvals
# Revoke an approval
qring approve PROD_DB_URL --revokeWhen an agent is blocked on an approval-protected key, q-ring raises a desktop notification (Linux notify-send, macOS osascript) naming the key and the exact qring approve command β throttled per key, disabled with QRING_NOTIFY=off.
Canary Honeytokens
Plant fake credentials that look and read exactly like real ones. Anything that touches one β a compromised MCP server, an over-curious agent, exfiltrated tooling sweeping the ring β gets the fake value back with no tell, while q-ring fires a desktop alert and writes a canary event into the tamper-evident audit chain.
# Plant a canary shaped like a real AWS access key
qring canary plant AWS_SECRET_ACCESS_KEY --format aws
# Other shapes: aws-secret, github, github-pat, openai, openai-project,
# anthropic, stripe, gitlab, slack, google, npm, generic
qring canary plant GHP_BACKUP_TOKEN --format github-pat
# See what's been tripped
qring canary list
qring audit --action canaryValues are CSPRNG noise in the provider's real token shape (an aws canary matches AKIA[A-Z0-9]{16}, an anthropic one the real sk-ant-api03-β¦AA layout) β plausible enough to be taken, never valid. Alerts are throttled to one per key per 30 seconds; the audit trail records every read.
Get paged. Desktop notifications only help when you are at the machine. Register webhook channels and every trip reaches them too:
qring canary alert add --discord https://discord.com/api/webhooks/β¦
qring canary alert add --slack https://hooks.slack.com/services/β¦
qring canary alert add --ntfy https://ntfy.sh/my-canaries
qring canary alert add --url https://example.com/canary # generic JSON POST
qring canary alert list
qring canary alert test # send a clearly-labelled drillChannels live in ~/.config/q-ring/canary-alerts.json (mode 0600). Sends are fire-and-forget, SSRF-guarded like hooks, throttled with the desktop alert, and never include the fake value β only the key, scope, source, and the agent label that reached for it.
Seed a tripwire into CI. Plant a canary and push it to a deployment platform in one step, so a leaked GitHub Actions / Vercel / Cloudflare environment carries a decoy:
qring canary plant AWS_SECRET_ACCESS_KEY --format aws-secret --push github --repo you/your-appHonest caveat: q-ring only sees reads that go through q-ring. A leaked value used directly on the platform side is not observable here β pair it with the provider's own alerting if you need that.
Canaries are built to stay covert: they carry no identifying description (add an innocuous cover story with --description if you like), their flag never appears in MCP tool responses, and trip records are visible only from the operator's terminal β never to agents via MCP audit tools. Bulk export and delete trip them just like reads, so sweeping the ring or removing the tripwire both ring the bell. Done with one? qring canary disarm <key> turns it back into an ordinary secret (qring set over a canary warns you first β the flag deliberately survives overwrites so an agent can't launder it away).
MCP Airlock
Run a third-party MCP server behind q-ring. The airlock sits between your agent host and the wrapped server, spawns it with a stripped environment (no inherited API keys β opt back in with --inherit-env), records every tool call, resource read, and prompt fetch that crosses it as a wrap event in the audit chain (grouped per session and labeled with the calling client's identity), scrubs known secret values out of every result before it reaches the transcript, and enforces the project's policy.wrap rules. Tool and prompt arguments are never logged β they may contain secrets.
{
"mcpServers": {
"some-server": {
"command": "qring",
"args": ["mcp", "wrap", "--", "npx", "-y", "some-mcp-server"]
}
}
}Tools, resources, and prompts all pass through verbatim (pagination, progress notifications, cancellation, subscriptions, and the list_changed / updated notifications included); the airlock advertises exactly the capabilities the wrapped server has. Long-running tools are governed by the host's own timeout, with a generous airlock ceiling configurable via QRING_WRAP_TIMEOUT_MS.
# Wrap a remote Streamable HTTP server; the Bearer token comes from q-ring (audited read)
qring mcp wrap --url https://mcp.example.com/mcp --auth-secret EXAMPLE_MCP_TOKEN
# Keep results verbatim (default: known secret values, whole or in an encoded form, are
# replaced with [QRING:REDACTED:<KEY_NAME>]; unlike `qring exec`, the airlock never matches
# slices, see docs/threat-model.md; if redaction cannot be set up, results are withheld)
qring mcp wrap --no-redact -- npx -y some-mcp-serverWrap policy. Govern the wrapped server from .q-ring.json β the same file, the same fail-closed engine:
{
"policy": {
"wrap": {
"allowTools": ["github_*", "search"],
"denyTools": ["github_delete_*"],
"approveTools": ["github_merge_pr"],
"rateLimit": { "maxCalls": 60, "perSeconds": 60 },
"toolRateLimits": { "search": { "maxCalls": 5, "perSeconds": 10 } },
"redactResults": true
}
}
}Denied tools are hidden from tools/list and refused on call with a policy_deny audit event; approveTools are refused until you grant them:
qring mcp approve github_merge_pr --for 900 --reason "release 1.4"
qring mcp approvals
qring mcp approve github_merge_pr --revokeBe clear about what the airlock is: env stripping, a tamper-evident record of every crossing, policy at the tool boundary, and best-effort redaction of secret values the ring knows about: the whole value and its base64 / hex / URL / JSON-encoded forms, never partial slices (an agent that can make a tool echo its input could otherwise use slice redaction to recover a secret one character at a time). It is not a sandbox β the wrapped process still runs as your user with normal filesystem, network, and OS-keychain access, and tool descriptions pass through uninspected. See docs/threat-model.md for the honest boundary picture.
Just-In-Time (JIT) Provisioning
Instead of storing static credentials, configure q-ring to dynamically generate short-lived tokens on the fly when requested (e.g. AWS STS, generic HTTP endpoints).
# Store the STS role configuration
qring set AWS_TEMP_KEYS '{"roleArn":"arn:aws:iam::123:role/AgentRole", "durationSeconds":3600}' --jit-provider aws-sts
# Resolving the secret automatically assumes the role and caches the temporary token
qring get AWS_TEMP_KEYSProject Context for AI Agents
A safe, redacted overview of the project's secrets, configuration, and state. Designed to be fed into an AI agent's system prompt without ever exposing secret values.
# Human-readable summary
qring context
# JSON output (for MCP / programmatic use)
qring context --jsonSecret-Aware Linter
Scan specific files for hardcoded secrets with optional auto-fix. When --fix is used, detected secrets are replaced with process.env.KEY references and stored in q-ring.
# Lint files for hardcoded secrets
qring lint src/config.ts src/db.ts
# Auto-fix: replace hardcoded values and store in q-ring
qring lint src/config.ts --fix
# Scan entire directory with auto-fix
qring scan . --fixAgent Memory
Encrypted, persistent key-value store that survives across AI agent sessions. Useful for remembering rotation history, project decisions, or context.
# Store a memory
qring remember last_rotation "Rotated STRIPE_KEY on 2026-03-21"
# Retrieve it
qring recall last_rotation
# List all memories
qring recall
# Forget
qring forget last_rotationPre-Commit Secret Scanning
Install a git pre-commit hook that automatically blocks commits containing hardcoded secrets.
# Install the hook
qring hook:install
# Uninstall
qring hook:uninstallSecret Analytics
Analyze usage patterns and get optimization suggestions for your secrets.
qring analyzeOutput includes most accessed secrets, unused/stale secrets, scope optimization suggestions, and rotation recommendations.
Service Setup Wizard
Quickly set up a new service integration with secrets, manifest entries, and hooks in one command.
# Create secrets for a new Stripe integration
qring wizard stripe --keys STRIPE_KEY,STRIPE_SECRET --provider stripe --tags payment
# With a hook to restart the app on change
qring wizard myservice --hook-exec "pm2 restart app"Governance Policy
Define project-level governance rules in .q-ring.json to control which MCP tools can be used, which keys are accessible, which commands can be executed, and what a wrapped MCP server may do behind the airlock. Policy is enforced at the MCP server, keyring, and airlock level.
Over MCP, policy is resolved from the directory the server was launched in β not from the projectPath a caller passes β so an agent can't sidestep restrictions by pointing at a directory with no policy. Launch the MCP server from your project root (where .q-ring.json lives). Edits to .q-ring.json are picked up automatically (the policy cache invalidates on file change), so you don't need to restart the server.
Policy files are schema-validated and fail closed: an invalid policy object (say, a typo like denytools) raises a PolicyConfigError instead of being silently ignored, so a malformed rule can never widen access.
# View the active policy
qring policy
# JSON output
qring policy --jsonExample policy in .q-ring.json:
{
"policy": {
"mcp": {
"denyTools": ["delete_secret"],
"deniedKeys": ["PROD_DB_PASSWORD"],
"deniedTags": ["production"]
},
"exec": {
"denyCommands": ["curl", "wget", "ssh"],
"maxRuntimeSeconds": 30
},
"secrets": {
"requireApprovalForTags": ["production"],
"maxTtlSeconds": 86400
},
"wrap": {
"denyTools": ["*_delete_*"],
"approveTools": ["deploy_*"],
"rateLimit": { "maxCalls": 60, "perSeconds": 60 }
}
}
}Exec Profiles
Restrict command execution with named profiles that control allowed commands, network access, timeouts, and environment sanitization.
# Run with the "restricted" profile (blocks network tools and interpreters/shells; 30s timeout)
qring exec --profile restricted -- npm test
# Run with the "ci" profile (5min timeout, allows network)
qring exec --profile ci -- npm run deploy
# Default: unrestricted
qring exec -- echo "hello"Built-in profiles: unrestricted, restricted (denies network tools and interpreters/shells β python -c, node -e, bash and friends can't exfiltrate injected secrets; 30s limit), ci (5min limit, blocks destructive commands).
Tamper-Evident Audit
Every audit event includes a SHA-256 hash of the previous event, creating a tamper-evident chain. Since v0.14 the chain is also anchored with a keyed HMAC stored in the OS keyring, so qring audit:verify detects truncation and whole-file rewrites β not just in-place edits. Verify integrity and export logs in multiple formats. Events from MCP sessions are additionally stamped with the connecting client's self-reported identity (clientInfo name@version) β shown in qring audit output and filterable with qring audit --agent <label>. It's an audit label for "which agent did this", never an authorization boundary, since clients choose what to report.
# Verify the entire audit chain
qring audit:verify
# Export as JSON
qring audit:export --format json --since 2026-03-01
# Export as CSV
qring audit:export --format csv --output audit-report.csvAgent Session Timeline
Every MCP session is stamped with the client's identity (clientInfo name@version) and every airlock session with a correlation id. audit:sessions folds the flat audit feed back into one timeline per agent process, so "what did Cursor do in that session?" is one command instead of a grep.
# One block per session: agent, source, window, event + denial counts, keys touched
qring audit:sessions
# Narrow to one client, widen the window, print every event line
qring audit:sessions --agent "Cursor@1.2.3" --since 7d --verbose
# Machine-readable
qring audit:sessions --jsonAirlock sessions (qring mcp wrap) show up as airlock: <wrapped command> with every proxied call in order. The status dashboard (qring status) renders the same data as an expandable Agent Sessions (24h) card.
Agents can look at their own history too β as MCP resources, not tools: qring://sessions lists session summaries and qring://sessions/{id} returns one timeline (key names and actions only, never values). Two guarantees hold on the agent side: canary trips are stripped before anything is summarised, so a honeytoken can never be discovered from a session view, and denying the audit_log tool in .q-ring.json policy hides the resources as well β one switch controls audit visibility for agents.
Encrypted File Backend (Headless / CI)
Hosts with no OS keyring at all (headless Linux, containers, CI) can opt into an encrypted file store. Everything β secrets, the audit anchor, the agent-memory key β routes through it.
export QRING_BACKEND=file
export QRING_FILE_PASSPHRASE="a strong passphrase" # required β no passphrase, no access
qring set CI_TOKENThe store is AES-256-GCM at ~/.config/q-ring/file-backend.enc (mode 0600, path override via QRING_FILE_BACKEND_PATH), keyed by PBKDF2 from the passphrase. It is explicit-only: a missing OS keyring never falls back to it silently, and without the passphrase every operation fails closed β q-ring never encrypts under a machine-derivable key.
Team & Org Scopes
Extend beyond global and project scopes with team and org scopes for shared secrets across groups. Resolution order: project β team β org β global (most specific wins).
# Store a secret in team scope
qring set SHARED_API_KEY "sk-..." --team my-team
# Store in org scope
qring set ORG_LICENSE "lic-..." --org acme-corp
# Resolution cascades: project > team > org > global
qring get API_KEY --team my-team --org acme-corpIssuer-Native Rotation
Attempt provider-native secret rotation (for providers that support it) or fall back to local generation.
# Rotate via the detected provider
qring rotate STRIPE_KEY
# Force a specific provider
qring rotate API_KEY --provider openaiCI Secret Validation
Batch-validate all secrets against their providers in a CI-friendly mode. Returns a structured pass/fail report with exit code 1 on failure.
# Validate all secrets (CI mode)
qring ci:validate
# JSON output for pipeline parsing
qring ci:validate --jsonAgent Mode β Autonomous Monitoring
A background daemon that continuously monitors secret health, detects anomalies, and optionally auto-rotates expired secrets.
# Start the agent
qring agent --interval 60 --verbose
# With auto-rotation of expired secrets
qring agent --auto-rotate
# Single scan (for CI/cron)
qring agent --onceQuantum Status Dashboard β Live Monitoring
Launch a real-time dashboard in your browser that turns the entire quantum subsystem into one glanceable page. It's a single self-contained HTML page served locally β no cloud, no config, fully offline β built as a Preact + htm app (runtime bundled and inlined). It streams updates every 5 seconds via Server-Sent Events and diffs the DOM in place, so data refreshes without a flash and your search input, caret, and scroll position are preserved across ticks.
Since 0.19.1 the page wears the same Quantum skin as qring.i4c.studio: one token set (src/core/dashboard-tokens.ts, mirrored from the site's stylesheet) drives the palette, radii and motion, cards are flat with a 1 px border, the KPI strip is a row of tiles, and the layout holds at 768 px and 480 px with no horizontal scroll. Pulses and transitions stop under prefers-reduced-motion.
What you get:
KPI strip β total secrets, detected environment, protected count, active approvals, hooks, 24-hour reads, and live anomaly count.
Health summary β donut chart of healthy / stale / expired / no-decay secrets plus per-scope counts (global / project / team / org).
Environment β wavefunction collapse details: detected env, source, branch, and any project context.
Manifest β
.q-ring.jsonsummary with declared / required / missing / expired / stale keys.Policy β at-a-glance view of MCP, exec, and secret policies (allow/deny tools, deny keys/tags, allow/deny commands, approval & rotation requirements), each rule's mode shown as a chip.
Secrets table β searchable, sortable view of every secret (key, scope, env, type, decay, tags, last read), with quick chips for
expired,stale, andprotectedfilters. Press/to focus the search box.Quantum cards β decay timers, superposition states, entanglement pairs, and active quantum tunnels.
Approvals & hooks β live list of valid (and tampered) approval grants and every registered hook with its match summary.
Canary β your planted honeytokens in three states: none yet (a one-line explainer and the
qring canary plant <KEY>hint), armed (each key with a pulsing dot), or tripped in the last 24 hours (danger border, who tripped it and when). A dashboard an MCP agent starts never renders this card, the same way its audit feed drops canary events.Agent sessions (24h) β one expandable row per MCP client or airlock session: agent label, source, window, event and denial counts, recent events.
Agent memory β count of encrypted memory keys persisted at
~/.config/q-ring/agent-memory.enc.Anomaly alerts β burst reads, off-hours access, tampered audit chain, and other suspicious patterns.
Audit log (24h) β hash-chain status pill (
intact/broken at #n) and a console-style feed with action chips (read/write/delete/export), source chips (cli/mcp/hook/agent), and a free-text filter.
Top-bar controls let you pause SSE updates (handy while reading the audit feed), refresh on demand, or jump to the raw JSON snapshot at /api/status. Keyboard shortcuts: / focus secrets search Β· P pause Β· R refresh.
The dashboard binds to 127.0.0.1 only and never exposes secret values, but it does surface key names, the audit log, and approval grants β so every route is gated by a random, per-launch token. qring status prints (and opens) the full URL including ?token=β¦; requests without the token get a 403. Stop the server to invalidate the token.
# Open the dashboard (auto-launches your browser at http://127.0.0.1:9876/?token=β¦)
qring status
# Specify a custom port
qring status --port 4200
# Don't auto-open the browser (copy the printed tokenized URL yourself)
qring status --no-openMCP Server
q-ring includes a full MCP server with 46 tools for AI agent integration.
Core Tools
Tool | Description |
| Read a secret value (collapses superposition, audits the read) |
| List keys + metadata in scope (values never exposed); filter by tag, expiry, glob |
| Create or overwrite a single secret with optional TTL, per-env state, tags, rotation format |
| Copy one secret's value from one environment state to another (no-op when equal; |
| Compare two environments key by key β same / different / only-a / only-b / collapsed; statuses only, never values |
| Permanently remove a secret value (not undoable from q-ring) |
| Boolean existence check that respects decay (no audit read) |
| Render multiple secrets as |
| Parse |
| Compare |
| Render a complete |
Quantum Tools
Tool | Description |
| Show metadata for one key (states, decay, entanglement, access count) without revealing the value |
| Resolve which env slug should drive superposition collapse for the current context |
| Generate a CSPRNG-backed value in a chosen format and optionally store it |
| Link two keys so future writes/rotations propagate the same value |
| Break the sync link between two keys (does not delete values) |
Tunneling Tools
Tool | Description |
| Stash a value in process memory and return an opaque ID (never touches disk) |
| Fetch a tunneled value by ID β may self-destruct on read |
| Enumerate active tunnels with remaining read budget and TTL (IDs only) |
| Immediately remove a tunnel from memory before its TTL/reads run out |
Teleportation Tools
Tool | Description |
| Encrypt selected secrets into a passphrase-protected AES-256-GCM bundle |
| Decrypt a teleport bundle and import each secret (with optional dry-run) |
Validation Tools
Tool | Description |
| Hit the upstream service (OpenAI/Stripe/GitHub/AWS/HTTP) to confirm a single key is still live |
| Enumerate built-in validation providers and their auto-detect prefixes |
Hook Tools
Tool | Description |
| Register a shell/HTTP/signal side-effect that fires on write/delete/rotate |
| Show every registered hook with match criteria, type, and enabled flag |
| Detach a single hook by ID without touching any secrets |
Execution & Scanning Tools
Tool | Description |
| Run a child command with secrets injected as env vars and any leaked values redacted from output |
| Walk a directory tree and flag hardcoded secrets via regex + entropy heuristics |
| Inspect a specific file list for hardcoded secrets with optional auto-fix to |
AI Agent Tools
Tool | Description |
| Single redacted snapshot of secrets, env, manifest, hooks, and recent audit activity |
| Persist a non-secret note in encrypted agent memory across sessions |
| Read a memory value, or list every stored key when no key is supplied |
| Permanently delete a key from agent memory |
| Usage profile: most-accessed, stale, never-accessed, no-rotation candidates |
Observer & Health Tools
Tool | Description |
| Query the tamper-evident audit log filtered by key, action, and limit |
| Surface burst-read and off-hours findings from audit history |
| Recompute the audit hash chain and report the first break point if tampered |
| Export audit events as jsonl, json, or csv for archival/SIEM |
| Read-only scope sweep: decay/stale/expired counts plus current anomalies |
| Start a local SSE dashboard with live KPIs, secrets, hooks, and audit feed (returns a token-gated |
| Multi-project health pass with optional |
Governance & Policy Tools
Tool | Description |
| Dry-run a tool/key/exec action against |
| High-level overview of policy rule counts and approval/rotation requirements |
| Ask the upstream provider to issue a new credential and store it back in the keyring |
| Batch-validate every accessible secret in scope and return a structured pass/fail report |
Resources
State an agent should look at ships as read-only MCP resources, not tools, so the tool count stays at 46. Every resource is JSON, never contains secret values, and goes dark when .q-ring.json policy denies the tool that exposes the same information.
Resource | Description |
| Per-agent session summaries from the audit chain, last 7 days (canary trips stripped; hidden when |
| One session's event timeline, key names and actions only |
| The active |
| The |
| Planted canaries with trip count, last trip time and client, and alert channels by type and host. Off by default β canary identity is the secret, so it lists nothing unless the operator starts the server with |
Cursor / Kiro Configuration
Add to .cursor/mcp.json or .kiro/settings/mcp.json (or let qring setup cursor / qring setup kiro write it):
If q-ring is installed globally (e.g. pnpm add -g @i4ctime/q-ring):
{
"mcpServers": {
"q-ring": {
"command": "qring-mcp"
}
}
}If using a local clone:
{
"mcpServers": {
"q-ring": {
"command": "node",
"args": ["/path/to/q-ring/dist/mcp.js"]
}
}
}Claude Code Configuration
Add to .mcp.json in the project root β or run qring setup claude, or claude mcp add q-ring -- qring-mcp (Claude Desktop is the app that uses claude_desktop_config.json, not Claude Code):
Global install:
{
"mcpServers": {
"q-ring": {
"command": "qring-mcp"
}
}
}Local clone:
{
"mcpServers": {
"q-ring": {
"command": "node",
"args": ["/path/to/q-ring/dist/mcp.js"]
}
}
}VS Code Configuration
VS Code speaks MCP natively β add to .vscode/mcp.json (note the servers key, not mcpServers):
{
"servers": {
"q-ring": {
"command": "qring-mcp"
}
}
}qring setup does not write this file yet β VS Code is config-only (no first-party plugin bundle).
Editor Plugins
The q-ring repo ships three first-party editor packs β each one adds rules/steering, agents, commands, skills, hooks, and the MCP connector to its host editor.
Plugin | Editor | Highlights |
3 rules, 5 skills, 2 agents, 8 slash commands, 3 hooks, MCP autoconnect | ||
Official Power layout: | ||
|
Cursor Plugin
The q-ring Cursor Plugin brings quantum secret management directly into your IDE with rules, skills, agents, commands, hooks, and a built-in MCP connector.
Component | What it does |
3 Rules | Always-on guidance: never hardcode secrets, use q-ring for all ops, warn about |
5 Skills | Auto-triggered by context: secret management, scanning, rotation, project onboarding, exec-with-secrets |
2 Agents |
|
8 Commands |
|
3 Hooks |
|
MCP Connector | Auto-connects to |
Install from the Cursor marketplace or see cursor-plugin/README.md for manual setup.
Kiro Plugin (Power)
The kiro-plugin/ directory is a Kiro Power per Create powers: POWER.md (metadata, onboarding, steering map), root mcp.json (MCP server must match the server name referenced in the power), and steering/ for workflows. Install from Kiro β Powers β Add power from Local Path and select kiro-plugin, or publish the folder on GitHub and use Add power from GitHub.
Always-on steering blocks hardcoded secrets and routes everything through q-ring; manual steering files act as agent personas (#qring-secret-ops, #qring-security-auditor), skill packs, and slash-style commands (#qring-cmd-scan-secrets, etc.). Optional hooks live in hooks/ for copy into .kiro/hooks/.
# Alternative: flatten into ~/.kiro (settings + steering + hooks)
pnpm run plugin:sync:kiro
# Or scope to a single project
pnpm run plugin:sync:kiro -- /path/to/your/project/.kiroSee kiro-plugin/README.md for the full breakdown.
Claude Code Plugin
For Claude Code, q-ring ships a CLAUDE.md memory file, a project-scoped .mcp.json, two subagents (secret-ops, security-auditor), eight slash commands (/qring-scan-secrets, /qring-health-check, β¦), six skills, and three hooks (post-edit lint reminder, pre-Bash .env guard, session-start context primer).
# Install into the current project ($PWD)
pnpm run plugin:sync:claude
# Install agents/commands/skills/hooks at user scope (~/.claude)
pnpm run plugin:sync:claude -- --user
# Or target a specific project
pnpm run plugin:sync:claude -- /path/to/your/projectExisting CLAUDE.md, .mcp.json, or .claude/settings.json files are never silently overwritten β the script writes a <filename>.qring-template next to them so you can merge by hand. Pass --force to overwrite.
See claude-code-plugin/README.md for the full breakdown.
Architecture
qring CLI ββββββ
ββββΆ Core Engine βββΆ @napi-rs/keyring βββΆ OS Keyring
MCP Server βββββ β
βββ Envelope (quantum metadata)
βββ Scope Resolver (global / project / team / org)
βββ Collapse (env detection + branchMap globs)
βββ Observer (tamper-evident audit chain)
βββ Policy (governance-as-code engine)
βββ Noise (secret generation)
βββ Entanglement (cross-secret linking)
βββ Validate (provider-based liveness + rotation)
βββ Hooks (shell/HTTP/signal callbacks)
βββ Import (.env file ingestion)
βββ Exec (profile-restricted injection + redaction)
βββ Scan (codebase entropy heuristics)
βββ Provision (JIT ephemeral credentials)
βββ Approval (HMAC-verified zero-trust tokens)
βββ Context (safe redacted project view)
βββ Linter (secret-aware code scanning)
βββ Memory (encrypted agent persistence)
βββ Tunnel (ephemeral in-memory)
βββ Teleport (encrypted sharing)
βββ Agent (autonomous monitor + rotation)
βββ Dashboard (live status via SSE)Project Config (.q-ring.json)
Optional per-project configuration:
{
"env": "dev",
"defaultEnv": "dev",
"branchMap": {
"main": "prod",
"develop": "dev",
"staging": "staging",
"release/*": "staging",
"feature/*": "dev"
},
"secrets": {
"OPENAI_API_KEY": { "required": true, "description": "OpenAI API key", "format": "api-key", "prefix": "sk-", "provider": "openai" },
"DATABASE_URL": { "required": true, "description": "Postgres connection string", "validationUrl": "https://api.example.com/health" },
"SENTRY_DSN": { "required": false, "description": "Sentry error tracking" }
},
"policy": {
"mcp": {
"denyTools": ["delete_secret"],
"deniedKeys": ["PROD_DB_PASSWORD"],
"deniedTags": ["production"]
},
"exec": {
"denyCommands": ["curl", "wget"],
"maxRuntimeSeconds": 60
}
}
}branchMapsupports glob patterns with*wildcards (e.g.,release/*matchesrelease/v1.0)secretsdeclares the project's required secrets β useqring checkto validate,qring env:generateto produce a.envfileproviderassociates a liveness validation provider with a secret (e.g.,"openai","stripe","github") β useqring validateto testvalidationUrlconfigures the generic HTTP provider's endpoint for custom validationpolicydefines governance rules for MCP tool gating, key access restrictions, exec allowlists, and secret lifecycle requirements
π Docs
Troubleshooting β keyring backends, MCP connection, approval gate, policy pinning
CLI β MCP parity β every command mapped to its MCP tool
Releasing β tag-driven release flow
Stability β the 1.0 contract: what is frozen, experimental, deprecated, and supported
Contributing
See CONTRIBUTING.md for the full guide (dev environment, conventions, files to keep in sync). The short version:
Run
pnpm run lint,pnpm run typecheck, andpnpm run test:cibefore opening a PR.Tests or sandboxes can point the audit log elsewhere with
QRING_AUDIT_DIR(directory is created if missing); default is~/.config/q-ring/audit.jsonl.Optional local pre-commit:
qring hook:install(uses this packageβsprecommithook whenqringis on yourPATH).After changing one of the editor plugins:
Cursor:
pnpm run plugin:synccopiescursor-plugin/to~/.cursor/plugins/local/my-plugin(or pass a custom path).Kiro:
pnpm run plugin:sync:kirocopieskiro-plugin/mcp.jsonβ~/.kiro/settings/mcp.json, plussteering/andhooks/(or pass a project.kiropath). Prefer addingkiro-plugin/as a Power from the Powers panel instead.Claude Code:
pnpm run plugin:sync:claudecopiesclaude-code-plugin/into the current directory (or pass a project path; add--userto install at~/.claude/).
See also docs/cli-mcp-parity.md.
Stability
0.19 is the release candidate for 1.0. The CLI commands and flags, the MCP tool names and input schemas, the MCP resource URIs, the .q-ring.json format, the keyring record format, the environment variables, the exit codes and the [QRING:REDACTED] / [QRING:REDACTED:<KEY>] tokens are frozen; from 1.0 they change only as semver allows, and anything removed is deprecated with a warning for at least one minor first (silence the warnings with QRING_SILENCE_DEPRECATIONS=1). docs/stability.md lists exactly what is frozen, what stays experimental, what is deprecated in 0.19, and which versions receive fixes.
π Security
Local-first. Core storage is your OS keychain β there is no q-ring cloud and no account. The MCP surface, audit log, and agent memory live on your machine (audit and memory files are written owner-only,
0600).Written-down threat model. What q-ring protects, what it doesn't, and where the residual risk lives β including an honest answer to the agent-exfiltration question β in docs/threat-model.md.
Hardened by adversarial review. v0.14.0 shipped the results of an internal adversarial audit β policy-bypass, approval-scoping, and exec-profile findings all fixed, each with regression tests. Details are in the CHANGELOG
Securitysections (house style since 0.12.0: fix first, then disclose there).Reporting a vulnerability. Use GitHub private vulnerability reporting β see SECURITY.md for the supported-versions table and response commitments (48-hour acknowledgement, 7-day assessment).
π License
AGPL-3.0 - Free to use, modify, and share. Any derivative work or hosted service must release its source code under the same license.
Available Tools
46 toolsagent_forgetADestructiveIdempotent
[agent] Permanently delete a single key from encrypted agent memory. Use to retract obsolete or misremembered context; prefer overwriting via agent_remember when you just want to update the value, and use delete_secret for actual credentials (which never live in agent memory). Destructive: there is no recycle bin. Returns 'Forgot "KEY"' on success or a not-found error if the key was already absent.
Inputs: key (required).
agent_recallARead-onlyIdempotent
[agent] Read a value from encrypted agent memory, or list every stored key when no specific key is supplied. Use at the start of an agent loop to rehydrate prior context, or to look up a single remembered fact; prefer get_project_context for a redacted overview of secrets and get_secret for actual credential values. Read-only. With a key argument: returns JSON { ok, data: { key, value } } or a not-found error. Without key: returns a JSON listing of every stored key (no values), or 'Agent memory is empty'.
Inputs: key.
agent_rememberADestructiveIdempotent
[agent] Persist a non-secret key/value note in encrypted, on-disk agent memory that survives across MCP sessions. Use to record stable agent context β last rotation date for a key, the user's deployment preferences, decisions taken in earlier sessions; do NOT use this to store secrets (use set_secret instead) and prefer chat scratchpad for purely transient state. Mutates the encrypted memory store. Idempotent: rewriting the same key with a new value simply overwrites. Returns 'Remembered "KEY"' on success.
Inputs: key (required), value (required).
agent_scanADestructive
[agent] Run a multi-project health pass that gathers decay status, audit anomalies, and .q-ring.json manifest gaps across one or more project paths and (optionally) auto-rotates expired secrets with freshly generated values. Use as the canonical 'agent maintenance loop' across a portfolio of repos; prefer health_check for a single read-only scope, detect_anomalies for audit-only triage, and check_project for a single-project manifest check. With autoRotate=false (default) this is read-only. With autoRotate=true it OVERWRITES expired secret values in the keyring with generated replacements β credential changes that may break upstream integrations until they are propagated. Subject to tool policy. Returns a JSON report of per-project findings and any rotations performed.
Inputs: autoRotate, projectPaths.
analyze_secretsARead-onlyIdempotent
[agent] Cross-reference the secrets in scope with recent audit events to produce a usage profile and rotation/retirement suggestions. Use as a quarterly hygiene check or as input to a planner that decides what to rotate or delete; prefer health_check for decay-only triage and audit_log to inspect access timelines for one key. Read-only; uses the most recent ~500 audit events. Returns JSON { total, expired, stale, neverAccessed: [...], noRotationFormat: [...], mostAccessed: [{ key, reads }] }. neverAccessed and noRotationFormat are good candidates for cleanup or for adding rotation hints.
Inputs: orgId, scope, teamId, projectPath.
audit_logARead-onlyIdempotent
[audit] Query the q-ring audit log β a tamper-evident record of every read/write/delete touching a secret. Use to investigate 'who accessed KEY recently?' or to feed an agent the access timeline for a specific credential; prefer detect_anomalies for automated unusual-pattern detection and health_check for decay-state-plus-anomalies in one call. Read-only. Returns one line per event in chronological order, formatted timestamp | action | key | [scope] | env:NAME | detail. Returns 'No audit events found' when the filter matches nothing.
Inputs: key, agent, limit, action.
check_policyARead-onlyIdempotent
[policy] Ask whether a single intended action would be allowed by the project's .q-ring.json policy without actually performing it. Use as a dry-run before calling a potentially-blocked tool, attempting to read a sensitive key, or invoking exec_with_secrets with a non-trivial command; prefer get_policy_summary for a one-shot overview of the entire policy. Read-only. Returns JSON { allowed, reason?, policySource } describing the decision. Returns an error 'Missing required parameter for the selected action type' if the matching argument for the chosen action is not supplied.
Inputs: action (required), key, command, toolName, +1 more.
check_projectARead-onlyIdempotent
[project] Compare the keys declared in the project's .q-ring.json manifest against what is actually present in the keyring. Use as the canonical 'is this project ready to run' gate before starting a dev server, deploying, or onboarding a teammate; prefer health_check for a scope-wide decay sweep (no manifest), and agent_scan for multi-project scans with optional auto-rotation. Read-only; does not mutate the keyring or audit log materially beyond a 'list' read. Returns JSON { total, present, missing, expired, stale, ready, secrets: [...] } where ready is true only when nothing is missing or expired. Errors with 'No secrets manifest found in .q-ring.json' if the project has no manifest.
Inputs: projectPath.
ci_validate_secretsARead-onlyIdempotent
[validation] Validate every accessible secret in the requested scope against its detected provider in a single batch and return a structured pass/fail report. Use as a CI gate ('do all our credentials still work before deploy?') or as a pre-rotation health pass; prefer validate_secret for a single key. Side effects: one outbound request per validatable secret (cost scales with N). Reads each secret value (records 'read' audit events). Returns JSON { total, valid, invalid, results: [...] } listing per-key status, provider, and error messages where applicable. Returns 'No secrets to validate' if nothing in scope has a provider mapping.
Inputs: orgId, scope, teamId, projectPath.
delete_secretADestructiveIdempotent
[secrets] Permanently remove a secret value (and all its env states) from the keyring for the given scope. Use when a credential is being retired or was created in error; prefer disentangle_secrets to break a sync link without erasing values, remove_hook to detach lifecycle callbacks, and tunnel_destroy for ephemeral tunnels. Destructive and not undoable from q-ring (no built-in trash). Writes a 'delete' event to the audit log and fires matching hooks. Returns 'Deleted "KEY"' on success or a not-found error if the key did not exist in the requested scope. Subject to tool policy.
Inputs: key (required), orgId, scope, teamId, +1 more.
detect_anomaliesARead-onlyIdempotent
[audit] Scan the audit history for suspicious access patterns β burst reads of the same key, off-hours access, and other heuristics. Use as a quick triage signal when investigating a single key or before letting an agent rotate credentials; prefer health_check for a scope-wide decay+anomaly summary, and agent_scan for multi-project JSON reports with optional auto-rotation. Read-only; never mutates secrets or the audit log. Returns one line per finding formatted [type] description, or 'No anomalies detected' when the log looks clean.
Inputs: key.
detect_environmentARead-onlyIdempotent
[project] Resolve which environment slug (e.g. 'dev', 'staging', 'prod') the current invocation should collapse to. Use before reading secrets when you want to mirror the same env q-ring would auto-pick (e.g. to log it, or to pass through to another tool); prefer passing an explicit env to get_secret/env_generate when you already know which env you want. Read-only; checks the QRING_ENV env var, NODE_ENV, the project's .q-ring.json, and the current git branch in priority order. Returns JSON { env, source } (e.g. { env: 'dev', source: 'NODE_ENV' }), or a plain message indicating that no env could be detected.
Inputs: projectPath.
diff_environmentsARead-onlyIdempotent
[secrets] Compare two environments across the visible secrets and report, per key, whether the values are the same, different, or present on only one side β statuses only, never values. Use before a deploy or promotion to see environment drift; follow up with promote_secret per key. A single-value (collapsed) secret applies to every environment and is reported as 'collapsed'. Read-only apart from a 'list' audit event. Returns { a, b, entries: [{ key, scope, status }], summary, drift }.
Inputs: envA (required), envB (required), keys, orgId, +3 more.
disentangle_secretsAIdempotent
[secrets] Break the sync link between two previously entangled keys so future rotations no longer propagate. Use when one of the keys is being retired or should diverge intentionally; pair with delete_secret if you also want to erase one of the values, and use entangle_secrets to recreate the link. Mutates only metadata; the current values remain untouched. Safe and idempotent β running on a pair that was never linked returns success without effect. Subject to tool policy. Returns 'Disentangled: SOURCE </> TARGET'.
Inputs: sourceKey (required), targetKey (required), sourceScope, targetScope, +2 more.
entangle_secretsAIdempotent
[secrets] Link two keys (across the same or different scopes) so future writes/rotations of either propagate the same value to the other. Use when one logical credential lives under multiple names (e.g. STRIPE_SECRET_KEY global and project) and should never drift; prefer set_secret for unrelated values, and reverse the link with disentangle_secrets (does not delete values). Mutates only the metadata of both envelopes β the values themselves are not changed by this call. Idempotent: re-running on an already-entangled pair is a no-op. Subject to tool policy. Returns a short confirmation: 'Entangled: SOURCE <-> TARGET'.
Inputs: sourceKey (required), targetKey (required), sourceScope, targetScope, +2 more.
env_generateARead-onlyIdempotent
[project] Render a complete .env file body from the project's .q-ring.json manifest, resolving each declared key from the keyring. Use when a build step or local runtime needs a real .env materialized on disk and you want exactly the keys the manifest declares; prefer export_secrets when you want every key in scope (manifest-agnostic) and exec_with_secrets to inject secrets into a child process without writing them to a file. Reads values (records 'read' audit events) and collapses superposition for the requested env. Returns the raw .env text, with # MISSING (required): KEY / # EXPIRED: KEY / # STALE: KEY warnings appended as comments. Missing keys appear as commented-out # KEY= placeholders so the file remains a valid drop-in.
Inputs: env, projectPath.
exec_with_secretsADestructive
[exec] Run a child shell command with project secrets injected as environment variables and any leaked secret values redacted from captured stdout/stderr before they return to the agent. Use to let an agent run a script that needs credentials (npm run db:migrate, terraform plan, vercel deploy) without ever putting plaintext values in the chat; prefer env_generate if you need to write a .env file to disk and validate_secret for upstream liveness checks. Spawns a real child process β has whatever side effects the command itself causes (writes, network, exec). Subject to BOTH tool policy and exec policy (allowlist/denylist). Returns a text body with Exit code: N then STDOUT: and STDERR: blocks; both streams are scrubbed against the secret values that were injected (verbatim; base64/hex/URL/JSON-encoded for values up to 256 chars; 16+ char slices of each credential part, skipping credential parts longer than 1024 chars, where a whole opaque value counts as one part). A scrubbed value reads [QRING:REDACTED:<KEY_NAME>], naming the keyring key it came from. Which secrets are injected: when the project's .q-ring.json declares a secrets manifest, only the declared keys (intersected with keys); without one, only credential-shaped names (β¦_KEY, β¦_TOKEN, β¦_SECRET, β¦_PASSWORD, β¦_URL, β¦DSN, ...), and the result ends with a NOTE naming the skipped keys. On every path, keys named like process-control variables (NODE_OPTIONS, LD_PRELOAD, GIT*, MAVEN_OPTS, ...) or that are not plain identifiers are never injected.
Inputs: command (required), args, keys, tags, +5 more.
export_auditARead-onlyIdempotent
[audit] Export the audit log as a portable text artifact suitable for archiving or feeding into another SIEM/analyzer. Use for compliance exports, after-the-fact investigations, or to hand the trail to a non-MCP consumer; prefer audit_log for an in-conversation tail and verify_audit_chain to confirm integrity before exporting. Read-only. Returns the rendered text directly (no JSON wrapper). 'jsonl' is one event per line; 'json' is a single array; 'csv' is a header row plus events. Time filters are applied to the event timestamps before formatting.
Inputs: since, until, format.
export_secretsARead-onlyIdempotent
[secrets] Render multiple secrets as a single .env or JSON document for piping into another tool or file. Use to materialize secrets for a one-off export or copy; prefer env_generate when you want output driven by the project's .q-ring.json manifest, and teleport_pack for an encrypted bundle to share between machines. Reads values (collapses superposition for the requested env) and writes one 'export' event per included secret to the audit log. Returns the rendered text directly (no JSON wrapper). Returns an error if no secrets matched the filters. Values are surfaced in plaintext β handle with care.
Inputs: env, keys, tags, orgId, +4 more.
generate_secretADestructive
[secrets] Generate a cryptographically random secret using Node's CSPRNG and optionally store it in the keyring in one step. Use to create new credentials that you control (signing keys, internal tokens, passwords); for issuer-issued credentials (Stripe/OpenAI etc.) use rotate_secret to ask the upstream provider for a fresh key, and use set_secret for values you already have in hand. If saveAs is provided this mutates the keyring (one 'write' event) and returns a summary like 'Generated and saved as "KEY" (FORMAT, ~N bits entropy)'. Without saveAs the call is read-only and returns JSON { ok, data: { value } } containing the freshly generated string.
Inputs: orgId, scope, format, length, +4 more.
get_policy_summaryARead-onlyIdempotent
[policy] Return a high-level summary of the project's .q-ring.json governance policy β counts of allow/deny rules for tools, key reads, exec commands, plus approval and rotation requirements. Use to orient an agent (or the user) on what guardrails are active before attempting policy-restricted actions; prefer check_policy for a precise per-action verdict. Read-only. Returns pretty-printed JSON; missing policy file returns an empty/default summary rather than an error so callers can branch on the counts.
Inputs: projectPath.
get_project_contextARead-onlyIdempotent
[agent] Return a single redacted snapshot of everything an AI agent typically wants to know about this project: secrets present (keys + metadata only), detected env, manifest declarations, configured providers, registered hooks, and recent audit activity. Use this as the very first call in a session to orient the agent before it asks for any individual secret; prefer list_secrets for a flat key listing, check_project for manifest-vs-keyring drift, and audit_log for a deeper access trail. Read-only and value-safe β no plaintext secret values are ever included. Returns a single pretty-printed JSON document; shape is intentionally broad and may grow over time, so read defensively.
Inputs: orgId, scope, teamId, projectPath.
get_secretARead-onlyIdempotent
[secrets] Read the plaintext value of a single secret from the q-ring keyring. Use when an agent needs the actual credential to call an external API or inject into a runtime; prefer inspect_secret to see metadata only, has_secret for presence-only checks, and exec_with_secrets to run a command without exposing the value to chat. Side effects: collapses superposition (selects the per-env state) and writes a 'read' event to the audit log (observer effect). Subject to project tool/key policy and may be denied with a 'Policy Denied' message. Returns JSON { ok, data: { key, value } } on success or an error message if missing/blocked.
Inputs: key (required), env, orgId, scope, +2 more.
has_secretARead-onlyIdempotent
[secrets] Check whether a secret exists in the requested scope without reading the value. Use as a cheap precondition before reading or writing β for example, to skip prompting the user for a key that is already configured. Prefer inspect_secret when you also need metadata. Read-only; does not record a 'read' in the audit log. Decay-aware: returns 'false' for expired secrets even though the value is still in the store. Returns the literal text 'true' or 'false'.
Inputs: key (required), orgId, scope, teamId, +1 more.
health_checkARead-onlyIdempotent
[health] Run a single read-only sweep over every secret in the requested scope and report counts of healthy/stale/expired secrets plus any current audit anomalies. Use as the default 'is everything OK?' command for an agent or operator; prefer check_project to validate manifest compliance specifically, detect_anomalies for audit-only triage, and agent_scan for multi-project JSON output or optional auto-rotation. Read-only β never writes. Returns a multi-line text summary: header counts (Total / Healthy / Stale / Expired / No decay / Anomalies), then per-secret EXPIRED: / STALE: issue lines, then per-anomaly [type] description lines.
Inputs: orgId, scope, teamId, projectPath.
import_dotenvAIdempotent
[secrets] Parse standard dotenv-formatted text and store each key/value pair into the keyring in one batch. Use when migrating an existing .env file into q-ring or onboarding a new project; prefer set_secret for a single key, and teleport_unpack to import an encrypted bundle. Mutates the keyring (one write per parsed key) and emits a 'write' audit event for each. Supports comments, single/double quotes, and \n escapes. Returns a multiline summary listing imported keys and any skipped (existing) keys; in dryRun mode no writes happen and the same summary is produced for review.
Inputs: content (required), scope, dryRun, projectPath, +1 more.
inspect_secretARead-onlyIdempotent
[secrets] Show full metadata for a single secret β env states, decay window, entanglement links, access counters β without ever revealing the value. Use when you need to understand the shape of a key before reading it or to debug 'why is this expired/stale'; prefer get_secret for the actual value, list_secrets for a many-key overview, and audit_log for the full access timeline. Read-only; does not write a 'read' event since the value is not exposed. Returns pretty-printed JSON with fields: key, scope, type ('superposition'|'collapsed'), created, updated, accessCount, lastAccessed, environments, defaultEnv, decay { expired, stale, lifetimePercent, timeRemaining }, rotation { lastRotatedAt, ageDays, rotateEveryDays, dueAt, daysUntilDue, state: 'ok'|'due-soon'|'overdue'|'unscheduled' }, entangled, description, tags. Errors with not-found if the key is absent.
Inputs: key (required), orgId, scope, teamId, +1 more.
lint_filesADestructiveIdempotent
[scan] Inspect a specific list of files for hardcoded secrets and, when fix is true, replace each finding with process.env.KEY while storing the extracted value into the keyring. Use to migrate a known set of files (e.g. just-changed files in a pre-commit hook) into q-ring; prefer scan_codebase_for_secrets for a whole-tree audit and import_dotenv to ingest an existing .env. With fix: false this is read-only. With fix: true this MUTATES the listed source files in place (review with git diff!) and writes one new secret per finding to the keyring. Returns a JSON array of { file, line, key, value, kind } findings, or 'No hardcoded secrets found in the specified files.'.
Inputs: files (required), fix, orgId, scope, +2 more.
list_hooksARead-onlyIdempotent
[hooks] Enumerate every registered lifecycle hook with its match criteria, delivery type, enabled flag, and description. Use to find a hook's id before calling remove_hook, audit what side effects are wired up, or diagnose why a hook did not fire. Read-only. Returns pretty-printed JSON array of hook entries, or 'No hooks registered' when the registry is empty.
Inputs: no named parameters.
list_providersARead-onlyIdempotent
[validation] Enumerate the secret-validation providers q-ring knows how to call (OpenAI, Stripe, GitHub, β¦) along with their auto-detect prefixes. Use to discover what provider string to pass to validate_secret/rotate_secret, or to check whether your custom provider is registered. Read-only. Returns JSON array of { name, description, prefixes } objects. prefixes are the literal key-value prefixes (e.g. 'sk-' for OpenAI) used for auto-detection.
Inputs: no named parameters.
list_secretsARead-onlyIdempotent
[secrets] List secret keys and quantum metadata in the requested scope, never the values. Use to discover what secrets exist before reading or writing; pair with inspect_secret for full metadata on one key, analyze_secrets for usage trends, or health_check for decay/anomaly summaries. Read-only; safe to call repeatedly. Returns JSON { ok, data: { entries: [...] } } where each entry has scope, key, stateKeys (env names if superposed), expired, stale, lifetimePercent, timeRemaining, entangledCount, accessCount, and emptyStored: true when the stored value is empty (lost by the OS keyring; reading it fails, set it again).
Inputs: tag, orgId, scope, stale, +4 more.
promote_secretADestructiveIdempotent
[secrets] Copy one secret's value from a source environment to a target environment (superposition states), e.g. staging β prod, without the value ever leaving the keyring. Use when an environment must match another for a single key; use diff_environments first to see what differs. Refuses to overwrite a differing target unless force is true; a target that already matches is a no-op. Mutates the keyring (one 'write' audit event, hooks fire) only when the target changes. Returns { key, scope, from, to, previous: 'absent'|'same'|'different', changed }. Never returns the value.
Inputs: to (required), key (required), from (required), force, +4 more.
register_hookA
[hooks] Register a side-effect (shell command, HTTP webhook, or process signal) that fires automatically when a matching secret is written, deleted, or rotated. Use to keep external systems in sync (restart a service after rotation, post to Slack on delete, kick a build); prefer agent_remember for storing facts an agent should recall later, and register_hook is not the right tool for time-based scheduled rotation (use agent_scan for that). Mutates the hook registry on disk. At least one match criterion (key, keyPattern, or tag) is required β calls without any return an error. Returns JSON of the registered hook entry including its assigned id (use that id with remove_hook). shell and signal hooks registered here start DISABLED (enabled: false): they run commands or signal processes outside exec policy, so the operator must review and arm them with qring hook enable <id>. http hooks are SSRF-guarded, carry no values, and start enabled.
Inputs: type (required), key, tag, url, +7 more.
remove_hookADestructiveIdempotent
[hooks] Detach a single lifecycle hook by its registry id so it stops firing. Use to retire a specific webhook/command without touching any secrets; prefer delete_secret to remove a credential and tunnel_destroy for ephemeral tunnels. Mutates the hook registry only β does not touch secret values, audit log, or env states. Idempotent in spirit: removing an already-absent id returns a not-found error rather than partial work. Returns 'Removed hook ID' on success.
Inputs: id (required).
rotate_secretADestructive
[validation] Ask the upstream provider to issue a fresh credential for this secret and store the new value back into the keyring. Use when a secret is expiring, leaked, or part of a scheduled rotation; prefer generate_secret for self-managed values you fully control, and agent_scan --autoRotate for sweep-style rotation across multiple expired keys. Mutates the keyring with the newly-issued value if rotation succeeds (one 'write' audit event), and makes outbound network requests against the provider's rotation API. Returns JSON { rotated, newValue?, message?, ... }. If rotated is false, the existing value is left untouched.
Inputs: key (required), orgId, scope, teamId, +2 more.
scan_codebase_for_secretsARead-onlyIdempotent
[scan] Walk a directory tree and flag plausible hardcoded secrets using regex heuristics plus Shannon-entropy scoring on string literals. Use as a one-shot 'is anything leaking in this repo?' audit before commit/release; prefer lint_files when you already know the specific files to check (and want optional auto-fix). Read-only β never modifies source files. Honors .gitignore. Returns JSON array of { file, line, key, value, kind } findings, or 'No hardcoded secrets found in the specified directory.' when clean. False positives are possible β review before treating as ground truth.
Inputs: dirPath (required).
set_secretADestructiveIdempotent
[secrets] Create or overwrite a single secret value, optionally with TTL/decay, per-env superposition, description, tags, and rotation hints. Use to add or update one key at a time; prefer import_dotenv for bulk .env ingest, generate_secret (with saveAs) to generate-and-store in one step, and entangle_secrets instead of duplicating the same value under two keys. Mutates the keyring (overwrites any existing value at the same key/scope), writes a 'write' event to the audit log, and triggers any matching hooks. Subject to tool policy. Returns a short confirmation text like '[scope] KEY saved' (or '[scope] KEY set for env:NAME' when env is provided).
Inputs: key (required), value (required), env, tags, +10 more.
status_dashboardA
[dashboard] Start a local web dashboard (http://127.0.0.1:PORT) that streams live KPIs, secret tables, manifest gaps, hooks, audit events, and anomalies via Server-Sent Events. Use when an operator (or an agent on behalf of one) wants a richer visual surface than chat output; prefer health_check / analyze_secrets for one-shot text summaries inside the conversation. Side effect: binds an HTTP server on the requested port (one process-wide instance β re-running returns the existing URL instead of starting a second server). Never exposes secret values. Returns the URL string to open in a browser.
Inputs: port.
teleport_packARead-onlyIdempotent
[teleport] Encrypt one or more secrets into a single AES-256-GCM bundle string that can be safely transferred between machines. Use to hand off a curated set of credentials to another developer or environment; prefer export_secrets for plaintext .env output (single machine, trusted) and tunnel_create for ephemeral one-shot delivery on the same machine. Two modes, exactly one required: passphrase (v1, symmetric β receiver needs the same string) or recipients (v2, public-key β each receiver's qring1... string from qring teleport identity; no shared secret, only the listed identities can open it). Reads each secret value (records 'export' audit events) and produces a base64-encoded ciphertext. Returns the bundle string directly. Errors with 'No secrets to pack' if the filter matched zero secrets.
Inputs: keys, orgId, scope, teamId, +3 more.
teleport_unpackADestructiveIdempotent
[teleport] Decrypt a bundle produced by teleport_pack and import each contained secret into the local keyring. Use on the receiving machine after a packer hands you the bundle; prefer dryRun=true first to preview what will be written. Passphrase (v1) bundles need passphrase. Recipient (v2) bundles need no input: this machine's teleport identity is read from the OS keyring (create one with qring teleport keygen; the private key is never returned). When dryRun is false this mutates the keyring (one 'write' event per imported secret) at the requested scope. Bad passphrase, missing identity, not-a-recipient or tampered bundle returns JSON { ok: false, error: { message } } with isError: true. On success returns 'Imported N secret(s) from teleport bundle'; in dryRun mode returns 'Would import N secrets:' followed by a KEY [scope] listing (v2 also lists the recipient ids the bundle is addressed to).
Inputs: bundle (required), orgId, scope, dryRun, +3 more.
tunnel_createA
[tunnel] Stash a one-shot or short-lived secret in the q-ring server's process memory and return an ID that can be used to read it back. Use for handing a one-time value to another tool/process without persisting it (npm OTP codes, magic-link tokens, copy/paste between machines via a relay); prefer set_secret with ttlSeconds when you actually want a tracked, auditable secret. Mutates only in-memory state β the value never touches disk and is lost on server restart. Subject to tool policy. Returns JSON { ok, data: { id } } where id is an opaque string to pass to tunnel_read/tunnel_destroy.
Inputs: value (required), maxReads, ttlSeconds.
tunnel_destroyADestructiveIdempotent
[tunnel] Immediately remove a tunnel from memory, regardless of remaining reads or TTL. Use when a tunneled value should be cancelled before delivery (e.g. wrong recipient, secret already rotated); prefer letting maxReads/TTL handle cleanup for normal flows. Mutates in-memory state only. Returns 'Destroyed ID' on success or a not-found error if the ID is unknown or already gone.
Inputs: id (required).
tunnel_listARead-onlyIdempotent
[tunnel] Enumerate all currently-active tunnels in the q-ring server with their remaining read budget and time-to-live. Use to audit what is still in memory or to look up an ID you forgot; values are never included in the output. Read-only. Returns one line per tunnel formatted as id | reads:N | max:N | expires:Ns, or the literal text 'No active tunnels' when the list is empty.
Inputs: no named parameters.
tunnel_readADestructive
[tunnel] Fetch the value stashed by a prior tunnel_create call by its ID. Use exactly once per intended consumer; the value is destructive-by-design and may self-delete after this call. Increments the read counter and may auto-destroy the tunnel if maxReads was set. Returns JSON { ok, data: { id, value } } on success, or an error 'Tunnel "..." not found or expired' if the tunnel has been destroyed, hit its TTL, or never existed.
Inputs: id (required).
validate_secretARead-onlyIdempotent
[validation] Test whether a stored secret is still accepted by its upstream service (OpenAI, Stripe, GitHub, AWS, generic HTTP, etc.) by making a minimal authenticated request. Use to confirm liveness before relying on a credential or as the verification step after rotate_secret; prefer ci_validate_secrets for a batch run across every key in scope. Side effects: makes one outbound network request per call (may incur tiny provider-side rate-limit cost). Records 'read' for the underlying secret value in the audit log; the value itself is never logged. Returns JSON { valid, provider, status?, message?, rateLimit?, ... } (provider-specific shape).
Inputs: key (required), orgId, scope, teamId, +2 more.
verify_audit_chainARead-onlyIdempotent
[audit] Recompute the SHA-256 hash chain over the audit log and confirm no event has been mutated, deleted, or reordered. Use periodically as a tamper-evidence check, or whenever you suspect the audit log has been touched outside q-ring; the result is informational β this tool does not repair the chain if it is broken. Read-only. Returns JSON { ok, valid, brokenAt? } where valid is true for an intact chain and brokenAt (when present) names the first event whose hash did not match.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 46 tools
Descriptions are unusually explicit and cross-reference alternatives, so most tools are distinguishable. However, with 46 tools there are several overlapping clusters (health_check/check_project/agent_scan/analyze_secrets, export_secrets/env_generate/teleport_pack, validate_secret/ci_validate_secrets) that require careful reading.
Almost all names are snake_case with verb_noun or category_verb_noun patterns. Minor deviations like health_check, status_dashboard, and audit_log are still readable, and category prefixes (tunnel_, teleport_, agent_) are used consistently within groups.
46 tools is far above the 3-15 well-scoped range; the surface spans secrets, tunnels, teleport, audit, hooks, validation, policy, exec, scanning, dashboard, and agent memory. Each may earn its place, but the set is heavy for an agent to navigate.
Covers the full secret lifecycle: create/read/update/delete, metadata, generation, rotation, validation, import/export, environment promotion, audit, hooks, policy, and scanning. No obvious dead ends for the stated secret-management purpose.
Maintenance
Related MCP Connectors
A secret store for AI agents: the agent never sees the plaintext.
Secrets for developers and agentsβsecure context and workflows without exposing secret values.
Encrypted secret store and rotation for autonomous agent credentials
Password vault for AI agents with scoped, user-approved access
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides Claude Code with access to personal secrets and notes stored in a local Markdown file. It enables users to list, search, retrieve, and update secret sections through natural language commands.515 npmMIT
- AlicenseAqualityBmaintenanceShare encrypted, self-destructing secrets from your AI agent. Zero-knowledge E2E encryption. Agent-blind input sources (env:, file:, dotenv:) keep secrets out of LLM context.438 npm1MIT
- AlicenseAqualityBmaintenanceLocal AES-256-GCM encrypted vault for AI agents. Resolve {{PLACEHOLDER}} secrets in prompts at runtime β LLMs never see real API keys. Argon2id key derivation, zero cloud.270 npm7MIT
- AlicenseBqualityBmaintenanceEncrypted secrets vault that blinds AI agents to API keys. Stores secrets in AES-256-GCM encrypted SQLite vault, resolves them at runtime via MCP values never appear in LLM conversation transcripts. Sandbox .env files with deterministic fakes.27133 npm3MIT