web-scrapingcryptomemoryx402payments

More than 120 pay-per-call tools for agents in one package: web scraping to Markdown, token safety checks before a swap, smart-money and whale tracking, agent memory and inboxes, PDF and OCR, company and sanctions checks. Paid per call with a prepaid credit token or USDC via x402, no subscription.

Installation

pnpm add agentsvc
# Add to your .env file
AGENTSVC_CREDIT_TOKEN=your_api_key_here

Usage

import { generateText, isStepCount } from 'ai';
import { createAgentsvc } from 'agentsvc';
import { agentsvcTools } from 'agentsvc/ai-sdk';

const svc = createAgentsvc({
  creditToken: process.env.AGENTSVC_CREDIT_TOKEN,
});

const { text } = await generateText({
  model: 'anthropic/claude-haiku-5.5',
  tools: await agentsvcTools(svc, ['web-scrape', 'token-precheck', 'token-smart-money']),
  stopWhen: isStepCount(5),
  prompt:
    'Is BRETT (0x532f27101965dd16442E59d40670FaF5eBB142E4) on Base safe to buy, and who is buying it right now?',
});

console.log(text);