YD811
potbot-v2
TypeScript

PotBot v2 - Group trading vaults on Solana. Collective POT management, governance, DeFi yield, Tamagotchi NFTs & POT Duels. Built for Solana Frontier 2026.

Last updated Jul 2, 2026
22
Stars
0
Forks
6
Issues
0
Stars/day
Attention Score
54
Language breakdown
No language data available.
โ–ธ Files click to expand
README

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

potbot.fun ยท @PotBotsol ยท Solana Frontier 2026

CI Solana Anchor MCP License: MIT


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.sol SNS 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 in rules_uri (IPFS / Arweave / HTTPS)
Keeper automation:
  • Anchored worker evaluates stop-loss, take-profit, and trailing-stop strategy slots on-chain
  • Once a trigger fires, the keeper submits execute_swap with StrategyTrigger mode โ€” no member needs to be online
  • DLQ retries on exponential backoff (2s / 5s / 13s / 34s / 89s)
MCP-native:
  • @potbot/mcp@0.2.0 on 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_swap enforces AdminDirect, Proposal, or StrategyTrigger mode at the program level with strict mode-source matching.
  • MCP-native treasury โ€” @potbot/mcp exposes 18 tools so any LLM can list, propose, vote on, and execute swaps in a pot over a single npx command.
  • 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.

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท YD811/potbot-v2 ยท Updated daily from GitHub