
Janee
io.github.rsdouglas由 GitHub 账号 rsdouglas 发布v0.8.5更新于 Oct 24, 2026
Secure secrets proxy for AI agents — manages API keys so agents never see raw credentials.
概览
Janee 是一个本地密钥代理,让 AI 助手在不接触原始凭据的情况下调用 API 并运行 CLI 工具。
- 可以做什么
- Janee 将 API 密钥加密保存在本机,并暴露 list_services、execute、exec、manage_credential 和 reload_config 等 MCP 工具。助手请求某个 capability 后,Janee 会把真实凭据注入 HTTP 请求或启动的 CLI 进程,只返回响应或 stdout/stderr。它支持 bearer、basic、自定义请求头、交易所 HMAC 签名、Google 服务账号、GitHub App 令牌、Twitter/X OAuth 1.0a 和 AWS SigV4,并提供按 capability 的请求允许/拒绝规则、会话 TTL、代理白名单和审计日志。
- 适用场景
- 当助手需要访问第三方 API 或 CLI 工具,但你不希望原始密钥进入模型上下文时使用。它适合多个代理共用一个凭据库,或需要请求级策略、短时会话和可撤销审计记录的场景。
- 运行要求
- 以 Node.js npm 包(@true-and-useful/janee)在本地通过 stdio 运行,也可用 HTTP 模式供容器使用。需要配置文件,路径由环境变量 JANEE_CONFIG 指定,通常为 ~/.janee/config.yaml,以及每个所注册服务的 API 密钥、令牌、PEM 文件或应用 ID。仅支持桌面端,无远程端点。
安装
在 SourceWeft 中
- 打开 控制台中的 Janee,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Janee 🔐
Secrets management for AI agents via MCP
[npm version] [npm downloads] [License: MIT] [GitHub stars]
Your AI agents need API access to be useful. But they shouldn't have your raw API keys. Janee sits between your agents and your APIs — injecting credentials, enforcing policies, and logging everything.
✨ Features
The Problem
AI agents need API access to be useful. The current approach is to give them your keys and hope they behave.
- 🔓 Agents have full access to Stripe, Gmail, databases
- 📊 No audit trail of what was accessed or why
- 🚫 No kill switch when things go wrong
- 💉 One prompt injection away from disaster
The Solution
Janee is an MCP server that manages API secrets for AI agents:
- Store your API keys — encrypted locally in
~/.janee/ - Run
janee serve— starts MCP server - Agent requests access — via
executeMCP tool - Janee injects the real key — agent never sees it
- Everything is logged — full audit trail
Your keys stay on your machine. Agents never see them. You stay in control.
Configure Once, Use Everywhere
Set up your APIs in Janee once:
Now every agent that connects to Janee can use them:
- Claude Desktop — access your APIs
- Cursor — access your APIs
- OpenClaw — access your APIs
- Any MCP client — access your APIs
No more copying keys between tools. No more "which agent has which API configured?" Add a new agent? It already has access to everything. Revoke a key? Update it once in Janee.
One config. Every agent. Full audit trail.
Quick Start
Install
Initialize
This creates ~/.janee/config.yaml with example services.
Add Services
Option 1: Interactive (recommended for first-time users)
Janee will guide you through adding a service:
Using an AI agent? See Non-interactive Setup for flags that skip prompts, or the agent-specific guides below.
Option 2: Edit config directly
Edit ~/.janee/config.yaml:
Add CLI tools (exec mode)
Some tools need credentials as environment variables, not HTTP headers. Exec mode handles this:
Now agents can run CLI tools through Janee without ever seeing the API key:
Janee spawns the process with TWITTER_API_KEY injected, runs the command, and returns stdout/stderr. The credential never enters the agent's context.
Key flags:
--exec— configure as exec-mode (CLI wrapper instead of HTTP proxy)--allow-commands— whitelist of allowed executables (security)--env-map— map credentials to environment variables--work-dir— working directory for the subprocess--timeout— max execution time (default: 30s)
Git operations (automatic HTTPS auth)
When using exec mode with GitHub credentials, Janee automatically handles git authentication. No extra configuration needed — git push, git pull, and git clone just work:
Janee detects git commands with GH_TOKEN/GITHUB_TOKEN in the environment and creates a temporary askpass script for HTTPS authentication. The script is cleaned up automatically after the command completes.
Add GitHub App auth (for autonomous agents)
Static tokens are risky for long-running agents. GitHub App auth generates short-lived installation tokens on demand — no long-lived PATs required.
Option 1: Use create-gh-app (recommended)
Done. Your agent now gets short-lived GitHub tokens through Janee's MCP proxy.
Option 2: Manual setup
Or via config:
How it works: When an agent requests access, Janee signs a JWT with the app's private key, exchanges it for a 1-hour installation token via GitHub's API, and caches the token until expiry. The agent never sees the private key — only the short-lived token reaches the API.
Start the MCP server
Use with your agent
Agents that support MCP (Claude Desktop, Cursor, OpenClaw) can now call the execute tool to make API requests through Janee:
Janee decrypts the key, makes the request, logs everything, and returns the response.
Integrations
Works with any agent that speaks MCP:
- OpenClaw — Native plugin (
@true-and-useful/janee-openclaw)- Containerized agents? See Container setup guide
- Cursor — Setup guide
- Claude Code — Setup guide
- Codex CLI — Setup guide
- Any MCP client — just point at
janee serve
OpenClaw Integration
If you're using OpenClaw, install the plugin for native tool support:
Enable in your agent config:
Your agent now has these tools:
janee_list_services— Discover available APIsjanee_execute— Make API requests through Janee
The plugin spawns janee serve automatically. All requests are logged to ~/.janee/logs/.
MCP Tools
Janee exposes three MCP tools:
Agents discover what's available, then call APIs through Janee. Same audit trail, same protection.
Configuration
Config lives in ~/.janee/config.yaml:
Services = Real APIs with real keys
Capabilities = What agents can request, with policies
Supported auth types
Twitter/X OAuth 1.0a
Janee computes OAuth 1.0a signatures (HMAC-SHA1) server-side, so your 4 Twitter secrets stay encrypted at rest and never enter the agent's context:
Or use the built-in template:
AWS SigV4
Janee computes AWS Signature V4 (HMAC-SHA256) per-request, keeping your access keys encrypted at rest. Non-secret fields (region, awsService) stay in plain config:
Built-in templates for common AWS services:
Access control
Control which agents can use which capabilities:
defaultAccess: restricted— capabilities without anallowedAgentslist are hidden from all agentsdefaultAccess: open(default) — capabilities without anallowedAgentslist are available to all agentsallowedAgents— per-capability list of agent names (matched againstclientInfo.namefrom the MCP initialize handshake)
Credentials created by agents at runtime default to agent-only access — only the creating agent can use them unless it explicitly grants access via the manage_credential tool.
Exec mode capabilities
Exec-mode capabilities use janee_exec instead of execute. The credential is injected as an environment variable — the agent sees only stdout/stderr.
Runner hardening defaults in exec mode:
- isolated minimal environment (no full host env inheritance)
- temporary
HOMEper command - timeout kills the process group
Runner/Authority mode (for containers)
When agents run inside Docker containers, janee_exec on a remote host cannot access the container filesystem. The Runner/Authority architecture solves this:
- Authority runs on the host: holds credentials, enforces policy, proxies API requests
- Runner runs inside each container: serves MCP to the agent, forwards non-exec calls to the Authority, runs
janee_execlocally
The agent only needs JANEE_URL=http://localhost:3200.
You can also run the Authority as a standalone process:
See the Runner/Authority guide for the full architecture, exec authorization flow, Docker Compose example, and troubleshooting.
Request Policies
Control exactly what requests each capability can make using rules:
How rules work:
denypatterns are checked first — explicit deny always wins- Then
allowpatterns are checked — must match to proceed - No rules defined → allow all (backward compatible)
- Rules defined but no match → denied by default
Pattern format: METHOD PATH
GET *→ any GET requestPOST /v1/charges/*→ POST to /v1/charges/ and subpaths* /v1/customers→ any method to /v1/customersDELETE /v1/customers/*→ DELETE any customer
This makes security real: Even if an agent lies about its "reason", it can only access the endpoints the policy allows. Enforcement happens server-side.
CLI Reference
Non-interactive Setup (for AI agents)
AI agents can't respond to interactive prompts. Use --*-from-env flags to read credentials from environment variables — this keeps secrets out of the agent's context window:
When all required credentials are provided via flags, Janee:
- Never opens readline (no hanging on stdin)
- Auto-creates a capability with sensible defaults (1h TTL, auto-approve)
You can also edit ~/.janee/config.yaml directly if you prefer.
How It Works
- Agent calls
executeMCP tool with capability, method, path - Janee looks up service config, decrypts the real key
- Makes HTTP request to real API with key
- Logs: timestamp, service, method, path, status
- Returns response to agent
Agent never touches the real key.
📐 Deep dive: See Architecture & Security Model for detailed diagrams, threat model, and comparison with alternatives.
Security
- Encryption: Keys stored with AES-256-GCM
- Agent identity: Derived from
clientInfo.namein the MCP initialize handshake — no custom headers needed - Agent isolation: Each agent gets its own session with isolated identity (HTTP transport creates a Server+Transport per session)
- Access control: Per-capability
allowedAgentswhitelist + server-widedefaultAccesspolicy - Credential scoping: Agent-created credentials default to
agent-only - Audit log: Every request logged to
~/.janee/logs/ - Sessions: Time-limited, revocable
- Kill switch:
janee revokeor delete config
Docker
Run Janee as a container — no local Node.js required:
Or use Docker Compose:
For Claude Desktop with Docker, see Docker docs.
Contributing
We welcome contributions! Please read CONTRIBUTING.md before submitting a PR — it includes the required PR checklist (tests, changelog, version bump, etc.).
License
MIT — Built by True and Useful LLC
Stop giving AI agents your keys. Start controlling access. 🔐
来源:README.md,提交 0123448
工具
0版本历史
1- v0.8.5最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分