---
agent:endpoint: "https://web.botchi.ai/.well-known/search?q={query}"
agent:method: "GET"
agent:instructions: "Search the Botchi product docs (English and Italian) for how to set up and use workspaces, agents, workflows, apps, integrations and billing. Results are Markdown passages linked to their section."
---

# Build from Claude Code or Codex

> Edit an app or website from a coding tool on your computer while Botchi keeps its source, preview data, checks and publishing.

## Before you begin

You need owner or dashboard editor access to the app, an external client such as Claude Code or Codex [connected to Botchi over MCP](/en/docs/mcp), and Node.js 24 on your computer. Codex needs network access in its sandbox.

Your computer runs the editor and the local preview. Botchi keeps the saved source, the preview database, the checks and publishing, exactly as for the [builder in the dashboard](/en/docs/apps/build).

## Open a session

1. Create the app in the dashboard, or ask the client to create it.
2. Ask the client to open the builder for the app, by name.
3. The client downloads the app's folder, installs it and starts the local preview. The download link works once, for 5 minutes.
4. Open the local address the client shows to try the app with its preview data.

While the session is open, the dashboard builder shows **Being edited from an external client** with your name, and nobody can edit the app there, you included. To continue in a folder from an earlier session, ask the client to open the builder again: it gives the commands for an existing folder.

## Work

Ask the client for changes as you would ask the builder. Every file it saves is sent to Botchi and becomes the app's saved source. When a change touches the app's data or server functions, the preview's server functions are updated; the local preview uses them as soon as the update finishes. Where available, the client updates them from your computer in a few seconds, through Botchi; otherwise Botchi updates them.

While the session is open, the preview runs what the client sent. When the session ends, by closing it or with **Resume here**, Botchi puts back the version it saved and checked.

If that version cannot run (it has errors, or no longer has server functions), Botchi switches the preview's server functions off until a saved version can run. Test data changed during the session stays changed. Checks and publishing always use the saved source, never what ran on the preview.

Changes made on Botchi, such as a new design or image, come back to the folder. A file changed in both places is never overwritten: the client sees the conflict and merges it.

The client runs these commands itself, as `node scripts/botchi.mjs <command>`. You never need to type them.

| Command | What it does |
| --- | --- |
| `dev` | Starts the local preview and keeps the folder and Botchi in sync. Keep it running. |
| `sync` | Sends local changes now; `--wait` waits until the preview runs the new server functions. |
| `pull` | Brings in changes made on Botchi without overwriting local edits. |
| `status` | Shows the session, unsent changes, preview updates and the last check. |
| `verify` | Sends every change, then runs Botchi's checks on the saved source; `--last` shows the last result without running them again. |
| `test` | Runs the app's tests on your computer, free of charge. |
| `tools` | Lists the builder tools the client can use, such as design and images; `tool <name> --help` describes one. |
| `data` | Reads the preview's test records. |
| `logs` | Shows the preview's server logs. |
| `run` | Runs one of the app's functions in the preview. |
| `seed` | Loads test data into the preview, after a passing check. |
| `reset-data --yes` | Deletes the preview's test data, then updates the preview's server functions. |
| `design` | Reads or changes the app's design. |
| `role` | Chooses the app role the local preview uses. |
| `close` | Ends the session and gives the builder back to the dashboard. |

## Check and publish

1. Ask the client to run the checks. They are the same checks the dashboard builder runs, recorded for that exact saved source.
2. Ask the client to close the session.
3. Open the app's builder in the dashboard and choose **Publish**, as described in [Publish and roll back](/en/docs/apps/publish).

A change saved after the checks needs a new check before publishing.

## Take the builder back

Open the app's builder in the dashboard and choose **Resume here**. The session in the client ends and every change it already sent stays saved; edits only in the folder stay there. The client is told you took the builder back and asks you before opening it again. To work from the client again, ask it to open the builder once more.

Only the member who opened the session sees **Resume here**. Other members see who is editing and get the builder when the session ends.

## Limits and costs

- One editor per app at a time: in the dashboard or from one external client.
- The session ends after 10 minutes without activity; `dev` keeps it open while it runs, for up to 8 hours. To continue after that, ask the client to open the builder again.
- Checks and builder tools use [Sparks](/en/docs/apps/costs) as in the dashboard builder; saving changes to the preview does not. A partner operator's work is paid from the partner's Sparks.
- The client's own AI model is billed by its provider, not by Botchi.

## Related

- [Build an app](/en/docs/apps/build)
- [Connect external AIs over MCP](/en/docs/mcp)
- [Publish and roll back](/en/docs/apps/publish)
- [App costs and limits](/en/docs/apps/costs)
