Before you start

Claude Code installed (npm install -g @anthropic-ai/claude-code)
Node.js 18 or later
An AgentValet account (free) - the CLI signs you in via your browser

One command. No config files to edit.

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.

terminal
# 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
1
Run npx @agentvalet/register in any project directory.
2
Your browser opens to AgentValet. Sign in (or sign up - it's free). The CLI auto-completes registration when you authorize.
3
Open Claude Code in the same directory. It picks up .mcp.json automatically. Run /mcp to confirm agentvalet is loaded.
4
Approve the platforms this agent can access in the AgentValet dashboard. The agent sees only what you grant - and every call is logged.
User-scoped install - prefer one config across every Claude Code project? Run npx @agentvalet/register --scope user and the CLI writes to ~/.claude.json instead of .mcp.json. Restart Claude Code to pick up the change.
Prefer to wire it up by hand?

The CLI is the recommended path. If you'd rather edit config yourself, here's the equivalent .mcp.json:

.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.

Your Claude Code session, governed

Project or user scoped
Per-project .mcp.json for repo-bound agents, or user-level ~/.claude.json for one config across every project.
CLAUDE.md guidance, written for you
A governance section is added to your CLAUDE.md so Claude Code knows when to call AgentValet, what scopes it has, and how to surface approvals.
No keys in your project
API keys never touch your repo or shell. Credentials are decrypted in-memory inside the AgentValet proxy, only at call time.
Scoped per platform
Set exactly what each agent can do. GitHub read-only stays read-only, even if the agent tries to write.
Approve risky calls live
Destructive or financial actions can require human approval. The session pauses, you tap approve in the dashboard, the agent continues.
Full audit trail
Every call logged: agent, platform, action, timestamp. Revoke instantly from the dashboard if something looks wrong.

Ship governed Claude Code in 60 seconds.

One command. The browser does the rest. Free to start, no credit card.