SUNGLASSES
Input firewall for AI agents: scan text and files before they're read. Local, no network by default.
作者提供的说明(英文原文)
HSM-backed vault secrets for AI agents (JIT fetch) plus prompt-injection and threat scanning.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
ONECLAW_AGENT_API_KEY, ONECLAW_AGENT_ID, ONECLAW_VAULT_ID, ONECLAW_BASE_URL, ONECLAW_LOCAL_ONLY标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"1claw": {
"command": "npx",
"args": [
"-y",
"@1claw/mcp"
],
"env": {
"ONECLAW_AGENT_API_KEY": "your-value",
"ONECLAW_AGENT_ID": "your-value",
"ONECLAW_VAULT_ID": "your-value",
"ONECLAW_BASE_URL": "your-value",
"ONECLAW_LOCAL_ONLY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add 1claw --env ONECLAW_AGENT_API_KEY=your-value --env ONECLAW_AGENT_ID=your-value --env ONECLAW_VAULT_ID=your-value --env ONECLAW_BASE_URL=your-value --env ONECLAW_LOCAL_ONLY=your-value -- npx -y @1claw/mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"1claw": {
"command": "npx",
"args": [
"-y",
"@1claw/mcp"
],
"env": {
"ONECLAW_AGENT_API_KEY": "your-value",
"ONECLAW_AGENT_ID": "your-value",
"ONECLAW_VAULT_ID": "your-value",
"ONECLAW_BASE_URL": "your-value",
"ONECLAW_LOCAL_ONLY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"1claw": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@1claw/mcp"
],
"env": {
"ONECLAW_AGENT_API_KEY": "your-value",
"ONECLAW_AGENT_ID": "your-value",
"ONECLAW_VAULT_ID": "your-value",
"ONECLAW_BASE_URL": "your-value",
"ONECLAW_LOCAL_ONLY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
ONECLAW_AGENT_ID envONECLAW_VAULT_ID envONECLAW_BASE_URL envONECLAW_LOCAL_ONLY env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
注册名称已通过 GitHub 账户 1clawAI 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:ONECLAW_AGENT_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.56.3)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:SUNGLASSES, KillerSkills, Draugr
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Input firewall for AI agents: scan text and files before they're read. Local, no network by default.
Security verdicts for agent skills and MCP servers, from sandbox runs, before you install them.
Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
⭐ Star [1clawAI/agent-templates](https://github.com/1clawAI/agent-templates) — ready-to-run agent templates wired to 1Claw. It is our single starred repo.
Connect Cursor, Claude Desktop, VS Code, or any MCP client to your 1claw vault. The server exposes tools for secrets, signing, execution bindings, memory, automations, and more. Values are fetched at call time and are not cached in the model's context beyond the moment they are used.
Most teams use this instead of copying API keys into agent prompts or MCP config files. You register an agent, grant policy access to specific secret paths, and point the client at mcp.1claw.co or a local stdio process. The server handles JWT exchange and refresh from a single ocv_ key.
Local-only mode: Run without vault credentials for the security inspection tools only (e.g. inspect_content). Useful with Ollama or LM Studio when you want injection detection without a 1claw account.
Local daemon mode: Point at the local 1claw daemon (ONECLAW_LOCAL_VAULT=true) so secrets never leave your machine. The daemon injects credentials into outbound HTTP requests; the model never sees the raw value.
API contract: Vault tools use the REST API from @1claw/openapi-spec. LLM traffic through Shroud is separate: agents call https://shroud.1claw.co with X-Shroud-Agent-Key and `X-Shroud-Provider` (required; e.g. openai). When the MCP server exchanges an agent API key for a JWT, that token may carry `shroud_config` for Shroud's PolicyEngine; MCP itself does not proxy LLM requests.
The server supports two transport modes:
| Mode | Use case | Auth |
|---|---|---|
| stdio (default) | Local — Claude Desktop, Cursor | Env: ONECLAW_AGENT_API_KEY (recommended; auto-discovers agent + vault) or ONECLAW_AGENT_ID + key; or ONECLAW_AGENT_TOKEN + ONECLAW_VAULT_ID |
| httpStream | Hosted at mcp.1claw.co | Per-request headers: Authorization: Bearer , X-Vault-ID |
Set MCP_TRANSPORT=httpStream and PORT=8080 to run in hosted mode.
stdio and environment: The server does not cache a single vault client for the whole process. Each tool invocation builds a OneClawClient from the current process.env (ONECLAW_AGENT_API_KEY, ONECLAW_VAULT_ID, etc.), so changing env vars (or vault binding) takes effect on the next call without restarting the MCP process.
Agent environment auto-resolve (v0.52): When an agent is tagged with environment and env_auto_resolve: true, the resolve_env tool can omit environment and the Vault API uses the agent's tag from the JWT. Org setting env.enforce_agent_environment_scope blocks agents from resolving vars outside their tagged environment.
Policy engine v0.53: Access policies support policy_schema_version: 2 with expression-based tx_conditions.expression (mini DSL), expanded control-plane action_kind_in consensus triggers, and multi-chain deep decode (Solana, Bitcoin, Tron) for signing-time policy evaluation. TEE attestation is available at GET https://shroud.1claw.co/v1/shroud/attestation (returns attestation_level: none | identity | confidential | sev_snp plus confidential_claims); audit chain verification at GET /v1/audit/verify.
Graduated HITL (v0.54–0.55): Agent guardrail fields include tx_approval_policy (graduated tx thresholds → 202 awaiting_approval), typed_data_policy, simulation_failure_policy, and raw_signing_policy (deny or route to HITL via approve). Extended v0.55 fields: tx_block_unlimited_approvals, per-recipient limits, USD caps, allow_erc4337, allow_eip7702. Humans approve via dashboard or API; org freeze at POST /v1/org/freeze.
Guardrail governance & Safe (v0.56–0.57): Convention 6 execution shadow/enforce; shadow report, revisions, replay; address screening; guardrail widening approvals (202); agent Safe accounts + module registry MCP tools (list_agent_accounts, migrate_agent_to_safe, get_guardrail_shadow_report, etc.). See package README tool table.
brew install 1clawAI/tap/1claw-mcp
cd packages/mcp
pnpm install pnpm run build
| Variable | Required | Default | Description |
|---|---|---|---|
ONECLAW_AGENT_API_KEY | stdio* | — | Recommended. Agent API key (ocv_...). Server exchanges it for a JWT, auto-discovers agent ID and vault, and refreshes the token automatically. |
ONECLAW_LOCAL_ONLY | No | false | Set to true for security-only mode (no vault credentials needed). |
ONECLAW_LOCAL_VAULT | No | false | Set to true to use the local daemon instead of the cloud API. |
ONECLAW_DAEMON_SOCKET | No | ~/.config/1claw/daemon.sock | Path to the local daemon Unix socket (local daemon mode only). |
ONECLAW_AGENT_ID | No | — | Agent UUID. Optional with ONECLAW_AGENT_API_KEY (auto-discovered from key). |
ONECLAW_AGENT_TOKEN | stdio* | — | Legacy. Static Bearer JWT (expires in ~1 h, no auto-refresh). |
ONECLAW_VAULT_ID | No | — | UUID of the vault. Auto-discovered when using ONECLAW_AGENT_API_KEY. |
ONECLAW_DPOP | No | false | Set to true to enable DPoP (RFC 9449) proof-of-possession. Binds agent tokens to the MCP client's ephemeral P-256 keypair so stolen tokens are unusable without the matching private key. |
ONECLAW_BASE_URL | No | https://api.1claw.co | Vault API base URL. Agents with intents_require_tee / execution_require_tee need no special value here: the vault forwards their intents to Shroud itself (vault ≥ 0.61.19). Set it to Shroud (https://shroud.1claw.co) only for a DPoP-bound token or a self-hosted deployment that routes signing there. |
ONECLAW_MCP_TOOLSETS | No | entitlement defaults | Comma list of toolsets to expose (or all). Narrows or opts in; never widens past the agent's entitlements. See Toolsets. Hosted: send X-1Claw-Toolsets instead. |
MCP_TRANSPORT | No | stdio | Transport mode: stdio or httpStream. |
PORT | No | 8080 | HTTP port (httpStream mode only). |
\* For stdio, set `ONECLAW_AGENT_API_KEY` (recommended — auto-discovers agent ID and vault, handles token refresh). Alternatively, set ONECLAW_AGENT_TOKEN + ONECLAW_VAULT_ID for static JWT auth. Not needed when ONECLAW_LOCAL_ONLY=true or ONECLAW_LOCAL_VAULT=true.
The server ships 160 tools (add proxy_request in local daemon mode) but a session only ever sees the toolsets it is entitled to — a vault-only agent is offered ~24 tools, not 160. `inspect_content` also runs in `ONECLAW_LOCAL_ONLY=true` mode without vault credentials. Also includes the vault://secrets resource.
Two narrower builds of this same tree are published in lockstep, for stdio deployments where the claim has to be true of the code on disk:
| Package | Contains | Claim |
|---|---|---|
@1claw/mcp-vault | vault + approvals toolsets, inspect_content, vault://secrets (24 tools) | no signing, execute, cards, memory, platform or admin code in the package |
@1claw/mcp-guard | inspect_content only | no account, no credentials, no vault client in the package |
Same env vars and behaviour; see packages/vault/README.md and packages/guard/README.md. The hosted server at mcp.1claw.co is always the umbrella.
Every tool belongs to one toolset (src/toolsets.ts). Which toolsets a session gets is decided from the agent's own flags, once at admission, and re-checked every 15 minutes and after any 403 from the vault (hosted sessions then receive notifications/tools/list_changed).
| Toolset | On when | Tools |
|---|---|---|
inspect | always | inspect_content |
vault | any agent | secrets, versions, rotation, env bundles, vaults, sharing, connected accounts, child agents (~19) |
approvals | any agent | request_approval, get_approval_status, get_approval, list_approvals, cancel_approval, list_pending_approvals |
intents | intents_api_enabled | signing, simulation, submission, signing keys, portfolio, Safe accounts, Bankr lease (~18) |
execute | execution_intents_enabled | bindings, execute_http, execute_intent, executions, connectors, event subscriptions (8) |
cards | cards_enabled | cards and gift cards (5) |
memory | memory_enabled | memory + get_peer_context (6) |
channels | shroud_enabled | Telegram / WhatsApp / Discord channels (3) |
directory | discoverable | agent directory + job board (4) |
treasury, delegation, chat, automations, runtimes, notification | opt-in only | the vault has no per-agent flag for these; ask for them explicitly |
admin | never on an agent | human-only endpoints (policies, sub-orgs, approval votes, Safe migration…) — only a user JWT over stdio sees them |
platform | never | plt_ endpoints; the server rejects platform keys |
Choosing toolsets explicitly. Set ONECLAW_MCP_TOOLSETS (stdio) or send X-1Claw-Toolsets (hosted) with a comma list, e.g. vault,intents,automations, or all. A selection can narrow the defaults or opt into the opt-in sets; it can never add a toolset the agent is not entitled to, and all still excludes admin and platform. inspect is always included.
When `execution_require_tee` is set the vault refuses to hand this agent secret *values* outside a TEE, so get_secret, get_env_bundle and resolve_env are hidden; put_secret, rotate_*, describe_secret, list_secrets and list_versions stay.
Degraded lookups. The server logs one line per session: toolsets=… lookup=full|jwt_only|failed. jwt_only means the agent profile could not be read and only the flags carried in the signed JWT (intents, execute, shroud) were honoured — cards, memory and directory are withheld until the next refresh. failed means not even a token was obtained; the session falls back to the agent defaults. Neither state ever widens a toolset.
stdio. The toolset is fixed when the process starts; restart the MCP server after changing an agent's flags.
| Tool | Description |
|---|---|
list_secrets | List all secrets (metadata only — never values) |
get_secret | Fetch the decrypted value of a secret by path. Accepts optional client_share for MPC vaults. |
put_secret | Create or update a secret (creates a new version). Response includes client_share when the vault has MPC enabled. |
| delete_secret | Soft-delete a secret at a path
只显示了开头部分;其余内容请在仓库中阅读