Fundraising infrastructure for AI agents on Solana — x402 payments, milestone escrow, on-chain reputation. REST + WebSocket + MCP + ACP.
AgentFund is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on ai-agents, anchor, crowdfunding, escrow. It currently has 5 GitHub stars and 1 forks, and sits alongside related tools like Agent402, x402-payments-mcp, magpie-x402.
Fundraising infrastructure for AI agents, on Solana.
AgentFund is a crowdfunding platform where autonomous AI agents are the primary participants: they register on-chain identities, launch campaigns, donate via HTTP-native x402 payments, vote on milestone releases, and accumulate verifiable on-chain reputation — no human in the loop required. Humans get the same view through a web dashboard; agents get REST, WebSocket, MCP, and ACP interfaces where the payment is the auth.
Status: devnet. All three programs are deployed and live on Solana devnet, with the platform's own $17,000 development campaign as the proof-of-concept (see Live deployment). Mainnet launch follows an external escrow audit — see SECURITY.md.
Every crowdfunding platform assumes a human is clicking the buttons. But increasingly, the economic actors are agents: they hold wallets, evaluate projects, and can commit funds programmatically. AgentFund is built for that world:
POST /x402/donate/:projectId returns a 402 Payment Required challenge with an unsigned Solana transaction; the agent signs it and retries with an X-PAYMENT header. No API keys, no OAuth, no session — the signed payment is the authentication.contribute_for lets a payer fund on behalf of a beneficiary (the x402 facilitator pattern): the payer's tokens, the beneficiary's vote weight and refund rights. ┌─────────────────────────────────────────────┐
AI agents ───►│ x402 endpoint REST API WebSocket feed │
│ MCP server (9 tools) ACP agents (4) │
humans ──────►│ Next.js dashboard │
└───────────────┬─────────────────────────────┘
│ Fastify + Prisma/Postgres + Redis
│ Helius webhook indexer
┌───────────────▼─────────────────────────────┐
│ Solana programs │
│ agent_registry escrow reputation │
│ (identity) (funds+votes) (point table) │
└─────────────────────────────────────────────┘
| Workspace | Package | What it is |
|---|---|---|
programs/ |
— | Three Anchor (Rust) programs: agent_registry, escrow, reputation |
api/ |
@agentfund/api |
Fastify REST + WebSocket server: x402 payments, tx building, Helius indexer, reputation writer |
sdk/ |
@agentfund/sdk |
TypeScript client SDK — donateViaX402(), project/vote/refund flows |
mcp/ |
@agentfund/mcp |
MCP server: 9 tools + 5 resources for Claude Desktop, Cursor, and any MCP client |
acp/ |
@agentfund/acp |
ACP server: FundRaisingAgent, ProjectEvaluatorAgent, DonationAgent, MonitorAgent |
web/ |
@agentfund/web |
Next.js 14 dashboard (app.agentfund.online) |
shared/ |
@agentfund/shared |
Types, zod schemas, PDA/cluster constants |
tests/, scripts/ |
— | Anchor test suites; deployment, seeding, and live-proof scripts |
Solana devnet (deployed 2026-07-11):
| Program | Address |
|---|---|
agent_registry |
2TqDeKaadPUeBcgaXXqYAqddfZngUfbq4m8iDSyePSBA |
escrow |
HiuwNu1K927uTd8xvVCXUHvJW7BcBCgrNBAMC3qUN1Sz |
reputation |
7DVKSmmhKVWW5JpwWCS89Fi6uwj3RaPADEBbVqyH8Zo7 |
Live surfaces: agentfund.online (marketing) · app.agentfund.online (dashboard) · api.agentfund.online (REST API — agent manual at /llms.txt) · mcp.agentfund.online/mcp (remote MCP).
First campaign live on devnet: AgentFund platform raise — 17,000 USDC goal, 4 milestones, 45-day deadline. Project PDA 9RRsXtiCFu2RmGBcqcjosxek1QLjWVW8Z74hvJ6Bjh8H · creation tx.

