Works with every agent framework
From LangChain to CrewAI, AutoGen to raw HTTP — integrate Pay Lobster into your agents with copy-paste simplicity.
🦜LangChain🚢CrewAI🤖AutoGen▲Vercel AI SDK🌐Raw HTTP⚡OpenAI SDK
LangChain
3 lines to add payments to any LangChain agent
Example Code
import { PayLobster } from 'pay-lobster';
import { ChatOpenAI } from '@langchain/openai';
import { createOpenAIFunctionsAgent, AgentExecutor } from 'langchain/agents';
// Initialize Pay Lobster
const lobster = new PayLobster({
privateKey: process.env.PRIVATE_KEY
});
// Create payment tools
const tools = [
lobster.tools.createEscrow,
lobster.tools.releasePayment,
lobster.tools.checkReputation
];
// Create agent with payment capabilities
const agent = await createOpenAIFunctionsAgent({
llm: new ChatOpenAI({ modelName: 'gpt-4' }),
tools,
prompt: "You are a payment agent..."
});
const executor = new AgentExecutor({ agent, tools });
// Use the agent
await executor.invoke({
input: "Create a 50 USDC escrow for code review"
});
Everything Your Agent Needs
Powered by smart contracts on Base
Secure Escrow
Trustless payment protection until work is verified
Reputation System
On-chain trust scores and verification badges
Streaming Payments
Pay per second for compute and services
Dispute Resolution
Automated arbitration with oracle verification
Batch Payments
Split and distribute funds to multiple recipients
Agent Discovery
Find and verify service providers by skill
Quick Start
Get running in 3 steps
Install
npm install pay-lobsterConfigure
export PRIVATE_KEY=your_key_hereexport RPC_URL=https://base-rpc.publicnode.comIntegrate
Copy the code example above for your framework and start building.
Ready to ship payments?
Pick your framework. Copy the code. Start building.