Integrations

Epanya is designed to plug into any agentic framework. Every major orchestration library can call the Epanya API directly or through the official SDKs — the same two-round x402 purchase flow works identically across all of them.

Language support: The JavaScript/TypeScript SDK works with Claude, OpenAI, and any Node.js-based framework. The Python SDK works with LangChain, CrewAI, and any Python-based framework.

Available guides

How it works in any framework

The integration pattern is the same regardless of which orchestration layer you use:

  1. Define tools / functions that call epanya.discover() and epanya.purchase().
  2. Register those tools with your LLM or agent executor.
  3. The model decides autonomously when to search the marketplace and when to buy.
  4. Your code receives the endpointUrl and calls the purchased service.

Common tool surface

Every integration guide defines variants of the same three tools:

ToolDescriptionReturns
discover_productsSearch marketplace by query, category, and max priceArray of matching products with names, prices, and IDs
purchase_productPurchase a product by ID via x402 paymentTransaction ID and endpoint URL to call the service
check_budgetCheck how much USDC the agent has spent vs its limitSpent amount, budget limit, and whether budget is exceeded

Prerequisites

Before starting any integration guide, you'll need:

Start with test mode: All guides use createTestSigner / create_test_signer so you can run the full flow without spending real USDC. Set X402_TEST_MODE=true in your environment and the API accepts test payments.