KeyValet — Security skill for Claude Code
Give your AI agents a valet key, not your master key.
How to install KeyValet
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open BehalfAI/KeyValet and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What KeyValet does
Give your AI agents a valet key, not your master key. Local credential broker for AI agents (MCP) on macOS: Touch ID per credential, proxy calls, audit log.
Alternatives in Security
- Mcp-scan (Invariant Labs) — MCP security scanner with proxy mode for real-time scanning without infrastructure changes 1.9k ★
- MCP Security Checklist (SlowMist) — Comprehensive checklist: input validation, rate limiting, RBAC, credential management, container hardening 819 ★
- ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
README
KeyValet
**Give your AI agents a valet key, not your master key.**
KeyValet lets Claude Code, Cursor and other AI agents use your API keys and OAuth accounts — without ever seeing them. You approve each credential with Touch ID, KeyValet makes the call, and every use is logged.
[Website](https://behalfai.github.io/KeyValet/) · [Guide](docs/guide.md) · [Security](SECURITY.md) · [简体中文](README.zh-CN.md)
Install
curl -fsSL https://behalfai.github.io/KeyValet/install.sh | sh
macOS, Node.js 20+ ([nodejs.org](https://nodejs.org) or nvm) and Xcode Command Line Tools. You'll be asked for your password once. Claude Code is configured automatically; for other MCP clients see the [guide](docs/guide.md#install).
Use it
Just ask your agent:
/keyvalet:add openai
A native dialog asks **you** for the key — it never passes through the chat. Pasted a key into the chat anyway? Claude stores it in KeyValet for you instead of a `.env` file.
Use KeyValet to list my OpenAI models.
Touch ID shows *which* credential and *why*. KeyValet makes the request; the agent only gets the response.
Connect my GitHub account through KeyValet and create a repo called demo.
OAuth, refresh tokens and private keys stay in KeyValet; the agent only ever gets short-lived tokens.
Why
- Use, don't see — keys are injected inside a root-owned helper; the agent gets responses, not secrets.
- You choose how often to touch — per use, per credential (default), per session, or once and remembered for hours. Switch with
/keyvalet:modein Claude Code; loosening always needs your fingerprint. - SDKs and streaming — a local gateway lets scripts and SDKs (
OPENAI_BASE_URL=…) stream without holding the real key. - Every auth flow — API keys (~50 templates), OAuth 2.0, Google service accounts, GitHub Apps, JWT, TOTP, AWS STS.
- Maintained for you — in Claude Code, keys you share are stored automatically, and you're asked before a key gets hard-coded into a file
Related Skills
LaptopAI Agent
Fully local, privacy-first autonomous AI agent for laptop management — LangGraph reasoning loop, Ollama local
Sieve
A fully local LLM-traffic security proxy for crypto-native developers — redacts secrets outbound, blocks dange
Agent Security Stack
The open-source agent-security stack — redstamp + truecopy + strongroom — composed into one layered defense. V
AgentDoctor
Local CLI that audits coding-agent configuration for security, instructions, context, and MCP — no API key or
Buster Claw
A macOS desktop app that gives your own Claude Code, Codex or OpenCode agent hands: a browser it can drive, yo
Paper Trail Receipts
Local-only per-citation audit (no remote API). Reads the cited PDFs from the local registry, generates RECEIPT
Related Agents
Light Security ClaudeSettingsAudit
Audit Claude Code config files (settings.json, settings.local.json, .mcp.json) for unsafe or malicious content
Byok Token Security Expert
BYOK (Bring-Your-Own-Key) and OAuth token security expert. Deep on cross-platform OS keychain integration (mac
Protocol Parity
Cross-references the lockstep surfaces a protocol must touch (TUI ScreenId, admin route, live broker/session w