Skip to content

valeo-cash/x402-agent-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

x402 Agent Starter

The simplest x402 agent with full audit trails. 30 seconds to run.

Quick Start

git clone https://github.com/valeo-cash/x402-agent-starter
cd x402-agent-starter
npm install
npm start

That's it. Your agent makes x402 payments and every transaction is tracked by Sentinel.

What happens

  1. Agent calls a paid x402 endpoint
  2. Payment is signed and settled on-chain
  3. Sentinel logs everything — agent, endpoint, amount, tx hash, timestamp
  4. View your data at sentinel.valeocash.com

Add your API key (optional)

const fetch = sentinel(globalThis.fetch, {
  agentId: "my-agent",
  apiKey: "your-key-from-sentinel-dashboard",
});

Links

Test Your Endpoints

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

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


Powered by Sentinel — the audit layer for x402.

About

The simplest x402 agent with full audit trails. 25 lines. Clone, run, done.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors