Skip to content
MCP server

keyshroud

Gives coding agents your API keys without letting the model ever read them

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.12.2
Listing updated
3 days ago

About keyshroud

keyshroud is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

Secrets sit in an encrypted vault on your machine, or in your own Vaultwarden. When an agent runs a command through keyshroud run, the key is injected into the environment, and any occurrence of its value in the output is replaced with a marker like <redacted:GH_TOKEN> before the model reads it. A session hook tells the agent which secret names exist, and only names.

In a recorded Claude Code run, the API received the key and returned success, while the key appeared zero times in the saved transcript. The vault's own key goes to the macOS keychain, Linux Secret Service or Windows DPAPI, and keyshroud import can move a .env into it.

The author states the limit plainly: it keeps keys out of what the model reads by accident but is not a sandbox against an agent set on stealing one. The MCP server is for clients without a shell.

Install

Run in a terminal

claude mcp add keyshroud -- npx -y keyshroud

Add to claude_desktop_config.json

{
  "mcpServers": {
    "keyshroud": {
      "command": "npx",
      "args": [
        "-y",
        "keyshroud"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "keyshroud": {
      "command": "npx",
      "args": [
        "-y",
        "keyshroud"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "keyshroud": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "keyshroud"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "keyshroud": {
      "command": "npx",
      "args": [
        "-y",
        "keyshroud"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "keyshroud": {
      "command": "npx",
      "args": [
        "-y",
        "keyshroud"
      ]
    }
  }
}

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

secrets_run
Runs a command with secrets injected and masks them in output.
secrets_list
Lists secret names.
secrets_request
Requests a secret to be added or approved.
vault_status
Reports the state of the vault.

What it does

Injection at run time
keyshroud run puts secrets into a command's environment.
Output masking
Secret values in output become <redacted:NAME>.
Names only to the agent
A hook lists secret names, not values.
Local vault or Vaultwarden
Encrypted store on your machine or your own server.
Plugins for agents
Plugins for Claude Code and pi, plus MCP.
Import from .env
keyshroud import moves existing secrets.

Good for

  • Let an agent call GitHub or a private API with a token it cannot see
  • Stop keys leaking into saved transcripts
  • Find a leaked copy of a token in a log
  • Give Claude Desktop controlled use of secrets

Pricing

Open source

Free, MIT licensed, no account

Prices change. Check keyshroud.dev before you buy.

keyshroud FAQ

Is it a sandbox?

No; the threat model says it prevents accidental exposure, not deliberate theft.

Do I need an account?

No, the first secret creates a local vault.

Which Node version?

18.19 or newer.

Do MCP tools return secrets?

None return a secret value.

Is keyshroud free?

Yes. keyshroud is open source, so you can use and self-host it for free.

How do I add keyshroud to Claude Code?

Run this command in your terminal: claude mcp add keyshroud -- npx -y keyshroud

What are the best alternatives to keyshroud?

The closest alternatives to keyshroud are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to keyshroud

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools