Metadata-Version: 2.5
Name: toolvouch
Version: 0.1.1
Summary: Verified paid APIs for AI agents: find working x402 tools free, or route any data task in one call with failover. Charged only on success.
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 in one paid call. ToolVouch picks a verified tool, pays it, checks the
  answer, and fails over to the next tool if the answer is empty or broken. You pay the
  provider's price + 30%, and **only when a good answer comes back**.

```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 routing with x402 uses `route_basic`, `route`
and `route_premium`.

## Safety
- The client only signs payments in USDC on Base, within your per-call and daily caps.
- ToolVouch never pays a provider more than its listed price, and only routes to read-only data
  tools.
- A failed answer is never charged.

MIT licensed.

