Skip to content

About

Receipts anyone can check (Audit Trail), x402 payments and Reporting on Stellar. Soroban contracts (Rust), the nirium.xyz web app and fuzz targets. Non-custodial.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

535 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Nirium Core

CI Security Gate

Money moves because of a document that can change. Nirium records the version it moved on, signed by whoever declares it, so anyone can check which one it was: Audit Trail, Reporting and x402 payments, live on Stellar mainnet.

This is the Nirium monorepo: the Soroban contracts, the nirium.xyz web app, the fuzz targets and copies of the client packages. The packages published to npm and PyPI (TypeScript and Python packages, CLI, MCP server) are developed and released from nirium-protocol/nirium; the copies under packages/ here can trail those releases. The source-verified NiriumVault build on Stellar Expert points to this repository.

Nirium also runs on other chains, each in its own repo: nirium-solana and nirium-avalanche, with first versions on Base and Arbitrum. See nirium.xyz/chains.

Reviewing Nirium? FOR-REVIEWERS.md is a ten-minute path through things you can check yourself, and every piece of evidence, with its network and date, is in EVIDENCE.md. Verify any receipt with no account at nirium.xyz/verify.


⚠️ LEGAL DISCLAIMER

Nirium is experimental software. Nirium's own NiriumVault contract remains on Stellar Testnet, audit-gated: no independent third-party audit has occurred yet, and no real client funds ever reach it.

On mainnet, Nirium runs receive-only nodes: x402 micropayments, IPFS audit anchoring and Reporting. The mainnet API box holds no signing key; the client signs every payment. MPP Charge is experimental: verified with settled payments on testnet (15 Oct 2026), never settled on mainnet. Nirium never custodies funds.

Treasury and Payouts were tested only with the team's own funds and discontinued on 30 Nov 2026.

Nirium is not financial advice. It is not an investment product. It does not guarantee yields, dividends, asset appreciation, or returns of any kind. Reference rate data shown on the site is public protocol information only. XLM and Stellar assets are volatile. Smart contracts carry risk even when audited. Use at your own risk.

This project does not use grant funds for speculation, trading, investment advice, or marketing of products promising interest or appreciation, in accordance with the Stellar Community Fund Official Rules.


Nirium is software, not a financial service, for fintechs, developers and AI agents rather than consumers.

Nodes

# Node Status Network What it does
1 Settlement (x402; MPP Charge experimental) x402 ✅ Active · MPP ⚠️ Experimental both Per-request micropayments for AI agents. Pay for others' APIs with initX402(), charge for your own with x402Serve(). x402Serve() is a library that runs on the integrator's own server; Nirium does not operate or gate it, and compliance is the integrator's own responsibility.
2 Audit Trail ✅ Active both Evidence anchored to IPFS as tamper-evident receipts (a changed document no longer matches its CID), optionally signed by whoever declares it (ed25519 over a domain-separated statement). A receipt is worth what the ledger doesn't hold: what a payment was for, payments a policy refused, off-chain records.
3 Reporting ✅ Active both Summaries and CSV/JSON exports over anchored receipts. Read-only; regulatory filings remain the client's responsibility.
4 Policy Gate ✅ Active both Routes every outgoing x402 payment through your own policy engine before it is signed (initX402({ policy })). A deny, timeout or stale answer signs nothing. It wraps the signing call inside the same process that holds the key, so direct access to that signer bypasses it.
- Treasury Rebalance, Payouts Discontinued 30 Nov 2026 - Tested only with the team's own funds. Code archived, not deleted; the node answers 410.

Live catalog: GET /api/nodes.


What runs where, and how to check it yourself

Every claim below is a link. Nothing here asks to be believed.

