@v402pay/crewai
v0.3.0
Published
CrewAI integration for v402 paid tool access
Maintainers
Readme
@v402pay/crewai
CrewAI integration for v402 — use paid tools in CrewAI agents with automatic payment.
Install
npm install @v402pay/crewai @v402pay/agentUsage
import { createAgent } from "@v402pay/agent";
import { V402CrewAITool } from "@v402pay/crewai";
const agent = createAgent({ wallet, spendingPolicy: { dailyCap: 2.0 } });
const tool = new V402CrewAITool({
agent, mcpClient,
name: "code_analysis", description: "Analyze code",
price: "0.05", currency: "USDC", merchant: "MERCHANT_WALLET",
});
const result = await tool._run({ code: "console.log('hello')" }); // payment handled automatically