
Janee
io.github.rsdouglasPublished by GitHub account rsdouglasv0.8.5Updated Oct 24, 2026
Secure secrets proxy for AI agents — manages API keys so agents never see raw credentials.
Overview
Janee is a local secrets proxy that lets an AI assistant call APIs and run CLI tools with injected credentials it never sees.
- What you can do
- Janee stores API keys encrypted on your machine and exposes MCP tools such as list_services, execute, exec, manage_credential and reload_config. The assistant requests a capability, and Janee injects the real credential into an HTTP request or a spawned CLI process, returning only the response or stdout/stderr. It supports bearer, basic, custom headers, HMAC exchange signing, Google service accounts, GitHub App tokens, Twitter/X OAuth 1.0a and AWS SigV4, with per-capability allow/deny request rules, session TTLs, agent allowlists and an audit log.
- When to use it
- Use it when an assistant needs access to third-party APIs or CLI tools but you do not want raw keys in the model context. It suits setups with several agents sharing one credential store, or where you want request-level policies, short-lived sessions and a revocable audit trail.
- Requirements
- Runs locally as a Node.js npm package (@true-and-useful/janee) over stdio, or in HTTP mode for containers. Needs a config file whose path is given by the JANEE_CONFIG environment variable, normally ~/.janee/config.yaml, plus the API keys, tokens, PEM files or app IDs for each service you register. Desktop only; no remote endpoint.
Installation
In SourceWeft
- Open Janee in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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. 🔐
Source: README.md at commit 0123448
Tools
0Version history
1- v0.8.5LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts