Keysquid

Rotate, revoke and audit your API keys and passwords from Claude, ChatGPT or Cursor. Zero-knowledge: the AI sees key names, never secret values. Remote server at https://keysquid.com/mcp with OAuth sign-in.

Hosted MCP Server

npx add-mcp 'https://keysquid.com/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

MCP server

The Keysquid MCP server: your AI works with your keys, never sees them

Claude Code, Cursor, Codex and other agents can set up, rotate and audit your keys through your own agent. The values never enter the chat.

Keysquid team · Updated November 28, 2026

What it is

The Keysquid MCP server connects Claude, Cursor, Copilot, Codex, Windsurf, Gemini CLI or any Model Context Protocol client to your Keysquid workspace. Your AI can check the health of every key, copy a Stripe or OpenAI setup from one project to another, find leaked keys in a repo and move them into Keysquid, and start a rotation. It can’t read a value.

That’s enforced in code, not in a prompt:

  • No tool returns a value, and there is no setting that makes one.
  • No tool accepts a value from the AI. When one is needed, request_secret gives you a link; you paste the value in your browser, where it’s encrypted to your own agent.
  • Every result passes a redactor that knows every value the process has handled, including base64, URL-encoded, JSON-escaped and hex forms.
  • The AI’s identity is names-only. Your agent refuses to give it any value, even if the AI reads the credentials from its own config file.

Most setups for AI agents inject secrets as environment variables, which means the agent can read them. Here the agent works with keys (rotating, syncing, checking where they’re used) without holding them. When it needs to call an API, Agent Vault adds the real key on the way out.

Three safety tiers

TierWhat happens
ReadRuns straight away. Names and metadata only.
ChangeRuns, and shows in Activity as “AI via MCP (name)”.
Needs your passkeyNever runs directly. The AI gets a dry run first (what changes, where the new key goes, expected downtime), then a request link you approve with your passkey.

Everything is limited to what the AI’s machine identity has been granted, which is read-only unless you choose otherwise.

The tools

ToolTierWhat it does
overviewRead: runs freelyHealth of every key: never rotated, overdue, unused for 90 days, leaks, agent online
list_projectsRead: runs freelyProjects the identity may see
list_secretsRead: runs freelySecret names and metadata, never values
list_connectionsRead: runs freelyProvider and platform connections
where_usedRead: runs freelyEvery environment, platform, sync and agent that reads a key
audit_queryRead: runs freelyWho changed what, and when
check_requestRead: runs freelyStatus of a request waiting for your passkey
scan_for_secretsRead: runs freelyFinds keys in files and git history (local server only)
request_secretChange: runs, logged as the AISends you a link to paste a value in your browser
create_projectChange: runs, logged as the AINew project, optionally like an existing one (names only)
reuse_connectionsChange: runs, logged as the AIUse one project's Stripe or OpenAI connections in another
set_scheduleChange: runs, logged as the AIRotation interval for a key
set_spend_capChange: runs, logged as the AIProvider-side spend cap, where the provider supports one
add_syncChange: runs, logged as the AIPush a folder to a platform
import_envChange: runs, logged as the AIMoves a .env into Keysquid; values go straight to your agent (local server only)
run_with_secretsChange: runs, logged as the AIRuns one allowlisted program with secrets (opt-in) (local server only)
start_agent_vault_sessionChange: runs, logged as the AIAgent Vault: call APIs with placeholders (local server only)
fix_leakChange: runs, logged as the AIMoves leaked values into Keysquid and asks to rotate them (local server only)
rotateNeeds your passkeyRotate one key
rotate_allNeeds your passkeyRotate everything matching a filter
killNeeds your passkeyRevoke a key everywhere, now
deleteNeeds your passkeyDelete a secret

Tools marked local server only work with values on your own machine, so the remote server for AI apps leaves them out.

Install it

  1. In Keysquid, open Settings → Connect your AI, pick the projects your AI may use, keep Read-only unless you want it to make changes, and click Connect your AI.
  2. Copy the config for your client. The page fills in your client ID and shows the client secret once; the snippets below show the same config with placeholders.
  3. If you use passkey approvals, approve the new identity under Approvals.
  4. Restart the client and ask: “Give me a Keysquid overview.”

Or hand the job to your coding agent: set up keysquid - https://keysquid.com/llms.txt. That file tells it exactly what to do, including never asking you to paste a secret into the chat.

Claude Code

Run in a terminal (one line; works in PowerShell, bash and zsh).

claude mcp add keysquid -e KEYSQUID_AGENT_URL=http://keysquid-agent:8787 -e KEYSQUID_URL=https://keysquid.com -e KEYSQUID_CLIENT_ID=<client id> -e KEYSQUID_CLIENT_SECRET=<client secret> -- npx -y keysquid-mcp

Cursor

Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for every project).

