@axiomworks/agentreader

中文文档
1.45.0发布于 2026/11/08MITTypeScriptES Module近 30 天下载 9412

Axiom Works AgentReader typed JS/TS SDK — createClient({ privateKey }) with one method per tool, auto x402 USDC payment on Base, free preview mode. Web read, UK company/charity/property, US SEC, EU VAT, GLEIF LEI, EVM, FX, search.

原始使用文档
文档目录3 节
  1. x402 payments
  2. Methods (USDC prices)
  3. MCP for Claude Desktop / Cursor

@axiomworks/agentreader

Typed JS/TS SDK for Axiom Works AgentReader — pay-per-call tools for AI agents.

Not affiliated with other products named “AgentReader”. This is Axiom Works AgentReader at api.axiomworks.co.uk.

npm i @axiomworks/agentreader
import { createClient } from "@axiomworks/agentreader";

// Preview mode (no key): free truncated samples
const preview = createClient();
console.log(await preview.checkDomain({ domain: "example.com" }));

// Paid mode: auto x402 USDC on Base
const client = createClient({ privateKey: process.env.AGENTREADER_PRIVATE_KEY });
const report = await client.ukCompanyLite({ number: "00445790" });

Also reads AGENTREADER_PRIVATE_KEY / EVM_PRIVATE_KEY / PRIVATE_KEY from the environment when privateKey is omitted.

x402 payments

Paid routes return HTTP 402. With a private key, the SDK wraps fetch via @x402/fetch + ExactEvmScheme (@x402/evm) and settles USDC on Base (eip155:8453) automatically (EIP-3009 — no ETH gas for the payer).

Without a key, GET methods append preview=1 (free truncated JSON, 8/IP/day). A paid response without settlement throws PaymentRequiredError with the payment requirements attached.

import { createClient, PaymentRequiredError } from "@axiomworks/agentreader";

try {
  await createClient().ukCompany({ number: "00445790" }); // preview unless key set
} catch (e) {
  if (e instanceof PaymentRequiredError) console.log(e.paymentRequired);
}

Methods (USDC prices)

MethodRoutePrice
readUrl({ url })/read$0.002
extractLinks({ url })/links$0.001
checkDomain({ domain })/check$0.001
companyResearch({ domain })/company$0.25
ukCompany({ number?, name? })/uk-company$0.50
ukCompanyLite({ number?, name? })/uk-company-lite$0.05
companyFull({ domain })/company-full$0.65 multi-registry
ukCharity({ number?, name? })/uk-charity$0.05
ukCharityFull({ number?, name? })/uk-charity-full$0.25
convertDocument({ url, format? })/convert$0.03
createMonitor({ url, webhook, … })POST /monitor$1.00 / 30d
walletBalances({ address, chain? })/wallet$0.003
txStatus({ hash, chain? })/tx$0.003
tokenCheck({ address, chain? })/token-check$0.01
fxRates({ base?, symbols?, … })/fx$0.002
ensLookup({ name?, address? })/ens$0.002
tokenMetadata({ address, chain? })/token$0.001
tokenAllowance({ token, owner, spender })/allowance$0.002
contractInfo({ address, chain? })/contract$0.003
gasFees({ chain? })/gas$0.001
blockLookup({ number?, timestamp? })/block$0.001
nftLookup({ contract, token_id, chain? })/nft$0.002
webSearch({ q })/search$0.003
ukPropertyPrices({ postcode })/uk-property$0.01
ukAreaProfile({ postcode })/uk-area$0.005
pricing()/.well-known/x402free

Pass { preview: true } / { preview: false } on any call to override the default.

const client = createClient({ privateKey: "0x…" });
// Force a free truncated sample even with a key:
await client.companyResearch({ domain: "stripe.com" }, { preview: true });

MCP for Claude Desktop / Cursor

Prefer the companion package:

npx -y @axiomworks/agentreader-mcp
{
  "mcpServers": {
    "agentreader": {
      "command": "npx",
      "args": ["-y", "@axiomworks/agentreader-mcp"],
      "env": { "AGENTREADER_PRIVATE_KEY": "0x…" }
    }
  }
}

MIT © Axiom Works · [email protected]

版本与发布记录

@axiomworks/agentreader 共发布 80 个版本,首次发布于 2026/11/05;过去 12 个月发布了 80 个版本。

版本发布日期距今
1.45.0latest2026/11/08今天
1.44.02026/11/08今天
1.43.02026/11/08今天
1.42.02026/11/07今天
1.41.02026/11/07今天
1.41.12026/11/07今天

关于 @axiomworks/agentreader 的常见问题

@axiomworks/agentreader 是什么?

Axiom Works AgentReader typed JS/TS SDK — createClient({ privateKey }) with one method per tool, auto x402 USDC payment on Base, free preview mode. Web read, UK company/charity/property, US SEC, EU VAT, GLEIF LEI, EVM, FX, search.

如何安装 @axiomworks/agentreader?

在项目目录运行 npm install @axiomworks/agentreader,或使用 pnpm add / yarn add / bun add。

@axiomworks/agentreader 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@axiomworks/agentreader 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@axiomworks/agentreader 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@axiomworks/agentreader 可以商用吗?

@axiomworks/agentreader 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@axiomworks/agentreader 的下载量有多少?

根据 npm 官方下载统计,@axiomworks/agentreader 在 2026/10/08 – 2026/11/06 这 30 天内被下载 9,412 次,日均约 314 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@axiomworks/agentreader 还在维护吗?

最新版本 1.45.0 发布于 2026/11/08(今天);至今共发布 80 个版本,其中过去 12 个月发布了 80 个;首次发布于 2026/11/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。