AgentGuard
Local spend caps, kill-switch blocking and Ed25519-signed receipts for AI agent tool…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.3.1
- Listing updated
- 5 days ago
About AgentGuard
AgentGuard is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Local spend caps, kill-switch blocking and Ed25519-signed receipts for AI agent tool calls.
Install
Run in a terminal
claude mcp add agentguard --env AGENTGUARD_LICENSE_KEY='<AGENTGUARD_LICENSE_KEY>' -- npx -y @agentguard-run/mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"agentguard": {
"command": "npx",
"args": [
"-y",
"@agentguard-run/mcp"
],
"env": {
"AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"agentguard": {
"command": "npx",
"args": [
"-y",
"@agentguard-run/mcp"
],
"env": {
"AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"agentguard": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agentguard-run/mcp"
],
"env": {
"AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"agentguard": {
"command": "npx",
"args": [
"-y",
"@agentguard-run/mcp"
],
"env": {
"AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"agentguard": {
"command": "npx",
"args": [
"-y",
"@agentguard-run/mcp"
],
"env": {
"AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
}
}
}
}Configuration
AGENTGUARD_MCP_DAILY_CAP_CENTSLocal daily spend cap in cents. A nonnegative integer.AGENTGUARD_MCP_PER_CALL_CAP_CENTSLocal per-call spend cap in cents. A nonnegative integer.AGENTGUARD_MCP_TENANTTenant identifier stamped into local receipts.AGENTGUARD_HOMELocal signing-key, configuration and ledger directory. Defaults to .agentguard in the operating system home directory.AGENTGUARD_MCP_LEDGERLocal decision storage. ndjson persists receipts across restarts; memory retains this process only.AGENTGUARD_MCP_DISABLE_COST_OVERRIDESet to 1 to discard and prevent model pricing overrides for this server.AGENTGUARD_LOCK_COST_OVERRIDESSpend SDK startup lock. Set to 1 to prevent model pricing overrides.AGENTGUARD_ACTOR_DIGESTSet to 1 to hash actor identifiers before they enter local receipts.AGENTGUARD_LICENSE_KEYOptional AgentGuard license key for license validation and seat registration. Otherwise read from local configuration.AGENTGUARD_LICENSE_ENDPOINTLicense and seat service base URL. No prompts, tool content or receipts are sent.AGENTGUARD_NO_BEACONSet to 1 to disable optional activation telemetry regardless of saved consent.AGENTGUARD_TELEMETRYSet to 1 to opt in to content-free activation telemetry. Otherwise saved consent applies, default off.AGENTGUARD_INSTALL_IDOptional identifier used only by opted-in activation telemetry when no saved install identifier exists.AGENTGUARD_ANONYMOUS_INSTALL_IDLegacy fallback for AGENTGUARD_INSTALL_ID in opted-in activation telemetry.CIExisting runtime marker. A nonempty value marks opted-in activation telemetry as CI; it does not enable telemetry.GITHUB_ACTIONSExisting runtime marker. A nonempty value marks opted-in activation telemetry as CI; it does not enable telemetry.GITLAB_CIExisting runtime marker. A nonempty value marks opted-in activation telemetry as CI; it does not enable telemetry.CIRCLECIExisting runtime marker. A nonempty value marks opted-in activation telemetry as CI; it does not enable telemetry.BUILDKITEExisting runtime marker. A nonempty value marks opted-in activation telemetry as CI; it does not enable telemetry.VERCELExisting runtime marker. A nonempty value marks opted-in activation telemetry as CI; it does not enable telemetry.NETLIFYExisting runtime marker. A nonempty value marks opted-in activation telemetry as CI; it does not enable telemetry.
Pricing
Open source
Prices change. Check agentguard.run before you buy.
AgentGuard FAQ
Is AgentGuard free?
Yes. AgentGuard is open source, so you can use and self-host it for free.
How do I add AgentGuard to Claude Code?
Run this command in your terminal: claude mcp add agentguard --env AGENTGUARD_LICENSE_KEY='<AGENTGUARD_LICENSE_KEY>' -- npx -y @agentguard-run/mcp