q-ring
What it does
OS keychain secrets for AI coding agents, over MCP.
- Connects 在你的电脑上运行
- Account or key Needs QRING_FILE_PASSPHRASE
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 q-ring 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "q-ring": { "command": "npx", "args": [ "-y", "@i4ctime/q-ring" ], "env": { "QRING_BACKEND": "your-value", "QRING_FILE_PASSPHRASE": "your-value", "QRING_FILE_BACKEND_PATH": "your-value", "QRING_CONFIG_DIR": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 q-ring 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 q-ring,或回答中出现 q-ring 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 q-ring
q-ring 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 q-ring 的应用
- 需要 q-ring 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 q-ring 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 q-ring 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 q-ring 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 q-ring 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user q-ring --env QRING_BACKEND=your-value --env QRING_FILE_PASSPHRASE=your-value --env QRING_FILE_BACKEND_PATH=your-value --env QRING_CONFIG_DIR=your-value -- npx -y @i4ctime/q-ring按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 q-ring 在列表中并显示已连接
试一试
用 q-ring 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 q-ring,或回答中出现 q-ring 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 q-ring 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
填写你的密钥
在 q-ring 的设置中,QRING_BACKEND, QRING_FILE_PASSPHRASE, QRING_FILE_BACKEND_PATH, QRING_CONFIG_DIR 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 q-ring 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 q-ring,或回答中出现 q-ring 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 q-ring 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
填写你的密钥
在 q-ring 的设置中,QRING_BACKEND, QRING_FILE_PASSPHRASE, QRING_FILE_BACKEND_PATH, QRING_CONFIG_DIR 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 q-ring 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 q-ring,或回答中出现 q-ring 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user q-ring --env QRING_BACKEND=your-value --env QRING_FILE_PASSPHRASE=your-value --env QRING_FILE_BACKEND_PATH=your-value --env QRING_CONFIG_DIR=your-value -- npx -y @i4ctime/q-ringClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"q-ring": {
"command": "npx",
"args": [
"-y",
"@i4ctime/q-ring"
],
"env": {
"QRING_BACKEND": "your-value",
"QRING_FILE_PASSPHRASE": "your-value",
"QRING_FILE_BACKEND_PATH": "your-value",
"QRING_CONFIG_DIR": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"q-ring": {
"command": "npx",
"args": [
"-y",
"@i4ctime/q-ring"
],
"env": {
"QRING_BACKEND": "your-value",
"QRING_FILE_PASSPHRASE": "your-value",
"QRING_FILE_BACKEND_PATH": "your-value",
"QRING_CONFIG_DIR": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"q-ring": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@i4ctime/q-ring"
],
"env": {
"QRING_BACKEND": "your-value",
"QRING_FILE_PASSPHRASE": "your-value",
"QRING_FILE_BACKEND_PATH": "your-value",
"QRING_CONFIG_DIR": "your-value"
}
}
}
}需要你填写的值
QRING_BACKENDenvSecret storage backend. Defaults to the OS keychain; set to "file" for headless hosts with no Secret Service (CI, containers).QRING_FILE_PASSPHRASE机密 envPassphrase for the encrypted file backend (AES-256-GCM). Required only when QRING_BACKEND=file — without it the file backend fails closed.QRING_FILE_BACKEND_PATHenvCustom path for the encrypted file store (default: ~/.config/q-ring/file-backend.enc).QRING_CONFIG_DIRenvDirectory for q-ring's registries — hooks, entanglement, approvals, canary webhooks, agent memory (default: ~/.config/q-ring).
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 I4cTime 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于3天前
- ✓ 通过
有许可证
使用 AGPL-3.0
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5808 个服务器的 85%
- 发布到注册中心的时间比此分类中其他 5808 个服务器的 73% 更新
- 基础检查结果等于或优于此分类中其他 5808 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
q-ring 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:QRING_FILE_PASSPHRASE
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于3天前,最新版本(0.19.0)于7天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:REA, GitHub, Serena MCP: the IDE for your agent
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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](https://qring.i4c.studio/docs) 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/qring
Docker (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-mcp
Note: 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.
⚡ 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, fish
Quantum 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_KEY
Environment 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 --json
MCP 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 variable- Git branch heuristics (
main/master→ prod,develop→ dev) .q-ring.jsonproject config- Default 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.json
Quantum 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 health
Observer 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.csv
Quantum 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_KEY
Entanglement — 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_BACKUP
Tunneling — 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 list
Teleportation — 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 --dry-run
Import — 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-run
Selective 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 json
Secret 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