Quickstart
Built with Lovable or Bolt? No terminal needed. Skip this page and use Mushi Mushi in Lovable or Bolt: you paste one prompt, and it takes about five minutes. Building a phone app with Expo, React Native or Capacitor? Go to your phone app.
Want the whole loop first? How it works, on video.
Install
Run this in your app’s folder. It finds your framework, signs you in through
your browser, installs the SDK and writes your settings to .env.local.
npx mushi-mushiSend your first report
Tap the report button in your app and write one sentence. Or say yes when the wizard offers to send a test report.
A test report is one made-up sentence, so its diagnosis has little to say. The console’s Send test report button goes one step further and shows a pre-written sample diagnosis, so you can see the shape of one. For a real diagnosis of your own code, see Already have Sentry issues? below.
Add your keys where your site is hosted
The wizard writes your settings to .env.local. That file stays on your
computer: it never reaches Vercel, Netlify or any other host, so without this
step the report button does not appear on your live site.
Add the same two settings where your site is built, then redeploy:
| Your app | Setting names |
|---|---|
| Next.js | NEXT_PUBLIC_MUSHI_PROJECT_ID and NEXT_PUBLIC_MUSHI_API_KEY |
| Vite (React, Vue, Svelte, Angular, Capacitor) | VITE_MUSHI_PROJECT_ID and VITE_MUSHI_API_KEY |
| Nuxt | NUXT_PUBLIC_MUSHI_PROJECT_ID and NUXT_PUBLIC_MUSHI_API_KEY |
| Astro | PUBLIC_MUSHI_PROJECT_ID and PUBLIC_MUSHI_API_KEY |
| Create React App | REACT_APP_MUSHI_PROJECT_ID and REACT_APP_MUSHI_API_KEY |
- Vercel: Project → Settings → Environment Variables (Production), then redeploy.
- Netlify: Project configuration → Environment variables, then redeploy.
Copy the values from .env.local. These settings are read when the site is
built, so a change only shows after the next deploy. The wizard prints the
exact names for your app when it finishes.
Get your first fix
Connect your AI editor. One click on the Connect page , or:
npx mushi-mushi setup --ide cursorThen ask your editor: “Get the latest Mushi Mushi report and fix it.”
Already have Sentry issues? Bring them in
The fastest way to a real diagnosis of your own code is a bug you already know about.
# Import your newest unresolved Sentry issues as reports (up to 10 at a time)
npx mushi-mushi sentry import --limit 5
# Or write one up yourself
npx mushi-mushi reports file --title "Checkout button does nothing on mobile" --description "Tapping Pay on iPhone Safari does nothing. No error is shown."sentry importneeds Sentry connected first: in the console, open Integrations → Sentry and add your organization slug, project slug and an auth token that can read events and projects.- Both commands need a key that can write (
mcp:write). If the CLI says your key cannot, runnpx mushi-mushi login --upgrade-scope. - Connect GitHub for a diagnosis that knows your code. Without it, Mushi Mushi still explains the bug from the error and the report, but it cannot name your files. Connect your repository on the console’s Connect page.
Pick your framework
The wizard detects your framework for you. Pick yours to see what it installs and the one line it adds to your code.
npm install @mushi-mushi/reactThen in your code: Wrap your app in <MushiProvider> (a client component in Next.js).
Full React / Next.js guide →- No terminal (Lovable, Bolt): Mushi Mushi in Lovable or Bolt, one script tag pasted through your prompt.
- Mobile previews: iOS · Android · Flutter, installed from the GitHub repo.
- Go deeper: Incident loop · MCP server · CLI console loop
What you need first
- An app you are building, for the web or for phones.
- A Mushi Mushi account. The free plan is enough, and the wizard signs you in through your browser.
- Optional: an AI code editor such as Cursor or Claude Code.
npx runs a tool from npm (the public library of JavaScript packages) without
installing it for good. Here it runs the Mushi Mushi setup wizard.
Where to start
Pick the card that matches what you are doing right now. Each one links to the right next step.I build with Cursor or Claude Code
Connect Mushi Mushi to your editor first, so your AI assistant can read bug reports and fix prompts without leaving the window.
npx mushi-mushi setup --ide cursorI have a web or mobile app
Add the report button (the SDK), send a first test report, and get a plain-English read in about 10 seconds.
npx mushi-mushiI want the web dashboard
Create a project, connect GitHub (where your code lives), and follow the setup checklist.
mushi login && mushi status
- Incident loopCursor or Claude Code
npx mushi-mushiA bug in your live app → a plain-English read → a fix prompt ready to paste into Cursor.
- MCP serverEditor-first
npx mushi-mushi setup --ide cursorAsk your editor what broke and get a fix brief, in Claude, Cursor or Codex. No extra AI key needed.
- React
npx mushi-mushiThe wizard installs the SDK, saves your settings and can send a test report.
- MobileMobile
npx mushi-mushiReact Native and Capacitor: shake the phone to report, and reports wait until the phone is back online. iOS, Android and Flutter SDKs are previews.
Keys and settings
Setting it up yourself? See Project ID & API keys for the setting names each framework expects.
The SDK needs only two settings: your project ID and API key, named with the
prefix your framework expects (see
examples/sdk.env.example).
The repo’s root .env.example is only for running the Mushi Mushi server
yourself. You do not need Supabase or an AI (LLM) key to use the SDK.
Troubleshooting
Not seeing what you expected?
Native builds bake Mushi Mushi env vars at compile time. Open Admin → Connect → Native app CI secrets and sync the missing vars, or run scripts/check-mushi-env.mjs in your prebuild.
Check that your project ID and SDK key match the console. Run mushi ping, then press Send test report on the Set up page (Test it tab). Use the SDK key, not the key your editor uses.
Restart Cursor after editing .cursor/mcp.json. If you signed in through the browser, you need no key: open Cursor's MCP settings and sign in to mushi again. Only the local setup (a command with MUSHI_API_KEY) needs a key and MUSHI_PROJECT_ID in env; mint that key on Manage apps.
On Mushi Mushi Cloud you need no AI key: open Billing and check whether this app has reached its diagnoses for the month. Self-hosters: add your Anthropic or OpenAI key under Settings → AI keys, and confirm migrations are applied and the classify worker is deployed.