@x402sentinel/langchain
v0.1.0
Published
Sentinel tool for LangChain — audit x402 payments in agent chains
Maintainers
Readme
@x402sentinel/langchain
Sentinel tool for LangChain agents. Every x402 payment your chain makes is audited.
Install
npm install @x402sentinel/langchain @x402sentinel/x402Usage
import { SentinelX402Tool } from "@x402sentinel/langchain";
const tools = [
new SentinelX402Tool({ agentId: "research-agent" }),
];
// Use in your LangChain agent — all x402 payments trackedWith API key
const tools = [
new SentinelX402Tool({
agentId: "research-agent",
apiKey: "your-api-key",
}),
];How it works
SentinelX402Tool extends LangChain's Tool class. When an agent calls it with a URL, it makes the request through Sentinel-wrapped fetch. Every x402 payment is automatically logged with full audit data.
Links
License
MIT
