PotBot v2 - Group trading vaults on Solana. Collective POT management, governance, DeFi yield, Tamagotchi NFTs & POT Duels. Built for Solana Frontier 2026.
POTBOT
Tokenize any internet community.
POTBOT is AI-native infrastructure for programmable onchain treasuries on Solana.
POT = Programmable On-chain Treasury ยท BOT = Blockchain Orchestration Tool
Manifesto
The internet already coordinates capital.>
POTBOT gives every internet community:
programmable ownership ยท liquid coordination ยท AI-native execution ยท onchain governance.
What is POTBOT
POTBOT is a Solana-native protocol for tokenized internet communities. Any group can launch a programmable treasury (a POT), pool capital, receive tokenized shares, coordinate on-chain governance, and delegate execution to an AI agent (the BOT).
The vault is a Solana program account from day one โ no custodian, no operator, no shared seed phrase. Every move is signed onchain.
Two front doors:
- Crypto mode โ Phantom or Solflare via
@solana/wallet-adapter, full DeFi terminology - Normie mode โ sign in with email, Google, Twitter or LinkedIn (Privy-backed embedded Solana wallet); plain-English copy, USD-first prices. No Phantom required
What is a POT
A POT is a program-controlled treasury on Solana. Members deposit SOL, USDC, LSTs, LP positions or any tokenized asset, and receive proportional shares (NAV-priced). Every change to the treasury โ swap, withdrawal, settings update โ is a proposal that members vote on. The vault PDA signs the execution.
- Programmable ownership โ SPL-tokenized shares, redeemable any time
- Onchain governance โ five levels from Autocracy (L0) to Consensus (L4), plus optional risk caps (
maxswappct,maxbudgetgrantpct,requireadmincosign,timelockseconds) and one-click presets (๐ Chill ยท โ๏ธ Balanced ยท ๐ Institutional) - Security layer โ optional sentinel/guardian wallet (can freeze a pot and cancel proposals, can never move funds), risk-param timelock (loosening changes wait, tightening is instant), per-protocol CPI allowlist, per-asset daily exposure caps. Member exits are never blockable โ withdraw and share redemption stay open even while frozen
- AI orchestration โ the BOT proposes, executes once quorum is reached, and can be delegated to vote on rules you set
- Composable โ Jupiter v6 / Ultra swaps, Squads v4 multisig authority, MCP for any AI agent, Solana Blinks for tweet-native deposits and votes
- Identity โ every POT can claim a
<name>.potbot.solSNS subdomain - Optional privacy โ STAMPPOT mode wraps deposits in PrivacyCash ZK proofs (Phase 3)
What can a POT become?
| | | |---|---| | ๐จ Creator Fund | Fans co-own the next drop and split the upside. | | ๐ง AI Vault | An agent runs a strategy, the community sets the rules. | | ๐ Startup Syndicate | Angel checks pooled, deployed, and tracked onchain. | | ๐ Event Treasury | Conference floats, hackathon prizes, festival cash โ transparent. | | ๐ฅ Friend Group ETF | A shared basket your group actually agrees on. | | ๐ฒ Meme Treasury | Communities betting together, governed together. | | ๐ผ Investment Club | Quarterly proposals, monthly votes, zero spreadsheets. |
POT Lifecycle โ Money Tree ๐ฑ
Every POT is a living organism. As AUM grows, members join, and trades execute, the pot advances through six stages โ each unlocking new capabilities.
| Stage | Emoji | Unlock | |---|---|---| | Seedling | ๐ฑ | Launch, deposit, governance | | Sprout | ๐ฟ | Strategy slots, keeper automation | | Bud | ๐ณ | Pot Duels (1v1 vault challenges) | | Bloom | ๐บ | NFT Strategy Shares mint | | Full Bloom | ๐ธ | SNS subdomain, share tokenization | | Mature Tree | ๐ด | Squads multisig authority, mainnet prereq |
Health (HP): every pot has 0โ100 HP, computed as clamp(0, 100, 100 ร currentbalance / peakbalance). At 0 HP a pot dies โ trading locks, Strategy Share NFTs burn, and a resurrect_pot call with a fresh deposit is required (stage resets). Low HP automatically triggers defensive-only mode at the program level.
AI orchestration layer (BOT)
POTBOT is built for the coming agent economy. Every POT exposes a programmatic surface that an AI can read, propose against, and execute through.
Two-tier AI architecture:
- Base BOT โ reads treasury state and live prices, surfaces candidate swap proposals as decision-support for the community
- Personal AI Voter โ every member can register an AI agent wallet as their voting delegate (
MemberDelegate+voteasdelegate). Delegation is per-pot, revocable onchain; every delegated vote is signed with a reason string. Rules live inrules_uri(IPFS / Arweave / HTTPS)
- Anchored worker evaluates stop-loss, take-profit, and trailing-stop strategy slots on-chain
- Once a trigger fires, the keeper submits
execute_swapwithStrategyTriggermode โ no member needs to be online - DLQ retries on exponential backoff (2s / 5s / 13s / 34s / 89s)
@potbot/mcp@0.2.0on npm โ 18 tools (free + paid via x402 protocol)- Claude, Cursor, Cline can list, propose and vote on POTs over
npx @potbot/mcp - HTTP/SSE and stdio transports both supported
Solana Blinks
Every POT proposal becomes a shareable Blink โ a vote-able URL that renders directly in X (Twitter), Farcaster, or any Blinks-compatible client. No wallet app required to act on it.
https://potbot.fun/api/actions/<potPubkey>/deposit
https://potbot.fun/api/actions/<potPubkey>/vote
"Share as Blink" button lives on every pot detail page.
Monetization
Subscriptions โ potbot.fun/pricing:
| Tier | Price | Highlights | |---|---|---| | ๐ฑ Early Supporter | Free during beta | Unlimited pots & members, manual proposals, basic governance | | โก Pro | $29/mo | AI Agent automation, Strategy Autopilot, visual customization, priority support | | ๐ Pro+ | $99/mo | Everything in Pro, unlimited members, custom governance, white-label, dedicated RPC |
Stripe checkout is wired behind NEXTPUBLICSTRIPE_KEY; paid billing activates alongside the mainnet launch.
Protocol fees โ accrue to the PotBot treasury (not to validators or the network):
| Stream | Rate | Status | |---|---|---| | Pot creation fee | 0.01 SOL, charged onchain in create_pot | ๐ก Devnet | | Swap fee | 0.30% on every trade routed through a pot โ fee switch ships with the mainnet program iteration | ๐ต Planned | | Strategy Vault entry fee | 20% protocol share (70% creator / 10% referrer split is live onchain; the treasury leg is not collected yet) | ๐ต Planned | | Performance fee | 25% protocol share โ creator-set rate (capped at 50%) currently pays out 100% to the creator | ๐ต Planned |
No token, no airdrop farming.
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Internet community โ
โ (humans ยท agents ยท creators)โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ
deposit ยท propose ยท vote ยท blink
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โ POTBOT DApp + MCP โ
โ apps/web ยท apps/potbot-mcp โ
โโโโโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโ
โ โ
keeper cron agent delegate
โ โ
โโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโ
โ pot_vault Anchor program โ
โ (PDA-signed treasury) โ
โโโโโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโ
โ โ
Jupiter v6 CPI Squads v4 (opt.)
โ
onchain settlement
Three layers: an Anchor program that owns the funds, a Next.js + MCP surface that any human or agent can drive, and Solana-native composability (Jupiter, Squads, Blinks, Helius, Pyth).
Detailed system design: docs/architecture/architecture.md.
What makes POTBOT different
Three things only POTBOT ships together:
- Onchain group governance baked into the swap instruction โ not a generic multisig queue.
execute_swapenforcesAdminDirect,Proposal, orStrategyTriggermode at the program level with strict mode-source matching. - MCP-native treasury โ
@potbot/mcpexposes 18 tools so any LLM can list, propose, vote on, and execute swaps in a pot over a singlenpxcommand. - Solana Blinks โ a governance proposal becomes a vote-able tweet. Anyone can act on it without leaving X.
Quick start
git clone https://github.com/YD811/potbot-v2.git
cd potbot-v2
npm install
Copy env template and fill in your own keys
cp .env.example apps/web/.env.local
Run the DApp locally
cd apps/web && npx next dev # โ http://localhost:3000
Or talk to the live MCP server from any AI client
npx @potbot/mcp
Set NEXTPUBLICPRIVYAPPID to enable email / Google / Twitter / LinkedIn login (Normie mode). Without it the app still boots โ Crypto-mode Phantom flow always works. Full local-dev setup (Anchor, devnet deploy, all env vars): docs/operations/development.md.
Current status
๐ข live ยท ๐ก devnet ยท ๐ต Phase 2 Q3'26 ยท ๐ฃ Phase 3 Q4'26 ยท โช vision
| Layer | Status | |---|---| | potvault Anchor program (30+ instructions: deposit ยท propose ยท vote ยท executeswap) | ๐ก Devnet live | | Sentinel/guardian role โ freezepot / cancelproposal; member exits never blocked | ๐ก Devnet (pending redeploy) | | Risk-param timelock โ loosening staged, applied via permissionless applypendingparams | ๐ก Devnet (pending redeploy) | | Per-protocol CPI allowlist (8 slots) + per-asset daily exposure caps | ๐ก Devnet (pending redeploy) | | Jupiter v6 / Ultra swap CPI (vault PDA signer) | ๐ก Devnet live | | Solana Blinks (deposit + vote endpoints) | ๐ข Live | | MCP server @potbot/mcp@0.2.0 on npm (18 tools, x402 paid tier) | ๐ข Live | | Squads v4 multisig authority (optional, UI + lib) | ๐ข Live | | Helius RPC + webhook indexer | ๐ข Live | | Keeper โ stop-loss / take-profit / trailing-stop cranks | ๐ก Devnet live | | BOT base layer โ AI proposal suggestions | ๐ก Devnet live | | Personal AI Voters (MemberDelegate + voteasdelegate) | ๐ก Devnet live | | Money Tree lifecycle (6 stages, HP health system) | ๐ก Devnet live | | Strategy slot accounts (createstrategy / closestrategy) | ๐ก Devnet live | | PWA (Saga / Seeker installable) | ๐ข Live | | Normie mode โ Privy email / Google / Twitter / LinkedIn + embedded Solana wallet | ๐ข Live | | Light theme + plain-English copy + USD-first prices | ๐ข Live | | Account dashboard (profile ยท live SOL balance ยท Add SOL airdrop ยท Quick Trade) | ๐ข Live | | /learn education page + /pricing (Free beta ยท Pro $29 ยท Pro+ $99) | ๐ข Live | | Governance presets โ ๐ Chill / โ๏ธ Balanced / ๐ Institutional | ๐ข Live | | Proposal card v2 (risk check ยท quorum bar ยท countdown) + trust surfaces (vault PDA + explorer, frozen/sentinel chips) | ๐ข Live | | pot_duel program โ 1v1 vault challenges (unlocks at Bud stage) | ๐ก Devnet live | | Pyth in-program oracle guard (re-reads price feeds inside execute_swap) | ๐ต Phase 2 | | Meteora DLMM + Kamino yield strategies | ๐ต Phase 2 | | Light Protocol ZK-compressed audit log | ๐ต Phase 2 | | Tamagotchi NFT mint (Bloom unlock, Metaplex) | ๐ฃ Phase 3 | | STAMPPOT privacy mode (PrivacyCash ZK proofs) | ๐ฃ Phase 3 | | Mainnet deploy | ๐ต Security pass done (14 localnet tests green, 7 security scenarios) โ blocked on deployer + executor wallet funding |
Devnet program: GJap9DjUoKZ9dhXMqGCPTeTzY6kPyBJ51SXL1pi8AmiK. Devnet pots were recreated after the security hardening grew the PotAccount layout.
Every feature with its lifecycle chip: potbot.fun/roadmap
Repository layout
potbot-v2/
โโโ apps/
โ โโโ web/ Next.js 14 DApp + API routes + Vercel Functions
โ โโโ potbot-mcp/ MCP server published as @potbot/mcp
โโโ packages/
โ โโโ program/ Anchor programs (Rust) โ potvault, potduel
โ โโโ sdk/ TypeScript SDK (@potbot/sdk)
โ โโโ ui/ Shared React components (@potbot/ui)
โโโ docs/ Architecture, operations, integrations, hackathon
โโโ scripts/ Devnet utilities (demo pots, seeding)
โโโ supabase/ Off-chain index migrations (NAV snapshots, swap metadata)
Documentation
| | | |---|---| | Architecture overview | System design, on-chain accounts, data flow | | Program reference | Instructions, PDAs, governance accounts | | Governance model | L0โL4 levels, quorum, risk caps | | Local development | Setup, commands, troubleshooting | | Deployment | Devnet โ mainnet procedure | | MCP integration | AI-agent integration guide | | Hackathon submission | Solana Frontier 2026 judge sheet | | Security policy | Responsible disclosure | | Contributing | How to propose changes |
License
MIT ยฉ 2026 Y-DAO Amsterdam.