You already have a CLAUDE.md. AgentValet adds the part that says which platforms this agent is allowed to touch, and proves every call after the fact. No keys in your project, your shell, or .mcp.json.
npm install -g @anthropic-ai/claude-code)The AgentValet CLI handles everything: it opens your browser to sign you in, generates an RS256 keypair, registers your Claude Code session as an agent, writes the MCP entry, and installs a CLAUDE.md governance snippet so the agent knows how to use it. No copy-paste, no IDs to track.
# In your project directory npx @agentvalet/register # Browser opens. Sign in. Done. # The CLI writes: # .mcp.json - MCP entry, project-scoped # CLAUDE.md - governance instructions # .claude/settings.local.json - prompt hook for status checks
npx @agentvalet/register in any project directory..mcp.json automatically. Run /mcp to confirm agentvalet is loaded.npx @agentvalet/register --scope user and the CLI writes to ~/.claude.json instead of .mcp.json. Restart Claude Code to pick up the change.The CLI is the recommended path. If you'd rather edit config yourself, here's the equivalent .mcp.json:
{
"mcpServers": {
"agentvalet": {
"command": "npx",
"args": ["-y", "@agentvalet/register", "mcp-server"]
}
}
}
You'll still want to run npx @agentvalet/register once so the CLI can store your agent's private key on this machine, the MCP server reads it at startup.
Claude Code treats AgentValet as a remote MCP server and connects over OAuth 2.1. You approve the connection in your browser. The agent is issued a signing identity, not a raw credential. Nothing long-lived sits on disk.
# Register AgentValet as a remote MCP server claude mcp add --transport http agentvalet https://api.agentvalet.ai/mcp/v1/<your-owner-id> # Then open Claude Code and run /mcp # Claude opens a browser for OAuth consent. # The token is stored in your OS keychain and auto-refreshed.
claude mcp add --transport http agentvalet https://api.agentvalet.ai/mcp/v1/<your-owner-id> to register AgentValet as a remote MCP server./mcp inside Claude Code. Claude opens a browser tab for OAuth consent. Approve it, and the agent is provisioned its own signing identity.npx @agentvalet/register path above, reached a different way..mcp.json for repo-bound agents, or user-level ~/.claude.json for one config across every project.One command. The browser does the rest. Free to start, no credit card.