x402-client AGENTS.md

x402-client AGENTS.md is an instructions file for Codex, OpenCode from vybenetwork/x402-client. It costs 1,910 tokens per session, scanned A, original, MIT.

Agent instructions for making paid requests to Vybe's Solana analytics API using the x402 payment protocol. The protocol lets a client pay for an API call, and these instructions describe the Node.js setup and safety limits.

In plain words
What is it for?
Use them to discover paid API routes and make server-side requests from Node.js. They also help configure supported payment credentials while avoiding exposure of a Solana private key in a browser.
Why use it?
They explain the required package, network, endpoint discovery, payment cap, and key-handling risks. This reduces mistakes when configuring pay-per-call requests.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/vybenetwork/x402-client/agents-md
Clone the repo
git clone --depth 1 https://github.com/vybenetwork/x402-client

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for x402-client AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/vybenetwork/x402-client/agents-md.svg)](https://agentmods.dev/instructions/vybenetwork/x402-client/agents-md)
Your own site
<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>
Per session 1,910 This file is loaded in full into every session.
When invoked 1,910 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 3d ago against content hash ac8e312f4175, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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/
AGENTS.md · 143 lines

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

  1. 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 keyloadKeypair takes 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).
  2. 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).
  3. 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.

Read the full file on GitHub · 143 lines

Changes

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.

  1. 3d ago First seen · 143 lines · 1,910 tokens per session scan A ac8e312f4175

Subscribe to this mod's changes

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.

Related

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/.

bridgenode-ai/bridgenode-skill · 758 tokens

pumpfun-bonkfun-bot CLAUDE.md

Instructions for chainstacklabs/pumpfun-bonkfun-bot, covering agent guide, ground rules, layout, naming inside learning-examples/ and commands.

chainstacklabs/pumpfun-bonkfun-bot · 6,008 tokens

orquestra copilot-instructions.md

Instructions for berkayoztunc/orquestra, covering copilot instructions — orquestra, project overview, architecture, key patterns & conventions and worker route structure.

berkayoztunc/orquestra · 1,321 tokens

agent-wallet-sdk AGENTS.md

Instructions for up2itnow0822/agent-wallet-sdk, covering agents.md -- agent wallet sdk, purpose, ownership, local contracts and work guidance.

up2itnow0822/agent-wallet-sdk · 261 tokens

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.

draaujpeg/solana-uiux-onboarding-kit · 613 tokens

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.

CodeStrux/x402-stellar-kit · 3,410 tokens