flowchart TB
    subgraph YOU["Your side: your keys"]
        APP["Your app, backend or AI agent<br/>nirium package, CLI or MCP"]
        KEY["Your key or wallet<br/>(Stellar keypair, SEP-43, Pollar)"]
    end
    subgraph NIRIUM["Nirium: no client funds"]
        API["Agent API on Fly<br/>mainnet box is receive-only,<br/>holds no signing key"]
        WEB["nirium.xyz<br/>/verify, /stats"]
    end
    FAC["x402 facilitator<br/>independent: OpenZeppelin"]
    STELLAR[("Stellar<br/>USDC payments")]
    IPFS[("IPFS<br/>receipt hashes")]
    KEY -- "signs every payment" --> APP
    APP -- "x402 payment" --> FAC
    FAC -- "settles" --> STELLAR
    APP -- "anchor a receipt hash" --> API
    API -- "pins" --> IPFS
    WEB -- "anyone verifies a CID" --> IPFS
Loading

Status at a glance

Product Status
x402 Live on mainnet (last settled payment 24 Nov 2026, our own test)
Audit Trail Live on mainnet (44 anchors, the last on 25 Nov 2026, our own notice)
Reporting Live on mainnet
Policy hook (pre-sign ALLOW/DENY) Experimental (TypeScript package; Python since 0.12.9)
MPP Charge Testnet only (the client fails on nirium 0.20.0 and 0.21.0; use 0.19.8)
Treasury and Payouts Tested only with the team's own funds and discontinued on 30 Nov 2026

The tables below back each row with a transaction hash or a live endpoint. Statuses checked against Horizon and the live API on 28 Nov 2026; Treasury, Payouts and the closed endpoints re-checked on 2 Dec 2026.

Mainnet (real value)

What Status Verify
API box Live, receive-only, holds no signing key, enforced at startup /health · /api/nodes
x402: first real payment Settled 9 Jul 2026 8a2487b8…d73170
x402: most recent settled payment 24 Nov 2026 (our own test of nirium 0.20.0; before it, AgentLedger's test of the pre-sign policy hook on 18 Nov 2026, whose founder works with Nirium part-time), checked against the recipient account on 25 Nov 2026 (UTC) GCLBBPON…ZWKBHP
x402: paid from a social login (Pollar) Settled 5 Aug 2026, holding zero XLM end to end e4fa3df9…16ed9
nirium-pollar-adapter: end-to-end from a clean npm install Settled 27 Jul 2026, standard Stellar keypair signer (the pluggable-signer test, not Pollar-specific) 48136451…3795e · receipt QmRzgTtVPg… · Update, 2026-10-07: the receipt above no longer resolves on the Pinata gateway (404 on two checks). The original bytes are not kept in this repo, so it was not re-pinned under the same CID. The payment itself is verifiable on Stellar Expert. Update, 2026-11-10: the receipt resolves again - 200 on both the Pinata gateway and nirium.myfilebase.com.
MPP Charge Experimental: implemented, charge.enabled: true on both networks; testnet verified 2026-10-15 with settled payments in pull and push mode (b8c4ed56…, 96d43d6f…); mainnet unverified, no confirmed mainnet settlement (Update, 2026-10-07, checked live against Horizon and /api/v1/mpp/info: this row previously read "Live: market charges and delivers" without a transaction hash, unlike every other row in this table. A 2026-10-01 end-to-end test found the testnet box rejecting real payment proofs with verification-failed, including a push flow where the payment settled on-chain but the content was never delivered; the root cause was not determined. No MPP Charge-tagged credit appears anywhere in the mainnet recipient's payment history, past or since. Update, 2026-10-15: re-tested with nirium@0.16.1 against the testnet box: pull and push both settled and delivered, so the 1 Oct failure no longer reproduces. Mainnet is still untested.) /api/v1/mpp/info
Audit + Reporting Live /api/audit/info · /api/reporting/info
MPP Channel mode ❌ Not on mainnet: deposit contract = temporary custody, same audit gate channel.enabled: false
LCP legal layer ❌ Off: terms pending a written legal opinion n/a

The transactions from the Treasury tests stay public in EVIDENCE.md section 7.

Testnet (no real value)

What Status Verify
API box Live /health · /api/nodes
NiriumVault Live, source-verified on Stellar Expert (9 Nov 2026): treasury, delegation, flash loans, emergency pause (2-of-3 once cosigners are registered; none yet) CDMFURE6…QOI2S2
NiriumProtocol Testnet, deployed 25 Oct 2026: no agents or strategies registered yet (checked 17 Nov 2026) CBKCTMTC…CNSXX
Policy Account Live: one CallContract rule, no Default rule CCZW2WIF…B5LML
x402 market Live and paid /api/v1/premium/market → 402

Signed audit evidence (anyone can verify with only the CID)

Each document carries an ed25519 signature over nirium-audit-v1:<content_sha256>, so the CID proves not only that the fact is unaltered, but who declared it.

Document CID
Milestone attestation QmYNvmR7C5Fivm7G1THbo5qd7jCp1nYoWMDkbmBmHibYvk · Update, 2026-10-07: this CID returned 404 on two checks against the Pinata gateway, so it is not currently retrievable from there. Update, 2026-11-10: resolves again - 200 on both the Pinata gateway and nirium.myfilebase.com.
Dispute attestation QmSSZdtt3dQ8BqUm62zrKQ85E4BUHYiVfvDgZmHfJsqU1U · Update, 2026-10-07: the Pinata gateway answered 404 on one check and 200 on another, so availability is intermittent. Verify before relying on this link. Update, 2026-11-10: 200 on both the Pinata gateway and nirium.myfilebase.com.

Why now

Market context, high-confidence sources only - this is not traction (see the next section for that), and none of it implies any relationship with Nirium unless stated.

  • Mastercard published Verifiable Intent (mastercard.com), an open standard for proving what a user actually authorized in an agent payment. Its own spec repo has two open issues asking the exact question Audit Trail already answers: #37 ("does VI check that a purchase matches what the user asked for, not only that it was authorized?") and #42 (what evidence anchors a decision after the fact). Verifying the payment is not the same problem as verifying the decision - that gap is Audit Trail's whole premise.
  • MPP shipped on a production mainnet: Stripe and Tempo launched the Machine Payments Protocol on Tempo's mainnet in March 2026 (theblock.co). Nirium's own MPP Charge mode is testnet-only (see the status table above) - cited here as evidence the protocol itself is moving toward production elsewhere, not as our own traction.
  • Institutional auto-renewal infrastructure went live on Stellar: Ascend and M1X Global completed the first institutional repo on Stellar using a sovereign-bond-backed stablecoin, with 72 automated hourly rolls over three days, announced 23-oct-2026 (businesswire.com). Unrelated to Nirium - cited only as a market signal that institutional-grade automation is landing on this chain.

Market Traction: Developer Adoption & Verifiable On-Chain Activity

Traction is self-generated and independently verifiable. It does not depend on third-party announcements:

  • Published packages on npm and PyPI (nirium) with recorded downloads across multiple versions.

  • Real mainnet activity: x402 micropayments settling in production (hashes above).

  • Open API + free sandbox keys, so any developer can integrate and exercise the contracts directly.

  • Real upstream engagement - issues we filed and fixes we shipped against the Stellar and x402 ecosystems, most recent first. Every row links to the public thread; every row's status was re-checked against the GitHub API on 2026-11-22 and still matches what it says. A list of merged upstream pull requests is also kept in the nirium README.

    Date Where What we reported / did Outcome
    2026-11-19 x402-foundation/x402#4321 The Stellar exact facilitator rejects every payment to a muxed (M...) payTo, because it does not read CAP-67 transfer events. Proposed fix in draft #4322. Open; the fix PR stays a draft until a maintainer reviews it. The same gap in the MPP SDK was filed independently as stellar/stellar-mpp-sdk#89 (open).
    2026-10-22 x402-foundation/x402#3338 A documented ceiling on SettlementOverrides.amount (never more than PaymentRequirements.amount) was never actually enforced. Fix lives in @x402/core's resource server, upstream of any one integrator. Merged by maintainer CarsonRoscoe. Team-wide upstream contribution, not exclusive to this product - the same author also ships Periplo on x402, and both projects' own traction docs cite this merge.
    2026-10-22 x402-foundation/x402#3339 Docs: areFeesSponsored: false is accepted on the Stellar scheme constructor with no validation, and the resulting limitation wasn't cross-referenced where a developer would read it. Fix lives in @x402/mechanisms/stellar's facilitator scheme, the shared Stellar mechanism every x402-on-Stellar integrator imports. Merged by maintainer CarsonRoscoe. Team-wide upstream contribution, not exclusive to this product - see the #3338 note above.
    2026-09-09 stellar/stellar-mpp-sdk#68 Two mainnet SAC contract addresses in the official MPP SDK fail Stellar's own StrKey validation (USDC_SAC_MAINNET 54 chars, XLM_SAC_MAINNET 55) - we wrote the fix. Merged as #69. Follow-up #72 (contributor jeesunikim, open) derives the literals from asset code + network passphrase so the typo class can't recur.
    2026-09-09 OpenZeppelin/relayer-plugin-x402-facilitator#47 OpenZeppelin's mainnet x402 facilitator sponsor (GA5SXMFJ…) has gone 30+ days with zero successful settlements while still listed as the sole stellar:pubnet signer - the mainnet paid path is down for every integrator. Fixed and closed by an OpenZeppelin maintainer on 2026-09-14. After a month across two official channels the facilitator was restored; we confirmed it with an unmodified mainnet payment on 2026-09-11 and a second integrator confirmed the same on 2026-09-12. Update, 2026-10-12 (checked against the GitHub API that day): this row previously read "Open ... investigating"; the issue closed on 2026-09-14 and the row had not been revisited.
    2026-09-05 stellar/stellar-dev-skill#97 Production patterns for x402 + MPP, through multi-round review from the Foundation's own bot. Merged. The review surfaced two real security bugs in our own production code - a paid route that could silently serve for free when its payment middleware wasn't initialized - fixed in MPP (c54c707d) and, once confirmed live, in the mainnet-settling x402 route (e88b2360).
    2026-08/09 stellar/js-stellar-sdk#1655, #1683, #1681, #1700 Delegate-signing path (needsNonInvokerSigningBy()/signAuthEntries()/authorizeEntry()) wasn't walking CAP-71 delegate trees or verifying signers beyond the root node. Our own PR for this, #1672, never merged - replaced by the maintainer's own fix. #1655 fixed via maintainer's PR #1747 (28-sep); #1683 via PR #1742 (24-sep); #1681 via PR #1743 + #1744, closed by us after confirming both merged; #1700 closed via a docs-only PR (#1745) documenting the gap as a known limitation, not a code fix. A fifth report, #1699, we withdrew ourselves as not_planned - never a real bug.
    2026-09-02 stellar/smart-account-kit#7 Uncapped @stellar/stellar-sdk peer range lets a routine install resolve a version whose API removed a method the library calls in 9+ production files - a runtime crash, live today. Fixed by the maintainer (PR #10, merged 2026-09-08, caps the SDK range at ^16.3.0); issue closed as completed.
    Protocol 28 OpenZeppelin/stellar-contracts#865 A non-exhaustive match on ContractExecutable in production code that compiles clean today but fails to build (error[E0004], reproduced against the real compiler) the day the crate's soroban-sdk pin moves to 28.x - ahead of the 2026-09-16 mainnet vote. Fixed by the maintainer (#866, fix #865, merged 2026-09-26): get_validated_context_by_id now handles ContractExecutable::ExternalRef, and main pins stable soroban-sdk 28.0.0. Reported 2026-09-02, closed as completed 2026-09-26.
    2026-08 x402-foundation/x402#3171 Reported a crash in @x402/core when payload.accepted is null/undefined. Fixed - external contributor JasonColapietro wrote and merged #3180.
    2026-08 stellar/stellar-dev-skill#96 Add Nirium to the Foundation's community developer-skills catalog. Merged.
    2026-08 OpenZeppelin/stellar-contracts#840 Read the fee-abstraction Lazy-mode expiration check as validating the wrong value; proposed a fix (#844). Closed - maintainer treats the Lazy-mode value as intended behavior. Our reading, corrected by theirs.
    2026-08 x402-foundation/x402#3148 Original header claim was corrected by a reviewer; reframed as a proposal for a payment-rejection reason-code vocabulary, grounded in five measured failure modes from production integrators. Open, awaiting maintainer response on the proposal.
  • From Fer, founder of AgentLedger, who now also works with Nirium part-time:

    "We verify everything a 402 claims, whoever it comes from, and with Nirium it all checked out... And when things did come up, they got resolved fast. They warned us about a risk in our integration - that the collection account rotated on mainnet - before it bit us, and the bugs we reported were fixed the same day, not in the next release. That tells me more than any number on a landing page."

    • Fer, AgentLedger

We provide the middleware; independent operators (e.g. Etherfuse) execute settlement under their own rules. We are open to integration conversations with regional fintechs. We have six signed letters of intent: Pollar, Trustless Work, TIA, AgentRail, Aldo Hernández / KINEGuard and AgentLedger, listed in EVIDENCE.md section 12. A letter of intent states what each side means to build; it is not a pilot, a paid engagement, or production use, and we make no claim of signed pilots.

Update, 2026-10-12: this sentence previously read only "make no claim of signed pilots". That was still true, but it left out the two letters of intent signed by then (Pollar on 2026-10-08, Trustless Work in October 2026). Update, 2026-11-10: four more letters were signed since; the count above was two until today. None of the six counterparties is running Nirium in production today.


Architecture

Fintech, developer or AI agent
        |
        v
  [Next.js 15 site: nirium.xyz, EN / ES]
        |
        v
  [Agent API: dual network]
        |-- nirium-agent.fly.dev          (testnet)
        |-- nirium-agent-mainnet.fly.dev  (mainnet, receive-only, NO signing key by design)
        |-- Auth (JWT / API key / sandbox tiers)
        |-- x402 + MPP payment middleware
        |-- Sliding-window rate limiting
        |
        v
  [Soroban Contracts, testnet]
        |-- NiriumVault      (source-verified build, see Deployed Contracts)
        |-- NiriumProtocol   (reputation, strategy registry, scoring, skill gate)
        |-- Policy Account   (scopes an agent key to ONE vault: one CallContract
        |                     rule, no Default rule; that absence IS the mechanism)
        |
        v
  [Supabase] ← logs, auth_keys, webhooks, subscriptions
  [IPFS / Pinata] ← tamper-evident receipts

Core Features

API

Multi-tier authentication with sandbox accounts, self-service API keys (/keys, wallet-signed via SEP-53), tiers (free/sandbox/institutional/enterprise), and JWT for WebSocket. Sliding-window rate limiting.

Access level Endpoints
Public (no key) health, loop/status, skills, nodes, netdiag, audit/info, reporting/info
Protected (API key) market, tickers, stats, webhooks, subscriptions, skills/install
Paid (x402 / MPP) premium/market, mpp/market ($0.05 USDC, both networks)
WebSocket (JWT) /ws/signals, signal stream (the hosted endpoint did not accept connections when checked on 21 Nov 2026)
Admin only system/health, config/llm

Closed: premium/signals, premium/execute, mpp/signals and signals/recent since 1 Dec 2026; execute-demo, the Payouts runs and the Treasury write routes since 30 Nov 2026. They answer 410 without charging.

Full specification: API_DOCUMENTATION_OPENAPI.yaml (it still lists the closed routes).

x402 + MPP + MCP

Any AI agent (Claude, GPT, custom) can pay for Nirium's market data per request by paying USDC on Stellar: no account, no subscription. Adopted on launch day alongside emerging industry standards:

  • x402 integrated April 2, 2026: same day as the Linux Foundation x402 Foundation launch
  • MPP integrated April 3, 2026: a few weeks after Stripe and Tempo launched it (March 2026)

Both directions are supported. initX402() pays for someone else's API, live today. x402Serve() charges for yours. x402Serve() is a general-purpose library that runs on the integrator's own server; Nirium does not operate or gate it. Third-party use is an open legal question, with no written legal opinion yet - compliance is the integrator's own responsibility:

import { x402Serve } from 'nirium';

app.use('/premium', x402Serve({
    payTo: 'G...',
    routes: { 'GET /data': '$0.02' },
    facilitatorApiKey: process.env.X402_FACILITATOR_API_KEY, // OpenZeppelin Channels, per network
}));

Replay protection and a per-IP rate limit are available since nirium 0.15.0 through the optional guard; without it, x402Serve() verifies and settles the payment and nothing else. On the paying side, both SDKs refuse more than $1 of USDC per payment by default unless the integrator raises the cap (Python since 0.12.0, which also refuses a 402 offered on another network).

MPP Charge is experimental: implemented and verified on testnet (settled payments in pull and push mode, 15 Oct 2026); mainnet is unverified. The client signs a complete USDC transfer inside the request, and the server validates it by simulation and broadcasts it, with no external facilitator. MPP's Channel mode is implemented but disabled, because its setup deploys a channel contract holding a deposit, which would be temporary custody.

The MCP server exposes Nirium to Claude Desktop, Cursor and any MCP-compatible IDE: 14 tools by default (see the nirium-mcp README).

Audit Trail Engine

Agent action or third-party event
    → SHA-256 content hash
    → optional agent attestation: ed25519 signature over
      "nirium-audit-v1:<content_sha256>"  (domain-separated on purpose:
      without it, a signature made for a login could be replayed as evidence)
    → pinned to IPFS, CID returned
    → verifiable by anyone holding only the CID

An invalid signature returns 400 and nothing is anchored: nobody can guarantee deletion from IPFS (anyone with the CID may have kept a copy), so a false attestation could outlive any correction. Third-party apps anchor through POST /api/audit/log. Anchor hashes, not raw personal data.

Published packages (npm + PyPI)

Package Registry Version Install
TypeScript nirium (npm) 0.21.0 npm install nirium
Python nirium (PyPI) 0.13.0 pip install nirium
MCP server nirium-mcp (npm) 0.8.0 npx nirium-mcp
CLI nirium-cli (npm) 4.0.0 npm install -g nirium-cli
Pollar adapter nirium-pollar-adapter (npm) 0.7.0 npm install nirium-pollar-adapter
Solana nirium-solana (npm) 0.3.0 npm install nirium-solana
Avalanche nirium-avalanche (npm) 0.3.0 npm install nirium-avalanche

Versions checked against the npm and PyPI registries on 2 Dec 2026. Full docs: the package READMEs in nirium-protocol/nirium.

import { Agent } from 'nirium';
const agent = new Agent({ apiKey: 'sk_inst_...', baseUrl: 'https://nirium-agent.fly.dev' });

const nodes = await agent.getNodes();
await agent.anchorAuditRecord({ hash: '...' });

Deployed Contracts

Contract Network Contract ID Function
NiriumVault (source-verified, 9 Nov 2026) Testnet CDMFURE6MYROTA2A6DLD4TN2S4QTN64L2FZ2I2RY2AREONX6DUQOI2S2 Core treasury: vaults, agent delegation, strategy execution, flash loans, emergency pause (2-of-3 once cosigners are registered; none yet). Built by GitHub from nirium-core@8489481. Earlier, unverified deployments: CBTWMZCG3P72EHFAQ4ZLSEBIOFYJC244H5J6DHZIJ56FHFWJ2CFAWSZU (May 2026, used by nirium.xyz until 9 Nov, 180 vaults) and CARTJIASVFHS4JJ24GVRO3XFQD37JCJEAXVPS7SPIWB3HLBXAYQ5SICV (25 Oct 2026, never connected to the site)
NiriumProtocol Testnet CBKCTMTCCZQIPEESLHHEZKXYSPWNO24NEG33T2XSAAAHPISBND5CNSXX Unified registry: ELO reputation, strategy marketplace, agent scoring, skill gate (x402). No agents or strategies registered yet (checked 17 Nov 2026)
Policy Account Testnet CCZW2WIFAD7OQX35U5AILTNF32TCHQUYVPNB32GGKEKKPII2HF7B5LML Scopes an agent key to a single vault: one CallContract rule, no Default rule

Verifiable at Stellar Expert.


Quick Start

Requirements

  • Node.js >=22.12.0, pnpm 9+ (@stellar/stellar-sdk 17.x requires 22.12.0+; an older Node resolves an older, incompatible version silently)
  • Freighter Wallet for dashboard interactions

Run locally

pnpm install
pnpm --filter nirium-web dev   # web app on port 3000

The agent API (packages/agent) is private; this repo carries only its types, so pnpm dev (web + agent) only works in the private source. The web app talks to the hosted API boxes listed under Contact.

Try it

# Testnet: no real funds required
curl https://nirium-agent.fly.dev/health
curl https://nirium-agent.fly.dev/api/nodes

Project Structure

nirium-core/                   (public repo)
├── apps/web/                  → Next.js 15 site (nirium.xyz), i18n (EN/ES)
├── packages/sdk/              → copy of the TypeScript package (npm: nirium; released from nirium-protocol/nirium)
├── packages/sdk-python/       → copy of the Python package (PyPI: nirium; released from nirium-protocol/nirium)
├── packages/mcp/              → MCP server (npm: nirium-mcp)
├── packages/cli/              → CLI (npm: nirium-cli)
├── nirium-soroban-contracts/  → Soroban contracts (Rust): NiriumVault + NiriumProtocol, both on testnet, 5 fuzz targets
├── packages/policy-account/   → Soroban policy account (Rust), scopes a key to one vault
├── .github/workflows/         → CI, release, security-gate, NiriumVault verified release
│
├── packages/agent/            → [private] Express 5 API; only its types are published here
├── packages/desktop/          → [private] Tauri desktop wrapper

Security

  • Internal self-review only. No external audit and no penetration test has been done. The report lists method, findings, fixes and what was left out; it carries no score and no certification.
  • Methodology: static analysis (cargo clippy, grep), runtime checks on testnet, cargo audit + pnpm audit in CI, fuzz smoke runs (5 cargo-fuzz targets), manual code review.
  • A formal independent audit is planned before any mainnet deployment of NiriumVault. The mainnet nodes running today never touch client funds: x402 is signed by the client and settled by an independent facilitator, and Audit Trail and Reporting only store and read hashes.
  • The mainnet API box holds no signing key, enforced at startup.
  • See SECURITY.md for responsible disclosure, and INTERNAL_SECURITY_AUDIT.md for the full report.

Stellar Code of Conduct Alignment

Nirium operates in alignment with the Stellar Code of Conduct.

Principle Nirium status
Stellar must be core and valuable, not auxiliary ✅ Soroban contracts, x402 and Audit Trail anchoring on Stellar; MPP experimental
No speculation, wash trading, or insider trading with grant funds ✅ Grant funds allocated to development, not trading
No investment advice or yield promises ✅ Prominent disclaimer; rates displayed as protocol reference data only
No marketing promising interest, dividends, or appreciation ✅ Language focuses on workflow automation, not guaranteed returns
Open source, contracts and packages publicly available ✅ Soroban contracts + TypeScript and Python packages in the public repo
Transparency ✅ Every protocol action auditable on-chain via Stellar Expert
Integrity ✅ No front-running or predatory extraction
Safety ✅ Non-custodial by design; the user is the sole custodian of their keys

To report violations: community@stellar.org

SCF Instawards

Nirium received two Stellar Community Fund Instawards, through the Stellar Ambassador Program (a regional chapter assists the submission), with full KYC complete (Airtable + Persona + W-8BEN). Instawards are SCF's early-stage awards for prototyping and local validation, up to $15,000 per project. More info: communityfund.stellar.org

Update, 2026-10-12: this section was titled "SCF Kickstart" and described the awards under that name. Sources, read from the SCF handbook (stellar/scf-handbook) on 2026-10-12: additional-support/history-of-scf.md says SCF Kickstart is the former Startup Camp (a bootcamp), not the awards program; scf-awards/instawards/README.md describes Instawards as offered through local Stellar Ambassador Chapters.


Roadmap

Milestone Status
Core infrastructure + x402 on testnet ✅ Complete · MPP experimental
API + published TypeScript and Python packages ✅ Complete
Internal security self-review (no external audit; see report) ✅ Complete
MCP server ✅ Complete
Self-service API keys console (/keys, wallet-signed via SEP-53) ✅ Live
Mainnet receive-only nodes (x402, Audit Trail, Reporting) ✅ Live
MPP Charge, mainnet receive-only node 🟡 Implemented, experimental - no confirmed mainnet settlement yet
x402Serve(), charge for your own API in one call ✅ Shipped. A library the integrator runs on their own server; Nirium does not operate or gate it
Agent attestation in the audit trail (signed evidence) ✅ Shipped
Pre-sign policy hook ✅ Shipped, experimental
Solana and Avalanche (x402, pre-sign policy, payment-bound receipts) ✅ Public repos, packages on npm
Base and Arbitrum 🟡 First versions
Treasury and Payouts Tested only with the team's own funds; discontinued 30 Nov 2026
Legal opinion (MX + cross-border) ⏳ Pending a written legal opinion; no lawyer engaged yet
Formal independent audit of NiriumVault Planned, ahead of any NiriumVault mainnet deployment
KineGuard (tentative name) - remote key-custody policy gate: the auditor endpoint would hold or gate access to the signing key itself, not just opine before the same process signs 💭 Idea only. Not designed, not scoped, no date. Distinct from Policy Gate above (#6), which already covers "ask a policy engine before signing" - this would only be worth building if it closes that control's one real gap: code in the same process as the key can bypass a same-process hook.

External Credentials

  • Stellar Community Fund Instawards (2), via the Stellar Ambassador Program; full KYC complete (Airtable + Persona + W-8BEN). Payments on mainnet: #1, 11 May 2026 and #2, 31 Jul 2026
  • Update, 2026-10-12 (checked against this repository): this list previously included "Stellar Scale / Kickstart: 83/100 Bootcamp Impact; active graduate with ongoing SDF mentorship". The line was removed because it could not be verified (no source for the 83/100 figure or for an SDF mentorship), not reworded.

Documentation

Document Description
SDKs.md Historical SDK notes (SDK 0.5.0); the maintained docs are the package READMEs in nirium-protocol/nirium
API_DOCUMENTATION_OPENAPI.yaml OpenAPI specification
MCP_INTEGRATION_GUIDE.md Historical MCP guide (v0.4.0); the maintained one is the nirium-mcp README (14 tools by default)
INTERNAL_SECURITY_AUDIT.md Internal security self-review: method, findings, fixes, out of scope
NIRIUM_TECHNICAL_PAPER.md Technical whitepaper
SECURITY.md Responsible vulnerability disclosure policy
CONTRIBUTING.md Open source contribution guide

Contact

Channel Link
Website nirium.xyz
API (testnet) nirium-agent.fly.dev
API (mainnet) nirium-agent-mainnet.fly.dev
Every network nirium.xyz/chains
X / Twitter @Niriumstellar
Security niriumprotocol@gmail.com

Legal

The code in this repository (smart contracts, libraries, MCP server, CLI and web app) is open-source and licensed under the Apache License 2.0, which covers the Stellar Community Fund open-source requirement for smart contracts. The hosted agent API (packages/agent) and the desktop wrapper are private and are not part of the public repository.

For full details, see LICENSING.md.

This project operates under the Stellar Community Fund framework and the Stellar Code of Conduct.


Nirium Protocol: experimental software. Not financial advice. NiriumVault is testnet-only and audit-gated. Treasury and Payouts were tested only with the team's own funds and discontinued on 30 Nov 2026. Updated 2 December 2026.

About

Receipts anyone can check (Audit Trail), x402 payments and Reporting on Stellar. Soroban contracts (Rust), the nirium.xyz web app and fuzz targets. Non-custodial.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages