Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/vybenetwork/x402-client/agents-mdgit clone --depth 1 https://github.com/vybenetwork/x402-clientWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/vybenetwork/x402-client/agents-md)<a href="https://agentmods.dev/instructions/vybenetwork/x402-client/agents-md"><img src="https://agentmods.dev/badge/instructions/vybenetwork/x402-client/agents-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01910 | $0.01910 |
| Opus 5 | $0.00955 | $0.00955 |
| Sonnet 5 | $0.00382 | $0.00382 |
| Haiku 4.5 | $0.00191 | $0.00191 |
Grade A, and why
x402-client AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl https://x402-api.vybenetwork.xyz/ How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Vybe x402 Client — Agent Instructions
Machine-readable instructions for AI agents to make pay-per-call requests to Vybe's Solana analytics API via the x402 protocol.
Quick Reference
| Requirement | Value |
|---|---|
| Package | @vybenetwork/x402-client (npm; pre-release, pin a specific version while in beta) |
| Cost per call | $0.001–$0.010 USDC (depends on endpoint, see discovery) |
| Per-call safety cap | $0.10 USDC default (refuses to sign 402s above this; tune via maxUsdPerCall) |
| Network | Solana Mainnet |
| API URL | https://x402-api.vybenetwork.xyz (distinct from api.vybenetwork.xyz, which is the API-key subscription endpoint) |
| Discovery | GET https://x402-api.vybenetwork.xyz/ (network, payTo, per-route pricing) |
| Vybe API reference | https://docs.vybenetwork.com/reference |
Prerequisites
- Node.js 20+ runtime. The SDK is also browser-compatible for HTTP (see README "Browser" section), but do not run it in a browser with a raw private key —
loadKeypairtakes the full keypair, which would be exposed to any user, extension, or DevTools tab with page access. Server-side Node is the realistic target today; production browser usage needs wallet-adapter signing (not yet supported). - A dedicated funded Solana wallet (do not reuse a wallet you also use for trading or other activity — the SDK signs USDC transfers per call, so mixed-purpose wallets create fragile bookkeeping and risk unintended charges):
- USDC (mainnet, mint
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) — pays per call. $0.50 covers ~500 default calls. - SOL is NOT required for the client wallet. The x402 API pays Solana gas on every transfer. The wallet only needs USDC and an associated USDC token account (created the first time anyone sends USDC to it).
- USDC (mainnet, mint
- A Solana RPC URL. The SDK signs each payment client-side, which makes 2 RPC calls per paid request (
fetchMint+getLatestBlockhash).- Public mainnet RPC works for sequential demo use (~5 RPS ceiling).
- For any concurrency, use a paid tier. Helius free tier gives 10 RPS, no card.
- Helius offers an agent-friendly CLI signup: see https://dashboard.helius.dev/agents.md — pays 1 USDC, returns an API key in JSON.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 143 lines · 1,910 tokens per session scan A ac8e312f4175
x402-client AGENTS.md is an instructions file published in the GitHub repository vybenetwork/x402-client (166 stars, last pushed 3mo ago), licensed MIT. It adds 1,910 tokens to every session, about $0.0095 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
bridgenode-skill AGENTS.md
AGENTS.md instructions for bridgenode-ai/bridgenode-skill, covering agents.md — bridgenode skill & examples, what bridgenode is, how an agent pays (x402 flow, 4 steps), quick start (buyer side) and curl — full flow in examples/.
pumpfun-bonkfun-bot CLAUDE.md
Instructions for chainstacklabs/pumpfun-bonkfun-bot, covering agent guide, ground rules, layout, naming inside learning-examples/ and commands.
orquestra copilot-instructions.md
Instructions for berkayoztunc/orquestra, covering copilot instructions — orquestra, project overview, architecture, key patterns & conventions and worker route structure.
agent-wallet-sdk AGENTS.md
Instructions for up2itnow0822/agent-wallet-sdk, covering agents.md -- agent wallet sdk, purpose, ownership, local contracts and work guidance.
solana-uiux-onboarding-kit CLAUDE.md
Instructions for draaujpeg/solana-uiux-onboarding-kit, covering solana ui/ux onboarding kit, language, where the truth lives, commands and always.
x402-stellar-kit AGENTS.md
AGENTS.md instructions for CodeStrux/x402-stellar-kit, covering working with x402-stellar-kit, the one invariant, production seams, bootstrapping accounts across a custody boundary and add x402 to an existing api.