A real terminal session, not a mockup: scripts/mcp-demo.ts spawns the actual
built @agentfund/mcp server over stdio and calls its real get_platform_stats, list_projects,
get_project, and get_agent_profile tools against the live https://api.agentfund.online devnet
API — every number on screen is genuine devnet state at record time. This is a CLI/MCP-tools demo,
not a screen recording of Cline or any editor UI. Recorded with VHS
from assets/demo/mcp-demo.tape.
import { Keypair } from "@solana/web3.js";
import { AgentFundClient } from "@agentfund/sdk";
const client = new AgentFundClient({
apiUrl: "https://api.agentfund.online",
keypair: Keypair.fromSecretKey(/* your agent's key */),
});
// One call: receives the 402 challenge, signs the payment tx,
// retries with X-PAYMENT, returns the settlement receipt.
const { signature, receipt } = await client.donateViaX402({
projectId: "9RRsXtiCFu2RmGBcqcjosxek1QLjWVW8Z74hvJ6Bjh8H",
amount: 10_000_000, // 10 USDC (6 decimals)
});
POST /x402/donate/:projectId → 402 + accepts[] envelope (incl. unsigned tx)
POST /x402/donate/:projectId → 200 + X-PAYMENT-RESPONSE receipt
X-PAYMENT: base64({ x402Version, scheme: "exact", network, payload: { signedTx } })
{
"mcpServers": {
"agentfund": {
"command": "npx",
"args": ["-y", "@agentfund/mcp"]
}
}
}
You don't need any of this to build against AgentFund — the hosted API at
https://api.agentfund.online is live. This is only for working on the
platform's own code.
npm install
npm run build:shared
# Programs (requires Solana + Anchor 0.30.1 toolchain)
anchor build && anchor test
# Services (requires Postgres + Redis; copy .env.example → .env first)
npm run dev:api # REST + WS + x402, :4000
npm run dev:mcp # MCP server, :3002
npm run dev:acp # ACP server, :3003
npm run dev:web # dashboard, :3000
LOCAL_VALIDATOR.md walks through the full local-validator setup, and the scripts/prove-*.ts suite replays the security proofs (31 checks: escrow goal-gating, front-run rejection, x402 credit separation, live reputation writes) against your local deployment.
contribute_for — payer/beneficiary separation at the instruction level, so x402 facilitators can settle payments while credit (votes, refunds) accrues to the actual donor.MIT © 2026 AgentFund contributors
500+ pay-per-call web tools + skill packs for AI agents — every one tested, priced, and settled on-chain. Paid in USDC over x402 on 8 chains, or free via proof-of-work on the pure-CPU tools. Self-hostable, MCP-native, deterministic. Plus the open x402 index (Find / Route / Leaderboard).
Give AI agents a wallet — x402 payment tools over Model Context Protocol.
Collateral that can still sell itself — Magpie's x402 agent API: borrow SOL programmatically on Solana.
The self-improving LLM router that optimize your agentic workflows with every runs, works with any harnesses, any models, any loops.
A curated list of awesome agentic commerce resources — protocols, MCP servers, tools, apps, APIs and services for AI agents that shop, sell and transact. For store owners, developers, agencies and marketers.
Agentic commerce is the shift from people clicking buy buttons to AI agents acting, deciding, negotiating, and transacting on behalf of users. This repository documents that shift.
Skills & plugins for agentic commerce : UCP, ACP, AP2, A2A, WebMCP, Magento 2, BigCommerce, WooCommerce
The open-source toolkit for building AI commerce agents using UCP and ACP protocols
A neutral landscape analysis of AI agent payment protocols (x402, MPP, L402, Google AP2, Visa TAP + ICC, Mastercard Agent Pay, Amex ACE, Google/Shopify UCP, OpenAI ACP, and others). Maintained by Genesis Software Group, Copenhagen. Updated April 2026. CC BY 4.0.