Integrations

Integrate MoltyDEX into your favorite agent framework. Ready-to-use examples for popular platforms.

LangChain

Available

Integrate MoltyDEX into LangChain agents for automatic x402 payment handling

Language: PythonExample: langchain-integration.py

AutoGPT

Available

AutoGPT plugin that enables automatic x402 payments for AutoGPT agents

Language: PythonExample: autogpt-plugin.py

TypeScript/JavaScript

Available

HTTP Interceptor for automatic 402 handling in any Node.js/TypeScript agent

Language: TypeScriptExample: HTTPInterceptor

Python SDK

Available

Complete Python SDK for x402 payments and token swapping

Language: PythonExample: MoltyDEX class

REST API

Available

Direct REST API integration for any language or framework

Language: AnyExample: REST endpoints

Quick Start

TypeScript/JavaScript (Easiest)

import { HTTPInterceptor } from '@moltydex/agent';

const interceptor = new HTTPInterceptor({
  apiUrl: 'https://api.moltydex.com',
  walletSecretKey: process.env.WALLET_SECRET_KEY,
  autoSwap: true,
});

// All 402 responses handled automatically!

Python

from moltydex import MoltyDEX

dex = MoltyDEX(
    wallet_path="wallet.json",
    api_url="https://api.moltydex.com"
)

# Handle 402 payments automatically

Integration Examples

LangChain

See example: examples/langchain-integration.py

View Example →

AutoGPT

See example: examples/autogpt-plugin.py

View Example →

Need Help Integrating?

Check out our examples, documentation, or reach out for help.