Catalog PyPI
PACKAGE EXPLORERView in registry

agent402-langchain

PyPI

Agent402 for LangChain (the applied layer of Agentic Finance): turn Agent402's catalog of 500+ pay-per-call tools and skill packs (x402 or MPP) into LangChain tools for Python agents via four meta-tools. The pure-CPU tools are free via proof-of-work - no wallet, no API keys.

agentagent402agentic-financeai-agentsaifilangchainmcpmpptoolsx402
Versions collected1
Direct dependencies3From release 0.1.4
Last observed20 Oct, 21:26 UTC

README

Version 0.1.4 documentation

agent402-langchain (Python)

Turn Agent402's catalog of 500+ pay-per-call tools and skill packs into LangChain tools for Python agents.

Agent402 is the applied layer of Agentic Finance - agents that pay and get paid on their own over the two open wires, x402 and MPP (Machine Payments Protocol). Every paid endpoint answers both on the same 402; this package pays wallet-only tools through the x402_fetch callable you pass (below).

Pure-CPU tools (hashing, encoding, QR, markdown, JSON, readability…) are free via built-in proof-of-work - no wallet, no API keys. Live-data tools (market data, web search, EDGAR, on-chain) are wallet-only and settle in USDC.

pip install "agent402-langchain[langchain]"
from agent402_langchain import Agent402Toolkit

toolkit = Agent402Toolkit(base_url="https://agent402.tools")
tools = toolkit.get_tools()   # four meta-tools your agent can call

It exposes four meta-tools rather than 500+ individual ones (frameworks and LLMs both choke on thousands of tools):

ToolWhat it does
agent402_findResolve a plain-language task to the best tool (slug, price, schema, example)
agent402_routeCross-seller x402 router across the sellers Agent402 indexes
agent402_callCall a tool by slug - auto-pays via proof-of-work (free) or your x402 fetch (paid)
agent402_aboutThe service manifest (identity, payment options, trust signals)

Paid (wallet-only) tools

Pass x402_fetch - a callable with the requests-style signature (method, url, **kwargs) -> requests.Response that signs the USDC payment:

toolkit = Agent402Toolkit(base_url="https://agent402.tools", x402_fetch=my_signed_fetch)

Without it, calling a wallet-only tool raises a clear error naming what's needed; the free proof-of-work tier keeps working regardless.

Without LangChain

agent402_tool_specs() returns the same four entries as framework-agnostic dicts (name, description, JSON Schema, and a plain execute callable) - no langchain-core needed.

MIT © Havok Holdings LLC · github.com/MikeyPetrillo/Agent402

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.43 Oct 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
mikeypetrillo/agent402

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:26 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:eabfdcb77ba22aa6ae780f0dd814083e646331098e3925ed304e0511711c035a