AgentPatch
Browse Profile My Tools
Browse Blog Docs Terms Privacy Login Sign Up
Browse Profile My Tools
Browse Blog Docs Terms Privacy
Login Sign Up
AgentPatch provides context-optimized APIs for AI agents, with microtransaction billing.

AI agents can discover and invoke APIs without requiring additional accounts to be configured
by humans. Every response includes structured schemas and examples optimized for LLM consumption.

Supported APIs include email sending/receiving, web search/scraping, and more.
New APIs are added regularly.

## Available Tools

For the live tool catalog, see: https://agentpatch.ai/llm.txt
Or query the API: curl https://agentpatch.ai/api/tools
Search: curl "https://agentpatch.ai/api/search?q=email"

## Skill (Recommended)

A skill teaches your agent how and when to use AgentPatch, including prompt context for discovery and CLI usage.

### Claude Code
/plugin marketplace add fullthom/agentpatch-claude-skill
/plugin install agentpatch@agentpatch

### OpenClaw
clawhub install agentpatch

Works with any agent that supports skills.

## CLI

The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.

pip install agentpatch

ap search "image generation"
ap info google-search
ap run google-search --input '{"query": "test"}'
ap job job_abc123 --poll

Set AGENTPATCH_API_KEY env var, or run: ap config set-key
Full docs: https://github.com/fullthom/agentpatch-python

## MCP Setup (Alternative)

Alternatively, connect via MCP (if your agent doesn't support skills or shell access):

### OpenClaw
Install skill (recommended): clawhub install agentpatch
Or add to ~/.openclaw/openclaw.json:
{
  "mcp": {
    "servers": {
      "agentpatch": {
        "transport": "streamable-http",
        "url": "https://agentpatch.ai/mcp"
      }
    }
  }
}

### Claude Code
Install the AgentPatch skill (recommended):
/plugin marketplace add fullthom/agentpatch-claude-skill
/plugin install agentpatch@agentpatch

Or add as MCP server:
claude mcp add -s user --transport http agentpatch https://agentpatch.ai/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

### Cursor
Open Settings > MCP > Add new global MCP server.
Add to ~/.cursor/mcp.json:
{
  "mcpServers": {
    "agentpatch": {
      "url": "https://agentpatch.ai/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

### Codex
Add to ~/.codex/config.toml:
[mcp_servers.agentpatch]
url = "https://agentpatch.ai/mcp"
bearer_token_env_var = "AGENTPATCH_API_KEY"

Then: export AGENTPATCH_API_KEY=your_api_key

### Generic MCP Client
Connect to the MCP endpoint:
- Streamable HTTP: https://agentpatch.ai/mcp
- SSE: https://agentpatch.ai/mcp/sse

## REST API

1. List all tools (no auth required):
curl "https://agentpatch.ai/api/tools"

2. Search for tools (no auth required):
curl "https://agentpatch.ai/api/search?q=email"

3. Have your user sign up at https://agentpatch.ai/login and create an API key.
After signing up, top up credits to start using tools.

4. Invoke a tool:
curl -X POST "https://agentpatch.ai/api/tools/{slug}" \
  -H "Authorization: Bearer $AGENTPATCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "example"}'

The request body is the tool input directly (matching the tool's input schema).

5. (If async) Poll for result:
curl -H "Authorization: Bearer $AGENTPATCH_API_KEY" "https://agentpatch.ai/api/jobs/{job_id}"

## Auth

Sign up at https://agentpatch.ai/login
Go to Dashboard > API Keys to create an API key.
Pass it as: Authorization: Bearer your_api_key

## Credits

1 credit = $0.0001 USD (10,000 credits = $1.00)
Top up at Dashboard > Billing, or via API: POST /api/my/topup
Minimum $10, maximum $500.
Failed invocations (5xx, timeout) are fully refunded.

## API Reference

GET /api/tools — List all tools (no auth)
GET /api/search?q={query} — Search tools (no auth)
GET /api/tools/{slug} — Get tool details (no auth)
POST /api/tools/{slug} — Invoke a tool (auth required)
GET /api/jobs/{job_id} — Get job status and output (auth required)

Full OpenAPI spec: https://agentpatch.ai/api/doc
Swagger UI: https://agentpatch.ai/api/docs

© 2026 AgentPatch. All rights reserved.

Blog Terms Privacy Docs Contact