Metadata-Version: 2.5
Name: toolvouch
Version: 0.2.0
Summary: Verified paid APIs for AI agents: find working x402 tools free, or route any data task with failover while your wallet pays the seller directly. ToolVouch never holds your money.
Project-URL: Homepage, https://toolvouch.tbyuh88.workers.dev/developers
License-Expression: MIT
Keywords: agent-tools,ai-agents,api-router,mcp,payments,x402
Requires-Python: >=3.10
Requires-Dist: eth-account>=0.13
Requires-Dist: httpx>=0.27
Requires-Dist: x402[evm,httpx]<3,>=2.29
Description-Content-Type: text/markdown

# toolvouch

Verified paid APIs for AI agents, in one line.

[ToolVouch](https://toolvouch.tbyuh88.workers.dev) checks 10,000+ x402 paid APIs every 6 hours.
It also pays for real calls to the top tools and grades the answers. Your agent can:

- **find** the best working tool for a task, for free; or
- **route** any data task. ToolVouch picks the best verified tools for $0.001 and your wallet pays
  the seller directly, so ToolVouch never holds your money. The client checks each answer, fails over
  if it is empty or broken, and refuses to pay more than the planned price or to a different wallet.

```bash
pip install toolvouch
```

```python
import os
from toolvouch import ToolVouch

tv = ToolVouch(
    private_key=os.environ.get("TOOLVOUCH_PRIVATE_KEY"),  # wallet with USDC on Base (only for route)
    max_per_call_usd=0.05,  # the client refuses to sign anything above this
    max_per_day_usd=1,      # ...or above this per UTC day
)

tv.find("web search")                              # free, ranked by live reliability
r = tv.route("weather forecast", "Chicago")       # paid, with automatic failover
print(r["provider"], r["charged_usd"], r["data"])
# async: await tv.aroute(...)
```

## CLI
```bash
toolvouch find "scrape url to markdown"
TOOLVOUCH_PRIVATE_KEY=0x... toolvouch route "web search" "x402 news"
```
Limits: `TOOLVOUCH_MAX_PER_CALL` (default 0.05) and `TOOLVOUCH_MAX_PER_DAY` (default 1).

## MCP
Point any MCP client at `https://toolvouch.tbyuh88.workers.dev/mcp`. The free tools are
`find_tools`, `tool_report` and `index_stats`. Paid with x402: `plan_route` ($0.001), which returns ready-to-send requests your agent pays directly.

## Safety
- The client only signs payments in USDC on Base, within your per-call and daily caps.
- ToolVouch never holds your money, your client never pays a seller more than the planned price, and only routes to read-only data
  tools.
- The $0.001 plan is charged even if every seller fails. A seller that takes payment and returns a
  broken answer keeps the payment; ToolVouch ranks sellers on exactly that, in its public Delivery Record.

MIT licensed.