{
  "mcpServers": {
    "keysquid": {
      "command": "npx",
      "args": [
        "-y",
        "keysquid-mcp"
      ],
      "env": {
        "KEYSQUID_AGENT_URL": "http://keysquid-agent:8787",
        "KEYSQUID_URL": "https://keysquid.com",
        "KEYSQUID_CLIENT_ID": "<client id>",
        "KEYSQUID_CLIENT_SECRET": "<client secret>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json (GitHub Copilot agent mode).

{
  "servers": {
    "keysquid": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "keysquid-mcp"
      ],
      "env": {
        "KEYSQUID_AGENT_URL": "http://keysquid-agent:8787",
        "KEYSQUID_URL": "https://keysquid.com",
        "KEYSQUID_CLIENT_ID": "<client id>",
        "KEYSQUID_CLIENT_SECRET": "<client secret>"
      }
    }
  }
}

Codex

Add to ~/.codex/config.toml.

[mcp_servers.keysquid]
command = "npx"
args = ["-y", "keysquid-mcp"]

[mcp_servers.keysquid.env]
KEYSQUID_AGENT_URL = "http://keysquid-agent:8787"
KEYSQUID_URL = "https://keysquid.com"
KEYSQUID_CLIENT_ID = "<client id>"
KEYSQUID_CLIENT_SECRET = "<client secret>"

Windsurf

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

{
  "mcpServers": {
    "keysquid": {
      "command": "npx",
      "args": [
        "-y",
        "keysquid-mcp"
      ],
      "env": {
        "KEYSQUID_AGENT_URL": "http://keysquid-agent:8787",
        "KEYSQUID_URL": "https://keysquid.com",
        "KEYSQUID_CLIENT_ID": "<client id>",
        "KEYSQUID_CLIENT_SECRET": "<client secret>"
      }
    }
  }
}

Gemini CLI

Add to ~/.gemini/settings.json (or .gemini/settings.json in your project).

{
  "mcpServers": {
    "keysquid": {
      "command": "npx",
      "args": [
        "-y",
        "keysquid-mcp"
      ],
      "env": {
        "KEYSQUID_AGENT_URL": "http://keysquid-agent:8787",
        "KEYSQUID_URL": "https://keysquid.com",
        "KEYSQUID_CLIENT_ID": "<client id>",
        "KEYSQUID_CLIENT_SECRET": "<client secret>"
      }
    }
  }
}

Other

Any MCP client that runs stdio servers: command, arguments and environment.

{
  "keysquid": {
    "transport": "stdio",
    "command": "npx",
    "args": [
      "-y",
      "keysquid-mcp"
    ],
    "env": {
      "KEYSQUID_AGENT_URL": "http://keysquid-agent:8787",
      "KEYSQUID_URL": "https://keysquid.com",
      "KEYSQUID_CLIENT_ID": "<client id>",
      "KEYSQUID_CLIENT_SECRET": "<client secret>"
    }
  }
}

Claude and ChatGPT apps (remote)

AI apps that connect to remote MCP servers can use https://keysquid.com/mcp, signing in with OAuth and granting access on a consent page. The remote server offers the same tools and tiers, except the ones that need values on your own machine: run_with_secrets, import_env, scan_for_secrets, fix_leak, start_agent_vault_session. For those, use the local server above.

Things to ask

  • “Use the same Stripe and OpenAI connections as project api for project billing.”
  • “Rotate every key older than 90 days.” You see the plan, then approve it with your passkey.
  • “What breaks if I kill STRIPE_SECRET_KEY?”
  • “Move my .env into Keysquid and take the values out of the file.”
  • “Scan this repo for leaked keys and fix them.”
  • “I need a Resend key for prod. Ask me for it.”

run_with_secrets: the residual risk

run_with_secrets starts one program with your project’s secrets as environment variables and redacts every value from its output before the AI sees it. It’s off until you set KEYSQUID_MCP_RUN=1 and allow it for the identity; no shell is used, the program must be on an allowlist, inline code like node -e is refused, and there’s a timeout. The risk that remains: the program can do anything with the values it’s given, including a test the AI just wrote. Keep it to dev or staging grants and repos you trust.

More detail: the MCP section of the docs and the security model.

Frequently asked questions

Can the AI read my secret values through the MCP server?

No. No Keysquid MCP tool returns a value and none accepts one, and the machine identity the AI gets is names-only, so your agent refuses to hand it values even if the AI finds its credentials. When a value is needed, the AI sends you a link and you paste it in your browser.

What can the AI do without asking me?

Read tools run freely and see names and metadata only. Change tools, such as creating a project, setting a schedule or adding a sync, run and are logged as the AI's machine identity. Rotations, rotate all, emergency kills and deletions never run directly: the AI gets a dry-run plan and a request you approve with your passkey.

Which AI apps does it work with?

Any MCP client that runs stdio servers, including Claude Code, Cursor, VS Code with GitHub Copilot, Codex, Windsurf and Gemini CLI. AI apps such as Claude and ChatGPT can connect to the remote server at https://keysquid.com/mcp with OAuth.

Is run_with_secrets safe?

It's off by default. When enabled, it starts one allowlisted program with your secrets as environment variables and redacts every value from the output before the AI sees it. The program itself can still use the values, so only enable it for repos and agents you trust.

Rotate keys without ever handing them over

Keysquid rotates and revokes API keys on a schedule and encrypts every value to an agent you run, so we never see a readable key. Flat pricing from $9.99 a month, unlimited team members, 7-day free trial.

Start 7-day free trial

Security modelDocs

Related