AEON AgentOS is a platform-level execution system for AI Agents. It connects skill invocation, task execution, authorized payment and settlement networks — enabling Agents to not only understand user intent, but to call different skills within the user's authorization scope and complete real-world purchases, content generation, data calls, subscriptions, bookings and transaction execution via wallet and Card payment capabilities.
Currently open skill: AI image generation — generate images from a text prompt, paying per request with USDT on BSC via the x402 protocol.
# Install to all detected agents (Claude Code, Cursor, Codex, OpenClaw, Gemini CLI, etc.)
npx skills add AEON-Project/AgentOS -g -y
# Install to specific agents
npx skills add AEON-Project/AgentOS -a claude-code -a cursor -a codex -g -ySupported agents: Claude Code, Cursor, Codex, OpenClaw, Gemini CLI, GitHub Copilot, Windsurf, Roo Code, and 39+ more.
# First run: auto-create local wallet (private key generated locally, never uploaded)
npx @aeon-ai-pay/agentos setup --check
# Pre-flight: ensure the session key has >= 1 USDT and an unlimited approve to the
# facilitator. If a top-up is needed, you fund >= 5 USDT (one-time WalletConnect QR scan).
npx @aeon-ai-pay/agentos prepare
# Generate an image. With prepare done, this is a gasless EIP-712 signature only.
# On success, every image in the response is downloaded to ~/agentos-images/
npx @aeon-ai-pay/agentos create-image --prompt "a cyberpunk fox under neon rain"
# Choose aspect ratio / output format / model (defaults shown)
npx @aeon-ai-pay/agentos create-image \
--prompt "An orange tabby cat playing in the snow, cinematic lighting" \
--aspect-ratio 16:9 \
--output-format png \
--model replicate/black-forest-labs/flux-schnell
# Save downloads to a custom directory
npx @aeon-ai-pay/agentos create-image --prompt "..." --output ./out
# Check wallet balance (BNB + USDT)
npx @aeon-ai-pay/agentos wallet
# Add more USDT later (forces a transfer even if already prepared)
npx @aeon-ai-pay/agentos prepare --topup-amount 50
# Top up BNB gas for local wallet (only needed before withdraw)
npx @aeon-ai-pay/agentos gas --amount 0.001
# Withdraw remaining funds (USDT + BNB) back to main wallet
npx @aeon-ai-pay/agentos withdraw
# Show current configuration
npx @aeon-ai-pay/agentos setup --show
# Uninstall skill and clear cache
npx @aeon-ai-pay/agentos clean- Node.js >= 25
- A mobile wallet app with WalletConnect support (MetaMask, OKX Wallet, Trust Wallet, etc.)
- USDT (BEP-20) on BSC for image-generation payments
- A small amount of BNB (~0.0003) in your main wallet —
agentos prepareautomatically transfers it to the session key during the same WalletConnect scan to cover the one-time approve gas. You don't need to send BNB to the session key manually.
1. CLI auto-generates a session key (disposable wallet) locally
2. `prepare` does the up-front money work in one WalletConnect session:
- Triggers only when the session key has < 1 USDT (≈ 50 image generations of headroom) or has not yet approved the facilitator. Above that threshold it's a no-op.
- When triggered, you pick a top-up tier (5 / 20 / 50 USDT or custom ≥ 5) — the **minimum is 5 USDT** so a single funding lasts a long time.
- If a fresh approve is needed, also transfers 0.0003 BNB for gas, then session key broadcasts `ERC20.approve(facilitator, MaxUint256)`.
- When invoked headlessly (e.g. by an agent), pass `--topup-amount <usdt>`; otherwise the CLI exits with `TOPUP_REQUIRED` so the agent can ask the user to choose.
3. After `prepare`, every `create-image` is a single gasless EIP-712 signature — no further wallet interaction
4. Server returns the generated image (URLs); CLI downloads each, reads dimensions/size
Agent flow:
User prompt -> Agent activates skill -> x402 two-phase protocol:
1. GET /open/ai/x402/skillBoss/create?body=<urlencoded JSON>
(decoded: { model, inputs: { prompt, aspect_ratio, output_format } })
-> HTTP 402 + payment requirements
2. Session key EIP-712 signature, retry same URL with PAYMENT-SIGNATURE header
-> HTTP 200, { transaction, data: { images } }
3. CLI downloads each images[].url to ~/agentos-images/, parses
PNG/JPEG/WebP headers for width × height, fs.stat for size
- Per-call USDT amount is decided by the server in the 402 response — not hardcoded client-side.
- The wallet is charged exactly that amount.
- Top-up tiers:
5/20/50USDT or custom ≥ 5 USDT — never a "just enough" decimal. The 5 USDT floor auto-rises if a future capability ever costs more (e.g. an 8 USDT call would offer the20/50tiers plus custom ≥ 8). - Headless callers pass
--topup-amount <usdt>(or are prompted by the calling agent on aTOPUP_REQUIREDexit).
Config is stored in ~/.agentos/config.json (file permissions 600).
Run setup --check to auto-generate a local wallet. The main wallet private key is never stored locally — only the session key (a locally generated disposable wallet) is saved. Funding is done via WalletConnect QR scan.
Override the default service URL (optional):
npx @aeon-ai-pay/agentos setup --service-url https://custom-api.example.comMIT