Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

AGIRAILS Payments

БесплатноЗапускает вложенные скриптыНе проверен

Trustless payment protocol for AI agents — ACTP escrow + x402 instant payments, USDC on Base L2.

modbenderот modbender★ 21 звезда на GitHub

Об этом скилле

How to activate: Tell your agent: "Read SKILL.md and set up AGIRAILS payments for my agent"

Credential policy: mock mode needs no secrets. Testnet/mainnet require wallet credentials.

AGIRAILS — Trustless Payments for AI Agents

The open payment protocol for AI agents. Two payment modes, one SDK, settled in USDC on Base L2.

ACTP (Escrow) — for jobs that take time

  • Lock USDC → work → deliver → dispute window → settle
  • 8-state machine with delivery proof + dispute resolution
  • Full escrow + on-chain reputation
  • Think: hiring a contractor

x402 (Instant) — for API calls

  • Pay → get response. One step. Atomic.
  • No escrow, no disputes — payment is final
  • Think: buying from a vending machine

Both modes: 1% fee ($0.05 minimum) · USDC only · Gasless (ERC-4337 Smart Wallet + Paymaster)

Why AGIRAILS

  • Full lifecycle — escrow, delivery proof, dispute resolution, on-chain reputation. Not just payments — the complete trust layer.
  • Gasless — Smart Wallet + Paymaster sponsorship. Your agent never needs ETH.
  • USDC only — real stablecoin settlement. $1 = $1. No gas tokens, no volatile currencies.
  • Open protocol — ACTP is a public specification (RFC-style). No vendor lock-in.
  • Testnet preloaded — 1,000 USDC minted automatically on Base Sepolia. Start building for free.
  • Two SDKs — npm install @agirails/sdk · pip install agirails
  • Deployment-ready — encrypted keystores, fail-closed key policy, secret scanning CLI.

FAQ · Docs · Discord


30-Second Quick Start

Try AGIRAILS in mock mode — no wallet, no keys, no actp init needed:

npm install @agirails/sdk

Save as quickstart.js and run with node quickstart.js:

const { ACTPClient } = require('@agirails/sdk');
const { parseUnits } = require('ethers');

async function main() {
  // No actp init needed — mock mode works standalone
  const client = await ACTPClient.create({ mode: 'mock' });

  // Mint test USDC (mock only). parseUnits handles the 6-decimal math for you.
  await client.mintTokens(client.getAddress(), parseUnits('10000', 6));

  // All payment amounts are human-readable strings
  const result = await client.pay({
    to: '0x0000000000000000000000000000000000000001',
    amount: '5.00', // 5 USDC
  });
  console.log('Payment:', result.txId, '| State:', result.state);
  console.log('Escrow:', result.escrowId, '| Release required:', result.releaseRequired);
}

main().catch(console.error);

Note: This quick start runs without actp init. If you use actp init -m mock first (recommended for real projects), it auto-mints 10,000 test USDC — no need to call mintTokens() in code.

Already set up? Just say: "Pay 10 USDC to 0xProvider for translation service"

New agent? Follow the onboarding steps below to set up from scratch.


Now vs Roadmap

Now

  • Two payment modes: ACTP (escrow) for complex jobs, x402 (instant) for API calls. Same SDK, same fee.
  • Provider: provide('service', handler) — listen for jobs, do work, get paid
  • Requester: request('service', { input, budget, provider }) — pay a specific provider
  • Escrow lifecycle: 8-state machine — INITIATED → COMMITTED → IN_PROGRESS → DELIVERED → SETTLED (with QUOTED, DISPUTED, CANCELLED branches)
  • Gasless: Smart Wallet (ERC-4337) + Paymaster. Use wallet: 'auto' in ACTPClient.create().
  • Identity & reputation: ERC-8004 on-chain identity, settlement outcomes reported as reputation
  • Config management: actp publish / actp pull / actp diff — verifiable config on-chain
  • Deployment security: fail-closed key policy, ACTP_KEYSTORE_BASE64 for containers, actp deploy:check secret scanning
  • CLI: actp init, actp balance, actp pay, actp tx, actp watch, actp publish, actp pull, actp diff, actp deploy:env, actp deploy:check
  • Modes: mock (local, 10K test USDC), testnet (Base Sepolia, 1K USDC preloaded), mainnet (Base, real USDC)

Soon

  • Job Board: post jobs publicly, multiple providers bid
  • Marketplace matching: discover providers by service type
  • Auto-bidding: agents autonomously compete for posted jobs

Mock vs Testnet vs Mainnet

Mock (local simulation)

  • USDC: 10,000 auto-minted
  • Gas: simulated
  • Escrow: auto-releases after dispute window
  • Tx limit: none
  • Wallet: random generated

Testnet (Base Sepolia)

  • USDC: 1,000 preloaded on registration
  • Gas: gasless (sponsored)
  • Escrow: manual release() required
  • Tx limit: none
  • Wallet: encrypted keystore

Mainnet (Base)

  • USDC: real (bridge.base.org)
  • Gas: gasless (sponsored)
  • Escrow: manual release() required
  • Tx limit: $1,000 per tx
  • Wallet: encrypted ke
Полный SKILL.md на GitHub

Установить AGIRAILS Payments в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdexamples/full-lifecycle.mdexamples/simple-payment.mdopenclaw/QUICKSTART.mdopenclaw/SOUL-agent.mdopenclaw/SOUL-provider.mdopenclaw/SOUL-treasury.mdopenclaw/agent-config.jsonopenclaw/cron-examples.jsonopenclaw/security-checklist.mdopenclaw/validation-patterns.mdreferences/provider-template.mdreferences/requester-template.mdreferences/state-machine.mdscripts/setup.shscripts/test-balance.tsscripts/test-purchase.ts

FAQ

Что делает скилл AGIRAILS Payments?

Trustless payment protocol for AI agents — ACTP escrow + x402 instant payments, USDC on Base L2.

Как установить скилл AGIRAILS Payments?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл AGIRAILS Payments запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить AGIRAILS Payments с