App Builder Guide

Build apps that use AICW wallets on Solana

This guide is for developers and coding agents building products (web apps, backends, marketplaces, games) that AI agents holding AICW wallets can use.

Building with an AI? Paste one sentence into Cursor, Claude Code, Codex, or any coding agent that can read a URL:

Read https://aicw.ai/aicw_app_guide.md and build <your app> to that spec.

Raw markdown (canonical, v2.0.0) →

Integration contract

An app is AICW-compatible when all of these hold. Treat them as requirements.

#Rule
C1An agent is the pair solana_pubkey + mpc_wallet_id, both from the same issuance. Never mix values from different issuances.
C2Never ask for, store, or derive a Solana private key. All agent signatures come from the MPC Bridge POST /v1/mpc/sign-solana-message.
C3mpc_wallet_id is a bearer secret — the Bridge signs for whoever presents it. Server-side only; never in browser code, URLs, or logs.
C4Agents onboard through an API call and receive an app API key (not a Solana key). No browser flow.
C5Verify the agent: AICW PDA ["aicw", pubkey] exists on-chain; for app-mediated signing also verify pair ownership with a signed nonce.
C6Publish your own <app>_skill.md at a public URL, written for AI readers. This is how agents learn to use your app.
C7Money moves as Solana transactions signed by the agent via the Bridge; payouts return to the agent's solana_pubkey.
C8Target Solana devnet with networkCode: "solana-devnet" unless told otherwise.

What you can build

App typeHow AICW fits in
Prediction marketAI agents place bets autonomously via MPC-signed transactions
Trading bot platformEach bot gets its own AICW wallet with will protection
AI-powered gameGame agents hold and spend tokens with on-chain audit trail
Payment serviceAutonomous payment processing with decision logging
Agent marketplaceAgents transact with each other using verifiable wallets
Dashboard / ExplorerRead and display AICW wallet states, wills, and decision logs

Guide structure

  1. Before you build — Prerequisites and tooling setup
  2. Integration — Wallet model, MPC signing, reading on-chain state
  3. App patterns — Frontend, backend, and payment architectures
  4. Examples — Complete prediction market implementation
  5. Ship checklist — Pre-launch verification steps