ToolVouch for developers
Give your agent every paid data API that actually works, in one line. Free search; a routing plan costs $0.001, and your agent pays the seller directly from its own wallet.
MCP (any MCP client)
https://toolvouch.tbyuh88.workers.dev/mcp
Free: find_tools, tool_report, index_stats. Paid (x402-capable clients): plan_route $0.001.
Claude Code
/plugin marketplace add TBTha-maker/toolvouch
/plugin install toolvouch@toolvouch
Adds the MCP server and a skill that teaches Claude when to use ToolVouch. For paid routing, set TOOLVOUCH_PRIVATE_KEY in your environment. MCP only: claude mcp add --transport http toolvouch https://toolvouch.tbyuh88.workers.dev/mcp
JavaScript / TypeScript
npm install toolvouch
import { ToolVouch } from "toolvouch";
const tv = new ToolVouch({
privateKey: process.env.TOOLVOUCH_PRIVATE_KEY, // wallet with USDC on Base (only for route)
maxPerCallUsd: 0.05, // hard per-call cap
maxPerDayUsd: 1, // hard daily cap
});
const tools = await tv.find("web search"); // free
const r = await tv.route("web search", "best trail shoes"); // $0.001 plan + seller's price, paid directly; fails over
console.log(r.provider, r.paid_usd, r.data);
Command line
npx toolvouch find "weather forecast"
TOOLVOUCH_PRIVATE_KEY=0x... npx toolvouch route "weather forecast" "Chicago"
Python
pip install toolvouch
from toolvouch import ToolVouch
tv = ToolVouch(private_key=os.environ["TOOLVOUCH_PRIVATE_KEY"], max_per_call_usd=0.05, max_per_day_usd=1)
print(tv.find("web search"))
print(tv.route("web search", "best trail shoes"))
Agent frameworks
import { ToolVouch } from "toolvouch";
import { openAITools, anthropicTools, aiSdkTools, handleToolCall } from "toolvouch/adapters";
// OpenAI: tools: openAITools()
// Anthropic: tools: anthropicTools()
// Vercel AI: import { jsonSchema } from "ai"; tools: aiSdkTools(tv, jsonSchema)
// Then run calls with: await handleToolCall(tv, name, args)
Plain HTTP (x402)
GET https://toolvouch.tbyuh88.workers.dev/api/search?task=web+search free
GET https://toolvouch.tbyuh88.workers.dev/api/plan?task=web+search&q=... $0.001 via x402
Safety built in
Your client refuses to sign payments over your per-call and daily caps, or in anything but USDC on Base. It also refuses to pay a seller more than the planned price or to a wallet other than the one in the plan. ToolVouch never holds your money and only plans read-only data tools.