Agent Tollbooth 402 vs Codebase Memory
Agent Tollbooth 402 is a freemium MCP server for developer tools. Codebase Memory is an open-source MCP server for knowledge and memory.
- Codebase Memory is open source, while Agent Tollbooth 402 is freemium.
- Agent Tollbooth 402 is best for charging ai agents a small fee per api call.
- Codebase Memory is best for find callers of a function.
- What it is
- Agent Tollbooth 402 is a freemium MCP server for developer tools.Codebase Memory is an open-source MCP server for knowledge and memory.
- Best for
- Charging AI agents a small fee per API callFind callers of a function
- Kind
- MCP serverMCP server
- Pricing
- FreemiumOpen source
- Platforms
- API, CLI, self-hosted, vscodeCLI, macOS, Linux, Windows, self-hosted
- Runs
- RemotelyLocally
- GitHub stars
- 48.8K
- Last commit
- Nov 2026
- License
- MIT
- Open source
- Good for
- Charging AI agents a small fee per API call; Monetizing a Cloudflare Worker or Hono endpoint without building a billing system; Adding pay-per-request access to an MCP serverFind callers of a function; Assess the impact of a diff; Link documentation to code
What Agent Tollbooth 402 does
Per-call HTTP 402 gating
Wraps a route so unpaid requests receive a 402 challenge with price and accepted payment rails.
Dual payment rails
Accepts x402 V2 USDC payments on Base or prepaid Fiat Agent Wallet receipts.
Edge receipt verification
Checks HMAC-SHA256 or Ed25519 receipts locally with Web Crypto, with D1 nonce replay protection.
Local sandbox testing
Runs the 402, signing and retry loop offline using sandbox mode, without keys or wallets.
Remote MCP tools
Exposes pricing quote, wallet balance, receipt issuance, x402 verification and top-up checkout tools.
Route scanning skill
Plugin skill that scans Workers, Hono, Next.js, Express and MCP endpoints for billable routes.
What Codebase Memory does
Code knowledge graph
Persistent graph of symbols, calls and dependencies.
Multiple search modes
Structural, full-text and local semantic search.
Documentation links
Indexes Markdown, reStructuredText, AsciiDoc and ADRs.
Infrastructure tracing
Connects Docker, Kubernetes, Terraform and CI to source.
Change impact
Maps a diff to affected symbols and related tests.
Native CLI
Query the same graph from the command line.
Agent Tollbooth 402 vs Codebase Memory: questions
Is Agent Tollbooth 402 or Codebase Memory cheaper?
Codebase Memory is the cheaper option: it is open source.
What is the difference between Agent Tollbooth 402 and Codebase Memory?
Agent Tollbooth 402 is a freemium MCP server for developer tools. Codebase Memory is an open-source MCP server for knowledge and memory. Codebase Memory is open source, while Agent Tollbooth 402 is freemium.

