Skip to content

feat: add ToolVouch action provider (verified x402 tools, routing, Base token safety) - #1702

Open
TBTha-maker wants to merge 2 commits into
coinbase:mainfrom
TBTha-maker:feat/toolvouch-action-provider
Open

TBTha-maker wants to merge 2 commits into
coinbase:mainfrom
TBTha-maker:feat/toolvouch-action-provider

Conversation

@TBTha-maker

Copy link
Copy Markdown

Adds a ToolVouch action provider with three actions for agents on Base mainnet:

  • find_verified_x402_tools (free): best currently-working x402 tools for a task, ranked by live uptime checks, paid quality checks and real demand.
  • route_x402_task (paid, x402): runs a data task (web search, weather, page-to-markdown, prices) through the best verified tool, fails over on empty or broken answers, charged only on success.
  • check_base_token_safety (paid, $0.005): buy-then-sell simulation on Uniswap V2/V3 inside eth_call to catch honeypots and hidden taxes, plus mint/blacklist/pause, proxy and liquidity flags.

Payments are signed with the agent's wallet via @x402/fetch, using the same EVM signer pattern as the x402 provider. A client-side guard refuses anything that is not USDC on Base or that exceeds maxPaymentUsdc (default 0.05).

Includes unit tests (10 passing), a README and a changeset. Lint and prettier pass. Tested end to end on Base mainnet with a ViemWalletProvider: free search, a paid token check, and the payment cap refusing a call above the limit.

@cb-heimdall

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
1 if authored by an app that is not allowlisted and lacks verified human attribution 0
Sum 2

@github-actions github-actions Bot added documentation Improvements or additions to documentation action provider New action provider typescript labels Dec 2, 2026
ToolVouch retired its custodial /api/route endpoint. route_x402_task now buys a
$0.001 plan from /api/plan and pays the chosen API directly from the agent's wallet,
refusing any payment above the planned price or to a different wallet, and fails
over to the next planned API when an answer is empty or broken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EXYC97VoCcmbzDToNggGjt

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider documentation Improvements or additions to documentation typescript

Development

Successfully merging this pull request may close these issues.

2 participants