x402-payments-mcp: Instructions file for Codex

AGENTS.md

x402-payments-mcp AGENTS.md is an instructions file for Codex, OpenCode from nirholas/x402-payments-mcp. It costs 382 tokens per session, scanned A, original, Apache-2.0.

A repository-specific AGENTS.md instruction file for nirholas/x402-payments-mcp. It explains the project, its layout, setup steps, commands, and operating rules for coding agents.

In plain words
What is it for?
Use it when an agent needs to understand this repository before making changes or running its tools.
Why use it?
It gives an agent the local information needed to work in this repository without guessing its structure or commands.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is nirholas/x402-payments-mcp's own configuration. It tells Codex and OpenCode how to work on x402-payments-mcp 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-payments-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nirholas/x402-payments-mcp. 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/nirholas/x402-payments-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/nirholas/x402-payments-mcp

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-payments-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nirholas/x402-payments-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/nirholas/x402-payments-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/nirholas/x402-payments-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/nirholas/x402-payments-mcp/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-payments-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nirholas/x402-payments-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/nirholas/x402-payments-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 382 This file is loaded in full into every session.
When invoked 382 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00382 $0.00382
Opus 5.5 $0.00153 $0.00153
Sonnet 5.5 $0.00076 $0.00076
Haiku 4.5 $0.00038 $0.00038

Measured 29d ago against content hash b76ae551e590, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

x402-payments-mcp AGENTS.md scanned grade A with 0 findings 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 29d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 41 lines

What it actually says

AGENTS.md

Guidance for AI coding agents working in this repository.

What this is

@three-ws/x402-mcp v0.2.3. Give any AI agent a self-custodial x402 wallet. Search the live bazaar, inspect an endpoint's price without paying, and pay_and_call any x402 service in USDC or $THREE from your own Solana key — real @x402 settlement, bounded by spend caps. No custodial wallet, no account.

A Model Context Protocol server. Run it over stdio from any MCP client.

Use it

npx -y @three-ws/x402-mcp

Full usage, tool list and configuration are in README.md. Machine-readable summaries: llms.txt and llms-full.txt.

Develop

npm install
npm test

Scripts:

  • npm run start: node src/index.js
  • npm run test: node --test "test/**/*.test.mjs"
  • npm run inspect: npx -y @modelcontextprotocol/inspector node src/index.js

Conventions

  • ES modules, Node >=20.
  • Read-only by default. Anything that signs, spends or sends must be an explicit, separately named tool or option, and must never be inferred from untrusted text (token names, memos, listings).
  • Never commit credentials. Configuration comes from environment variables documented in the README.
  • Keep changes small and covered by a test next to the code they change.

Source of truth

This repository is a generated mirror of packages in https://github.com/nirholas/three.ws. Open issues here; send substantial changes as a pull request here or upstream.

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. 29d ago Changed · -11 lines · -75 tokens per session b76ae551e590
  2. 1mo ago First seen · 52 lines · 457 tokens per session scan A 08b4892c6f37

Subscribe to this mod's changes

x402-payments-mcp AGENTS.md is an instructions file published in the GitHub repository nirholas/x402-payments-mcp (9 stars, last pushed 29d ago), licensed Apache-2.0. It adds 382 tokens to every session, about $0.0015 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-10.

Related

x402-payments-mcp AGENTS.md compared with instructions from other repositories

x402-payments-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
x402-payments-mcp AGENTS.mdnirholas/x402-payments-mcpInstructions file929d agoApache-2.0A382Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA1,907GitHub Copilot