nirium-agentic-payments

nirium-agentic-payments is a skill for Claude Code, Codex from nirium-protocol/nirium-sdk. It costs 128 tokens per session (1,617 once invoked), scanned A, original, Apache-2.0.

A toolkit for charging AI agents for API requests using the x402 payment method on the Stellar blockchain. It includes software libraries, a command-line setup tool, and a server for reading protocol data.

In plain words
What is it for?
Use it to scaffold a paid TypeScript or Python API, add per-request charges with x402Serve(), configure Stellar testnet or mainnet payments, and read live protocol information.
Why use it?
It provides a defined way to require payment before an AI agent uses an API, including the account and authentication settings needed by the payment service.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to scaffold a paid TypeScript or Python API, add per-request charges with x402Serve(), configure Stellar testnet or mainnet payments, and read live protocol information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirium-protocol/nirium-sdk/nirium-agentic-payments
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.

Any agent
npx skills add nirium-protocol/nirium-sdk --skill nirium-agentic-payments
Clone the repo
git clone --depth 1 https://github.com/nirium-protocol/nirium-sdk

Made for: Claude Code, Codex.

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 nirium-agentic-payments

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirium-protocol/nirium-sdk/nirium-agentic-payments/github.svg)](https://agentmods.dev/skills/nirium-protocol/nirium-sdk/nirium-agentic-payments)
Your own site
<a href="https://agentmods.dev/skills/nirium-protocol/nirium-sdk/nirium-agentic-payments"><img src="https://agentmods.dev/badge/skills/nirium-protocol/nirium-sdk/nirium-agentic-payments/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 nirium-agentic-payments

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirium-protocol/nirium-sdk/nirium-agentic-payments"><img src="https://agentmods.dev/badge/skills/nirium-protocol/nirium-sdk/nirium-agentic-payments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,617 The whole file, excluding the scripts and references it only reads on demand.
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.00128 $0.01617
Opus 5.5 $0.00051 $0.00647
Sonnet 5.5 $0.00026 $0.00323
Haiku 4.5 $0.00013 $0.00162

Measured 1mo ago against content hash 80320184856c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nirium-agentic-payments 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 1mo 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.

skills/nirium-agentic-payments/SKILL.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nirium: charge AI agents and read live signals on Stellar

Nirium publishes open-source client libraries for x402 agentic payments on Stellar — a TypeScript/Python SDK, a scaffolding CLI, and an MCP server. x402Serve(), the function these scaffold around, runs on your own server: Nirium doesn't operate, host, or route through anything in that path, and never sees your end users' requests. It's not a demo — Nirium's own mainnet endpoint, running the identical function, has been billing real USDC over x402 since 9 July 2026. A mainnet settlement from that day, verifiable on Stellar Expert: 3134a51c…7558bc.

You're responsible for your own compliance. x402Serve() is a general-purpose library, not a service Nirium provides to your end users — you choose what to charge for, who payTo is, and which jurisdiction you operate in. You remain solely responsible for complying with the financial, tax, and consumer-protection laws that apply to your own use of it.

Do this

1. Scaffold a paid API in one command

npm install -g nirium-cli
nirium create x402 --name my-paid-api
cd my-paid-api && npm install

Fill two values in the generated .env:

Variable Where it comes from
STELLAR_PAY_TO the Stellar account that receives payments (G...)
X402_FACILITATOR_API_KEY free — keys are per network, and the scaffold defaults STELLAR_NETWORK to testnet: channels.openzeppelin.com/testnet/gen for testnet, channels.openzeppelin.com/gen for mainnet

The API key is not optional — the facilitator rejects unauthenticated servers on both testnet and mainnet, so without it your routes never get as far as offering a 402.

npm run dev

2. Charge per request with x402Serve()

The scaffolded server is about ten lines because x402Serve(), from the nirium SDK, carries the facilitator client, the scheme registration, and the route table:

Read the full file on GitHub · 144 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. 1mo ago Changed · +18 lines · +10 tokens per session 80320184856c
  2. 1mo ago First seen · 126 lines · 118 tokens per session scan A 1f1b97783e98

Subscribe to this mod's changes

nirium-agentic-payments is a skill published in the GitHub repository nirium-protocol/nirium-sdk (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 128 tokens to every session and 1,617 once invoked, about $0.0005 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-08-31.

Related

Other skills, from other repositories

x402-stellar-payments

Use when asked to "pay for" a URL, add a "paid endpoint", handle HTTP 402, or work with x402 payments on Stellar.

CodeStrux/x402-stellar-kit · 38 tokens

stellar-forge

Eval-driven coding harness for building production Stellar dApps. Routes tasks to 6 specialist agents, verifies output with structured evals, steers on failure, e2e-tests with Stellar Agentic Kit hooks, and knowledge-graphs every project. Use when building any Stellar app — tokens, DeFi, NFTs, payment APIs, or full…

rylsherdamz-rgb/stellar-forge · 82 tokens

agentic-payments

Agentic and machine-to-machine payments on Stellar. Covers x402 (HTTP 402 paid APIs) and MPP (Machine Payments Protocol) Charge/Channel modes.

rylsherdamz-rgb/stellar-forge · 38 tokens

solenrich

SolEnrich onchain intelligence API for Solana agents, pay-per-call over x402 (USDC on Solana or Base) with no API key. Use for StonkFun reward coins (gems, payout status and watchlist alerts, holder yield for one coin or 25, trade cost and payback, launch intel), wallet risk scoring, token due diligence and rug flags…

0xSardius/solenrich · 156 tokens

aomi-transact

Build natural-language crypto/DeFi agents and EVM MCP plugins (Claude Code, Cursor, Codex, Gemini). Aomi turns prompts into wallet-signed txs on Ethereum, Base, Arbitrum, Optimism, Polygon, Linea — non-custodial, fork-simulated. 40+ apps: Uniswap, Aave, Lido, Morpho, GMX, Hyperliquid, Polymarket.

sickn33/agentic-awesome-skills · 95 tokens

trading-solana

Trade tokens on Solana DEXes - Jupiter, Raydium, Orca, Meteora, Pump.fun.

alsk1992/CloddsBot · 28 tokens