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_secretgives 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
| Tier | What happens |
|---|---|
| Read | Runs straight away. Names and metadata only. |
| Change | Runs, and shows in Activity as “AI via MCP (name)”. |
| Needs your passkey | Never 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
| Tool | Tier | What it does |
|---|---|---|
overview | Read: runs freely | Health of every key: never rotated, overdue, unused for 90 days, leaks, agent online |
list_projects | Read: runs freely | Projects the identity may see |
list_secrets | Read: runs freely | Secret names and metadata, never values |
list_connections | Read: runs freely | Provider and platform connections |
where_used | Read: runs freely | Every environment, platform, sync and agent that reads a key |
audit_query | Read: runs freely | Who changed what, and when |
check_request | Read: runs freely | Status of a request waiting for your passkey |
scan_for_secrets | Read: runs freely | Finds keys in files and git history (local server only) |
request_secret | Change: runs, logged as the AI | Sends you a link to paste a value in your browser |
create_project | Change: runs, logged as the AI | New project, optionally like an existing one (names only) |
reuse_connections | Change: runs, logged as the AI | Use one project's Stripe or OpenAI connections in another |
set_schedule | Change: runs, logged as the AI | Rotation interval for a key |
set_spend_cap | Change: runs, logged as the AI | Provider-side spend cap, where the provider supports one |
add_sync | Change: runs, logged as the AI | Push a folder to a platform |
import_env | Change: runs, logged as the AI | Moves a .env into Keysquid; values go straight to your agent (local server only) |
run_with_secrets | Change: runs, logged as the AI | Runs one allowlisted program with secrets (opt-in) (local server only) |
start_agent_vault_session | Change: runs, logged as the AI | Agent Vault: call APIs with placeholders (local server only) |
fix_leak | Change: runs, logged as the AI | Moves leaked values into Keysquid and asks to rotate them (local server only) |
rotate | Needs your passkey | Rotate one key |
rotate_all | Needs your passkey | Rotate everything matching a filter |
kill | Needs your passkey | Revoke a key everywhere, now |
delete | Needs your passkey | Delete 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
- 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.
- 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.
- If you use passkey approvals, approve the new identity under Approvals.
- 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.
Related
- Security model
- MCP section of the docs
- Which API keys Keysquid rotates
- Keysquid vs Doppler How agent access differs from env-var injection.