x402 + viem, handling ESM/CJS, prefixing the key with 0x, and knowing the payload is x402Version 1 while the challenge is version 2.
@xintel/agent bakes all of that in. It’s one package that runs as both a CLI and an MCP server, so an agent can buy a report in a single command with no crypto toolchain to bootstrap.
Buys shared report bodies only — never profile, posts, or edges. Same product and pricing as the HTTP API (
$0.01 USDC per report on Base).CLI (npx)
Nothing to install —npx fetches and caches it:
--json to any command for the raw response. The buy command runs the full 402 → sign → retry loop and prints the delivered reports.
MCP server
Add Xintel to any MCP-aware host (Cursor, Claude Desktop) — the same package, started with themcp subcommand:
Environment
When to use what
- MCP — best for hosted agents (Cursor, Claude Desktop). One-time
mcp.jsonentry, then the agent calls tools directly. - CLI (
npx) — best for scripts, cron, or agent frameworks (LangChain, CrewAI) that shell out. Zero setup per run. - Raw HTTP — see the Quickstart if you’d rather implement the flow yourself or can’t run Node.
$0.01/report pricing.