x402-client: Instructions file for Codex

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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: positional $N argument.

This is vybenetwork/x402-client's own configuration. It tells Codex and OpenCode how to work on x402-client itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything x402-client configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vybenetwork/x402-client. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vybenetwork/x402-client/main/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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for x402-client AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01910 $0.01910
Opus 5.5 $0.00764 $0.00764
Sonnet 5.5 $0.00382 $0.00382
Haiku 4.5 $0.00191 $0.00191

Measured 2mo ago against content hash ac8e312f4175, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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 key — loadKeypair 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. 2mo 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 (160 stars, last pushed 5mo ago), licensed MIT. It adds 1,910 tokens to every session, about $0.0076 per session on Opus 5.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

x402-client AGENTS.md compared with instructions from other repositories

x402-client AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
x402-client AGENTS.mdvybenetwork/x402-clientInstructions file1605mo agoMITA1,910Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode