# How do I vibe-code a Solana app with an AI agent?

> Vibe coding a Solana app: hand your AI agent Cherry's integration brief, skip the wallet-connect code, and list the app free with no review queue.


Vibe coding Solana apps takes two moves: have an AI coding agent such as Claude Code, Cursor or Codex build an ordinary web app from the integration brief the Cherry.fun developer portal writes, so Cherry's Mini App SDK handles the wallet, then list it free at [portal.cherry.fun](https://portal.cherry.fun). Users open it inside Cherry already signed in with a Solana wallet, so your agent never writes wallet-connect code.

That removes the slowest part of the build. People open [Cherry](https://cherry.fun/learn/features/cherry-wallet/) on iPhone, Android, the Solana Seeker and the web already signed in with Google, Apple, X or Telegram, and top up with a card inside the app, so by the time they tap your mini-app the wallet is connected and funded.

## Why the wallet is where Solana vibe coding stalls

Agents are good at screens and app logic. Wallet code is where a short prompt turns into a long debugging session. The standard React setup from the [Solana Wallet Adapter guide](https://github.com/anza-xyz/wallet-adapter/blob/master/APP.md) installs several packages and nests a connection provider, a wallet provider and a wallet modal provider around a connect button. Then your users still need a wallet, and the wallet still needs funds.

Inside Cherry most of that layer is already in place:

| Part of the app | Standalone Solana web app | Same app inside Cherry |
|---|---|---|
| Sign-in | Connect button, often a signed message to log in | User arrives signed in; your app gets a signed launch token |
| Wallet | User installs one and connects it | Their Cherry wallet is connected on open |
| Funds | User buys crypto somewhere else first | User tops up inside Cherry by card, Apple Pay, Google Pay or PayPal |
| Reaching phones | Your own store listings and store review | One free listing opens inside Cherry on iPhone, Android, Seeker and web |
| Code the agent writes | Providers, modal, connect flow | Cherry's provider and wallet adapter, a framing header, a token check on your backend, a domain proof file |

## Before you start

- A web app your agent can deploy to a public HTTPS address. Staging is fine while you build.
- A host where you can set a response header and serve a static file.
- Your repository open in an agent (Claude Code, Cursor, Codex or similar).
- A wallet to accept the Cherry Developer Agreement, plus an email and a Telegram handle for the listing.
- An idea that fits the [Mini App Policy](https://portal.cherry.fun/docs/mini-apps/policy). Tools, free-to-play games of skill, swaps of existing tokens and NFT marketplaces are open to every developer. Prediction markets, token launches and regulated financial services are for licensed partner apps only, and mini-apps are for adults.

## Step 1: Register the app and declare Solana

Open the [listing wizard](https://portal.cherry.fun/dashboard/launch) and fill in the first steps: name, a one-line pitch, a category, an icon and a cover, then who runs the app, which chains it uses and its age rating. Choose Solana as the chain. Solana is live today; requests for other chains are refused.

You know it worked when the portal shows an app ID. Every launch token your app receives carries it.

## Step 2: Copy the brief for your agent

Continue to the Integrate step. Under **Prompt for your agent**, press **Copy prompt** or download it as Markdown. Per [Cherry's AI agent guide](https://portal.cherry.fun/docs/mini-apps/ai-agents), the brief is filled with your app's own facts and covers installing the SDK, the framing header for your host, signing users in from the launch token, verifying it on your backend, using the wallet within your limits, labelling every transaction, the domain proof file and a self-check list.

## Step 3: Prompt the agent for the Solana wallet code

Paste the brief into the agent and add a short instruction of your own, for example:

```text
Follow this brief to make the app a Cherry mini app. Use the Cherry
wallet adapter for every Solana transaction. Inside Cherry, show no
connect-wallet button and never ask for a signature to log in. Label
every transaction. Run the self-check at the end and show me the diff
before deploying.
```

If the agent needs more detail, point it at `https://portal.cherry.fun/llms.txt`, an index of every docs page, or `llms-full.txt`, all of them in one file.

## Step 4: Read the Solana parts of the diff

Skim the rest if you like, but read the wallet code line by line.

**The adapter swap.** The agent registers Cherry's adapter in the wallet provider with `autoConnect`, as the [wallet docs](https://portal.cherry.fun/docs/mini-apps/wallet) show:

```tsx
import { CherryWalletAdapter } from '@cherrydotfun/miniapp-sdk/solana';
const wallets = [new CherryWalletAdapter()];
// <WalletProvider wallets={wallets} autoConnect>
```

Apps on `@solana/kit` use `createCherrySigner` from the SDK's kit entry point instead.

**Labels.** Every transaction gets one plain line saying what the user is paying for, shown in Cherry's wallet sheet under your app's name:

```ts
import { withTransactionLabel } from '@cherrydotfun/miniapp-sdk/solana';
await withTransactionLabel('Buy 3 lives', () => sendTransaction(tx, connection));
```

**Sign-in on the backend.** The launch token goes to your server once and is checked with `verifyLaunchToken`. Users are keyed by `cherry_id ?? sub`, because `sub` is a wallet and changes when someone picks another wallet to pay with.

**Nothing that touches keys.** No field asks for a recovery phrase, private key or password. The user's keys stay on their device and they approve or decline every request in Cherry.

The diff is done when the self-check passes and a search for your old connect button finds it only in the code path for visitors outside Cherry.

## Step 5: Try the wallet flow in your test room, then publish

Deploy, add the address under Integrate, and press **Open in test room**. Cherry opens a private group that only your team sees, with your app running inside. Then run the automated checks and the automated test, which opens your app on a phone-sized screen signed in as a test user. When they pass, press **Publish to Cherry** and the app is listed immediately. There is no review queue.

From that moment the app opens inside Cherry on iPhone, Android, the Solana Seeker and the web, in front of people who installed Cherry from the App Store, Google Play and the Solana dApp Store and already hold a Solana wallet. You get no store listing of your own and sit through no store review; your app lives inside Cherry.

## Step 6: Price one-off Solana purchases within your tier

Sell items, charge for access or take a commission on trades inside your app, all as Solana transactions the user approves in their own wallet. Because users top up inside Cherry, your app has no on-ramp or card checkout to build. The automated test warns on links to external checkouts, so keep payments on-chain.

Two limits shape your pricing. A new listing is Unverified: up to $50 per transaction and $50 per wallet per day in your app. One three-minute identity check of the project owner raises that to $1,000 per transaction and $5,000 per wallet per day. Recurring subscriptions and token approvals are refused for Unverified and Verified apps, so sell one-off purchases or passes. Listing stays free; if the app earns, you may send Cherry a voluntary tip.

## Troubleshooting

- **The test fails on a connect button.** The check looks for any visible connect-wallet button or link for 15 seconds. Hide yours when the app runs inside Cherry.
- **The app does not load in the frame.** Your `Content-Security-Policy` needs a `frame-ancestors` entry that includes Cherry, and no `X-Frame-Options` header may block it. The [quickstart](https://portal.cherry.fun/docs/mini-apps/quickstart) has the exact header.
- **Users lose their session.** Browsers block third-party cookies in frames. Keep your session token in memory and send it in an `Authorization` header.
- **A payment is refused with a limit error.** You hit the per-transaction or daily cap for your tier. Offer a smaller amount, or finish the identity check.
- **Sign-in fails after a few minutes.** Launch tokens live five minutes. Exchange one for your own session as soon as the app opens.

## Related guides

- [List a mini app for free](https://cherry.fun/learn/features/list-a-mini-app-for-free/): what a Cherry listing gives a builder, start to finish.
- [How to publish a vibe-coded app](https://cherry.fun/learn/guides/how-to-publish-a-vibe-coded-app/): the deploy-then-list route for any web app.
- [Build a Solana mini app by hand](https://cherry.fun/learn/guides/build-a-solana-mini-app/): the SDK steps without an agent.
- [Accept Solana payments](https://cherry.fun/learn/guides/accept-solana-payments/) and [earning from a vibe-coded app](https://cherry.fun/learn/guides/how-to-monetize-a-vibe-coded-app/): pricing and payments in more depth.
- [Vibe-coded app security checklist](https://cherry.fun/learn/guides/vibe-coded-app-security-checklist/): what to review before real money moves.

Want to see what your users see? Get Cherry on [iPhone](https://apps.apple.com/app/cherry-fun-solana-messenger/id6749173799), [Android](https://play.google.com/store/apps/details?id=fun.cherry) or [the web](https://chat.cherry.fun).

## FAQ

### Do I need to write a Solana program to vibe-code a Solana app?

Often not. Many apps only move SOL or tokens with transactions your agent builds in @solana/web3.js or @solana/kit, which the Mini App SDK passes to the user's wallet to sign. If you do call your own program, Cherry simulates the transaction and shows the user what leaves their wallet, and your label explains the action. Reviewing that program before real money touches it is your job.

### Which AI coding agent should I use for a Solana app?

Any agent that works inside your repository. Cherry's portal writes its integration brief for Claude Code, Cursor, Codex or a similar agent, and every docs page is also published as plain text the agent can read.

### Do my users need Phantom or another wallet to use my app inside Cherry?

No. Their Cherry wallet is connected the moment your app opens, and the Mini App Policy says your app never asks users to connect, import or create another wallet. Outside Cherry, your app can keep its normal login.

### How do users get SOL or USDC to pay in my app?

They fund their own wallet inside Cherry: buy crypto with a card, Apple Pay, Google Pay or PayPal, or deposit from another wallet or an exchange. Your app builds no on-ramp. Network and provider fees apply.

### Can a Solana mini-app in Cherry ask users to sign on Base or BNB Chain?

Not today. Cherry users hold wallets on Solana, BNB, Base and Robinhood Chain, but a mini app asks them to sign Solana transactions only, and requests for other chains are refused.

### Should my agent use @solana/web3.js or @solana/kit?

Either works. Apps on @solana/web3.js register CherryWalletAdapter in their wallet provider, and apps on @solana/kit use createCherrySigner from the SDK's kit entry point. Tell the agent to keep the library your code already uses.

## Sources

- [Cherry Portal](https://portal.cherry.fun)
- [Cherry docs: Build with an AI agent](https://portal.cherry.fun/docs/mini-apps/ai-agents)
- [Cherry docs: Mini apps overview and trust tiers](https://portal.cherry.fun/docs/mini-apps)
- [Cherry docs: Mini app quickstart](https://portal.cherry.fun/docs/mini-apps/quickstart)
- [Cherry docs: Wallet and limits](https://portal.cherry.fun/docs/mini-apps/wallet)
- [Cherry docs: Listing and publishing](https://portal.cherry.fun/docs/mini-apps/listing)
- [Cherry docs: Mini App Policy](https://portal.cherry.fun/docs/mini-apps/policy)
- [Solana Wallet Adapter: quick setup for React apps](https://github.com/anza-xyz/wallet-adapter/blob/master/APP.md)

