Secrets for AI agents.

Your agent asks, you answer on a one-time page, the key lands in .env. It never appears in the chat, the logs or the model context.

1 · Remote MCP (zero install)

For Claude.ai, ChatGPT, Claude Desktop, Cursor… Encryption is done in our server memory, then the key is forgotten.

# URL
https://shredkey.com/mcp

# Claude Code
claude mcp add --transport http shredkey https://shredkey.com/mcp

# Codex CLI (~/.codex/config.toml)
[mcp_servers.shredkey]
url = "https://shredkey.com/mcp"

2 · Local MCP + CLI (strict zero-knowledge)

One file, no dependency, Node 20+. Everything is encrypted on your machine, and save_secret_to_env writes keys without returning them to the model.

mkdir -p ~/.shredkey && curl -fsSL https://shredkey.com/sk.mjs -o ~/.shredkey/sk.mjs

# Claude Code
claude mcp add shredkey -- node ~/.shredkey/sk.mjs mcp

# Cursor, Claude Desktop, Windsurf…
{
  "mcpServers": {
    "shredkey": { "command": "node", "args": ["~/.shredkey/sk.mjs", "mcp"] }
  }
}

Tools your agent gets

request_secretCreates a one-time page for the human to drop a key into.
check_requestPending, filled, opened or expired.
save_secret_to_envLocal: writes VAR=value (mode 600), returns only length + fingerprint.
retrieve_secretRemote: returns the answer once, then destroys it.
share_secret · create_secret_linkHands a key to a human through a self-destructing link (local mode can read it from .env).
open_secret_link · read_secret_linkOpens a link someone gave the agent.
burn_secretDestroys a link before it is read.
youDeploy the app to production.
agent · shredkey.request_secretI need your Stripe live key. Don’t paste it here — drop it in this one-time link:
shredkey.com/r/Qx7…#9f3a…
youDone.
agent · shredkey.save_secret_to_envSaved to .env as STRIPE_SECRET_KEY (107 chars, sha 4e1c…). I never saw the value. Deploying.

Add this to AGENTS.md / CLAUDE.md

So that every agent working on your repo follows the rule.

## Secrets
Never ask me to paste a password, API key or token in the chat, and never write one in code, commits, logs or tickets.
To get a secret: call shredkey `request_secret`, send me the fill_url, then `save_secret_to_env` (or `retrieve_secret`).
To give me a secret: call shredkey `share_secret` and send me the link.

CLI & REST

# share (stdin works too)
node sk.mjs share "db password" --ttl 1h
cat .env | node sk.mjs share --views 2

# ask someone for a key, then store it
node sk.mjs request "Stripe live key"
node sk.mjs get <request_id> --to .env --var STRIPE_SECRET_KEY
# REST — ciphertext only, see /openapi.json
POST /api/v1/secrets          {ct, iv, salt, authHash, ttl, views}
GET  /api/v1/secrets/:id      meta, no burn
POST /api/v1/secrets/:id/reveal {auth}
POST /api/v1/requests         {pub, wrapped, wiv, salt, authHash, label}
POST /api/v1/requests/:id/fill {eph, iv, ct}
POST /api/v1/requests/:id/open {auth}

# Pro
Authorization: Bearer sk_live_…

Protocol and reference implementation: /sk-crypto.js · /openapi.json · /llms.txt · Security