Skip to content

valeo-cash/x402-langchain-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x402 LangChain Agent

A LangChain research agent that pays for data from x402 endpoints. Every payment audited by Sentinel.

What it does

  1. Agent receives a research task
  2. Uses x402 endpoints to fetch paid data
  3. All payments tracked with full audit trails
  4. Budget limits prevent overspending
  5. Cryptographic receipt for every payment

Quick Start

git clone https://github.com/valeo-cash/x402-langchain-agent
cd x402-langchain-agent
cp .env.example .env  # Add your API keys
npm install
npm start

Environment Variables

OPENAI_API_KEY=your-openai-key
SENTINEL_API_KEY=your-sentinel-key  # optional

View your agent's spending

Open sentinel.valeocash.com to see every payment your LangChain agent made — amount, endpoint, tx hash, receipt.

Test Your Endpoints

npx @x402sentinel/test https://your-endpoint.com

Verify your x402 endpoints are correctly configured before going to production.


Powered by Sentinel

About

LangChain research agent that pays for data via x402. Every payment audited by Sentinel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors