npm @shieldcubed/agentic-paystdioupdated 1mo ago
A cross-platform payment engine that lets third-party AI agents send and receive payments over seven crypto rails: BTC, ETH, USDT, USDC, XRP, XMR, ZEC.
ΒΏQuΓ© puedes hacer con agentic pay?
Agentic Pay
A cross-platform payment engine that lets third-party AI agents send and receive payments over seven crypto rails: BTC, ETH, USDT, USDC, XRP, XMR, ZEC.
One Node.js core runs unmodified on Linux, Windows, and macOS. The same backend is reachable from iOS and Android via an installable Progressive Web App (PWA) β there is no separate native mobile codebase to maintain.
Architecture
βββββββββββββββββββββββββββββ
β core/railManager.js β <- one call-site for
β (policy + ledger + auth) β every asset
βββββββββββββββ¬ββββββββββββββ
β
βββββββββββββ¬ββββββββββββββΌββββββββββββββ¬ββββββββββββ¬βββββββββββ
β β β β β β
rails/btc rails/eth rails/xrp rails/xmr rails/zec β
(bitcoinjs) (ethers.js, (xrpl.js) (JSON-RPC to (JSON-RPC to β
ETH+USDT+ monero- zcashd) β
USDC ERC20) wallet-rpc) β
β
Agent-facing surfaces (both call railManager, never a rail β
adapter directly): β
ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββ β
β server/restApi.js β β server/mcpServer.mjs β β
β HTTP/JSON, API-key β β MCP stdio server for β β
β auth, for any HTTP- β β Claude / other MCP- β β
β capable agent stack β β compatible agent clients β β
ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββ β
β
Human-facing surfaces: β
ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββ β
β cli/index.js β β web/ (PWA) β β
β Linux/Windows/macOS β β served by server/ β β
β terminal β β staticWeb.js, installable β β
β β β on iOS/Android home screen β β
ββββββββββββββββββββββββββ βββββββββββββββββββββββββββββ β
Every send, from any surface, passes through core/limits.js (per-agent
spend caps + human-confirmation floor) and core/ledger.js (idempotency,
so a retried tool call can never double-pay).
Quick start (any OS with Node.js 18+)
git clone <this repo> # or unzip the delivered archive
cd agentic-pay
npm install
cp config/.env.example .env
cp config/config.example.json config/config.json
# edit both files β see docs/SETUP_<YOUR_OS>.md for exact values per rail
npm run start:rest # REST API on :8787
npm run start:web # PWA on :8788 (optional, for mobile/browser access)
npm run start:mcp # MCP stdio server (for Claude Desktop / Claude Code)
node cli/index.js rails # sanity check from the terminal
Start on testnets first. Every rail's example config defaults to a
testnet or requires you to explicitly fill in mainnet values β this is
intentional. Do not point real funds at this system until you've reviewed
core/limits.js and set spend caps you're comfortable with.
Hosted (custodial) β skip the setup
Don't want to run your own node? Aumnium operates a hosted instance at https://api.aumnium.tech β deposit USDC, get a spendable custodial balance, and start sending across all seven rails without installing or funding anything yourself.
This is a different trust model than the self-hosted instructions above: your funds sit in a pooled wallet operated by Aumnium (not your own keys), and each send is charged a 1% fee plus network cost, deducted from your balance. The self-hosted path above remains fully non-custodial; this hosted path trades that for convenience.
# 1. Get your deposit address
curl -H "x-api-key: YOUR_KEY" https://api.aumnium.tech/v1/deposit/address
# 2. Send USDC to that address on Ethereum mainnet
# 3. Claim your deposit once it confirms
curl -X POST -H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" \
-d \'{"txHash":"0x..."}\' \
https://api.aumnium.tech/v1/deposit/claim
# 4. Send payments (billed per-call via x402, USDC on Base)
curl -X POST -H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" \
-d \'{"asset":"USDC","to":"0x...","amount":1,"idempotencyKey":"unique-key"}\' \
https://api.aumnium.tech/v1/send
Contact team@spacenet.network for an API key. Full endpoint list at https://api.aumnium.tech.
Where to go next
docs/SETUP_LINUX.mddocs/SETUP_WINDOWS.mddocs/SETUP_MACOS.mddocs/SETUP_MOBILE.mdβ iOS and Android via PWAdocs/AGENT_INTEGRATION.mdβ wiring up Claude, MCP clients, or any HTTP-based agent frameworkdocs/SECURITY.mdβ key management, spend limits, and legal/regulatory considerations β read this before sending real funds
What's genuinely production-ready here vs. what's a starting point
- Production-shaped: the policy engine (per-tx cap, daily cap, confirmation floor, address allowlisting), the idempotent ledger, and the unified rail interface.
- Starting point, needs hardening for real money at scale: the
JSON-file ledger (swap for a real database under load), the static
USD price table (wire in a live price feed), and key storage (move
from
.envto an OS keychain or HSM/KMS for anything beyond development β seecore/keystore.jsfor the extension point).
License
agentic-pay is licensed under the Business Source License 1.1 (see
LICENSE). In plain terms:
- You can use, modify, and self-host this freely β for yourself, your own organization, or your own agents, including production use.
- You cannot turn around and offer it as a competing hosted/managed payments-as-a-service product to third parties without a commercial license.
- On 2030-07-14, this version automatically converts to the Apache License 2.0 β fully open source, no restrictions.
Want a commercial license for a hosted/managed offering before then? Contact team@spacenet.network.
InstalaciΓ³n
AΓ±ade agentic pay a tu cliente. Elige el que uses.
claude mcp add agentic-pay -- npx -y @shieldcubed/agentic-paycodex mcp add agentic-pay -- npx -y @shieldcubed/agentic-payamp mcp add agentic-pay -- npx -y @shieldcubed/agentic-pay{
"mcpServers": {
"agentic-pay": {
"command": "npx",
"args": [
"-y",
"@shieldcubed/agentic-pay"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"agentic-pay": {
"command": "npx",
"args": [
"-y",
"@shieldcubed/agentic-pay"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"agentic-pay","command":"npx","args":["-y","@shieldcubed/agentic-pay"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"agentic-pay": {
"command": "npx",
"args": [
"-y",
"@shieldcubed/agentic-pay"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"agentic-pay": {
"command": "npx",
"args": [
"-y",
"@shieldcubed/agentic-pay"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"agentic-pay": {
"command": "npx",
"args": [
"-y",
"@shieldcubed/agentic-pay"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"agentic-pay": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@shieldcubed/agentic-pay"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"agentic-pay": {
"command": {
"path": "npx",
"args": [
"-y",
"@shieldcubed/agentic-pay"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @shieldcubed/agentic-payRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
PuntuaciΓ³n
39 / 100
Incompleta
- DocumentaciΓ³n25/25
- Mantenimiento16/25
- Confianza6/20
- Capacidad0/15
- InstalaciΓ³n12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 42 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Historial de versiones
| Versiones | Publicada |
|---|---|
| 0.1.1Γltima | 12 jul 2026 |