Rickshare is a shared trip fund for groups of friends where an AI agent plans and books, and nobody's money moves without their own yes.
The problem: on every group trip, one person ends up booking everything on their own card and then chasing everyone for weeks to pay them back. Splitwise only records the debt after the fact, and shared wallets turn everyone's money into one pot that whoever is most active ends up spending. AI agents can now spend money, but they are built to act for one person, while a group has several people with different budgets and different opinions on what is worth paying for.
Rickshare works like a small DAO with one rule: nobody can be outvoted on their own money. We call it consent per share.
How it works:
- Friends create a trip, add USDC to a shared vault on Arc, and each person sets their own limits: an auto-approve amount and a total cap.
- The AI agent searches for real activities, gets a quote from a merchant, and proposes a purchase that names exactly who it is for and each person's share. For example: paragliding for Angie and Gitau, but not Bashy.
- Each participant approves only their own share. Shares within a person's own auto-approve limit are approved automatically. Anything above it needs a fresh World ID check plus a transaction from that person's own wallet, so a real, specific human has to say yes. Anyone can decline with "Not for me", and people who are not part of a purchase are never charged.
- When everyone in a proposal has agreed, their shares lock in the vault. The merchant sees the lock, issues the ticket, and is paid in the same transaction. If no ticket arrives by the deadline, the shares are refunded. After the trip, leftover money goes back to exactly who put it in.
- Tickets appear in each participant's itinerary seconds after the last approval.
Safety: the agent can only propose. It cannot approve, move funds or choose who gets paid, since payees come only from an allowlist of merchants. Even if a malicious listing tricks the agent through prompt injection, the contract refuses to send money anywhere it shouldn't.
Identity: the trip, every member and the agent get ENS names (for example bashy.india26.rickshare.eth), and the agent's name is restricted so it can only update the trip's itinerary record.
Rickshare is built for people who have never used crypto: they sign in with email or Google, get a wallet automatically, and see "Add money" and "Approve my share", not addresses or gas.
We are starting with group travel, but the same building block works anywhere a few people share money and want help spending it: flatmates splitting rent, wedding committees, siblings paying for a parent's care, or a housing society fund. Swap the agent, keep the vault.
Current scope: runs on Arc testnet and ENSv2 on Sepolia, with mock merchants standing in for real activity operators.
Rickshare is a TypeScript monorepo (Bun workspaces) with four parts: Solidity contracts, a Hono API, mock merchant services, and a React web app. They share one package of zod schemas, chain config and generated ABIs, so every layer is typed end to end.
Contracts (Solidity, Foundry, OpenZeppelin), on Arc testnet:
- TripFactory deploys a TripVault per trip. The vault tracks money per member (deposited, locked, spent, available) rather than as one pot.
- The agent's key can only call propose(). A proposal names an allowlisted merchant, the participants and each person's share. Inside propose(), each share at or below that member's own auto-approve limit (and within their total cap) is approved automatically. Everything else waits for that member.
- approve() requires two things: the call must come from the member's own wallet, and it must carry an EIP-712 attestation from our verifier saying this member just passed a fresh World ID check for this exact proposal. The signature domain includes the chain id and the vault address, so attestations can't be replayed across proposals, vaults or chains.
- When every participant has agreed, their shares lock. Only the proposal's merchant can call fulfill() with a ticket hash, which records the ticket and pays them in one transaction. refund() returns locked shares after the deadline, and settle() returns leftovers after the trip.
- Custom errors, events for every state change, SafeERC20 and ReentrancyGuard, plus fuzz/invariant tests asserting the vault's USDC balance always equals the sum of members' available and locked funds, and that non-participants never change on a proposal.
API (Hono on Bun, SQLite via drizzle):
- SIWE sign-in using viem's SIWE utilities.
- An indexer watches vault events with viem and writes derived state to bun:sqlite. The chain stays the source of truth for money. Updates stream to the app over SSE.
- Approvals: World ID step-up over OIDC. We validate the ID token server-side with jose (issuer, audience, JWKS signature, nonce, auth_time freshness), check that the World subject matches the one the member linked when joining, then sign the attestation. Secrets never reach the browser.
- The agent runs on [Claude via OpenRouter / Anthropic] through an OpenAI-compatible client, with tools to search activities (Tavily), list merchants, get signed quotes, read trip state, propose purchases and update the itinerary. Web content is passed to the model as delimited untrusted data, never as instructions, and payees can only come from the merchant allowlist, so a prompt-injected agent still can't redirect money.
Merchants (Hono on Bun): each mock operator signs its quotes, so the agent can't invent prices or payees. A watcher sees a proposal lock, issues a ticket with a QR page, and calls fulfill().
Web (React, Vite, TypeScript, TanStack Router and Query, wagmi/viem, Tailwind): Privy embedded wallets let people sign in with email or Google, with Arc testnet added as a custom chain. The UI is built around one metaphor: every proposal is a ticket, and every approval is an ink stamp on it.
Partner technologies:
- Arc: USDC is the gas token, so travelers only ever hold dollars, with no second token to buy just to approve. Fast finality means a ticket appears seconds after the last approval. [Contracts started in Arc Studio: link]
- World ID: turns an approval from "a wallet signed" into "this specific human just said yes", and guarantees three travelers are three different people, not one person with three wallets.
- ENSv2 (Sepolia): the trip, each member and the agent get names under rickshare.eth. Using Enhanced Access Control, the agent is granted the setter role only for the itinerary text record, so its limits live in ENS's own permission system.
Notable or hacky:
- Arc's USDC has two faces: the native gas balance uses 18 decimals, while the ERC-20 interface at 0x3600...0000 uses 6. All money logic goes through the ERC-20 interface, never msg.value.
- Bridging offchain identity into onchain enforcement: World ID is an OIDC flow the contract can't see, so the backend turns a validated login into a short-lived EIP-712 attestation the vault can check. Our signer can refuse to sign, but it can never approve on anyone's behalf.
- Privy wallets start empty, which breaks the first transaction. On testnet, the API tops up new members from a deployer wallet so onboarding needs no faucet.
- A local-only dev bypass for World approvals let us build the UI before identity access arrived. It refuses to start on any hosted deployment.