nirium-agentic-payments

nirium-agentic-payments is a skill for Claude Code, Codex from nirium-protocol/nirium-sdk. It costs 118 tokens per session (1,378 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

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 skills/nirium-protocol/nirium-sdk/nirium-agentic-payments
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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,378 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00118 $0.01378
Opus 5 $0.00059 $0.00689
Sonnet 5 $0.00024 $0.00276
Haiku 4.5 $0.00012 $0.00138

Measured 3d ago against content hash 1f1b97783e98, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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 · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 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 is an open-source toolkit for x402 agentic payments on Stellar: a TypeScript/Python SDK, a scaffolding CLI, and an MCP server. It is not a demo — the mainnet endpoint has been billing real USDC over x402 since 9 July 2026. A mainnet settlement from that day, verifiable on Stellar Expert: 3134a51c…7558bc.

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:

import { x402Serve } from 'nirium';

app.use('/premium', x402Serve({
    payTo: 'G...',
    routes: { 'GET /signals': '$0.02' },
}));

A caller without payment gets a 402 carrying the terms; one that pays gets the data, and the USDC transfer settles on Stellar before your handler returns. No subscription, no card, no invoice, no human in the middle. This is the exact pattern Nirium's own mainnet endpoint runs in production against real callers — see the devlog for a real incident (and its fix) from operating it at scale: docs/devlog.md.

Read the full file on GitHub · 126 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 · 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 4d ago), licensed Apache-2.0. It adds 118 tokens to every session and 1,378 once invoked, about $0.0006 per session on Opus 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

portfolio

Cross-chain DeFi portfolio discovery, rebalancing suggestions, and NEAR Intent construction. Activates when the user pastes a wallet address or asks about yield/positions/rebalancing. Bootstraps a per-user "portfolio" project, aggregates positions across all the user's addresses inside one project, and offers a…

suyoumo/ClawProBench · 69 tokens

memstack-business-scope-of-work

Use this skill when the user says 'scope of work', 'SOW', 'define scope', 'project scope', 'write SOW', 'scope document', or is defining project boundaries, deliverables, and acceptance criteria for a formal engagement. Do NOT use for proposals, contracts, or invoicing.

cwinvestments/memstack · 70 tokens

okx-cex-earn

Manages OKX Simple Earn (flexible savings/lending), Flash Earn, On-chain Earn (staking/DeFi), Dual Investment (DCD/双币赢), and AutoEarn (自动赚币) via the okx CLI. Use this skill whenever the user wants to check earn balances, browse flash-earn projects, subscribe or redeem earn products, view or set lending rates, monitor…

okx/agent-trade-kit · 274 tokens

crypto-market-rank

Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…

tradecatlabs/tradecat-public · 85 tokens

copy-trading

Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading.

agiprolabs/claude-trading-skills · 21 tokens

strategy-framework

Standardized template for defining trading strategies with entry rules, exit rules, position sizing, risk parameters, and performance criteria.

agiprolabs/claude-trading-skills · 26 tokens