Guides
Local development
Work on a Robodev project on your machine. robodev dev serves schema and APIs offline; robodev deploy pushes the same tree to the hosted project.
After npm i -g robodev (or npx), robodev auth and robodev deploy talk to hosted Robodev by default. Local work is the project folder. Do not run a control plane. To run the project's own schema and APIs on your machine, use robodev dev (/docs/dev) — it needs no Starbase account and no deploy. Google sign-in is the one hop to the platform broker; password auth stays offline.
Clone your project
- auth opens hosted Robodev and stores tokens in ~/.robodev/credentials.json.
- Projects come from povio/tiny-template (New project → From GitHub template), so the clone already has robodev/.robodev linked to the hosted project at https://{projectId}.robodev.povio.dev.
- Do not set control-plane URL overrides. Defaults are production.
Folder layout
- robodev/.robodev — project id and API URLs (legacy ./.robodev is still read if the new file is missing).
- .env — Vite API URLs written by robodev link.
- robodev/database.ts, robodev/api/, optional robodev/jobs/, optional robodev/hooks/, and optional robodev/package.json.
- apps/fe — the Tiny Vite app (local iterate with bun). CLI deploy with a frontend block uploads the Vite dist as a hosted static SPA, not apps/fe source.
Local UI (apps/fe)
When robodev/.robodev has a frontend block and the local Vite build succeeds, the project App URL serves that hosted static SPA. Use bun in apps/fe to iterate locally (Vite default http://localhost:3000), or robodev dev --with-fe.
- bun is required.
- Vite default is http://localhost:3000.
- robodev link writes env so the SPA talks to the hosted project API.
Schema and APIs
Edit robodev/database.ts, robodev/api/**, robodev/jobs/**, robodev/sockets/**, robodev/mcp/**, or robodev/hooks/**, then robodev deploy from the project root (or dashboard Code + Save). When .robodev has a frontend block, the CLI also runs the local Vite build and uploads that static SPA. Destructive schema changes need confirmation or --force.
Deploy uploads the allowlist (robodev/database.ts, robodev/api/**/*.ts, robodev/jobs/**/*.ts, robodev/sockets/**/*.ts, robodev/hooks/**/*.ts, optional robodev/package.json, and root frontend index.html + src/** when present). It does not upload apps/fe source. With a frontend block, the CLI runs Vite locally and uploads the dist as index.html + public/**. Dashboard Code + Save does not run Vite. See Deploy (/docs/deploy) for force, hosts, and wait-until-live.
Link an existing project
Writes robodev/.robodev and Vite API env for a folder that already has the tree (including after you clone your own app repo). Omit the id to pick from a list.
Hosted React at the project root
If index.html + src/ sit at the project root (not apps/fe), deploy uploads that UI and the project host serves it. For Tiny apps/fe, Build hosts the Vite dist the iframe previews after frontend files change, and robodev deploy uploads apps/fe source plus that dist so both the live host and Build stay in sync.
Local vs hosted
- Hosted: control plane https://robodev.povio.dev; project APIs, Swagger, storage, and (after CLI frontend deploy) the static SPA on https://{projectId}.robodev.povio.dev.
- Local iterate (Tiny apps/fe): bun Vite SPA on http://localhost:3000, or robodev dev --with-fe.
- Local APIs: robodev dev serves schema, file routes, jobs, sockets, storage, Swagger, and Robodev Auth on http://localhost:4000 against an embedded Postgres.
- Local: files on disk; robodev deploy (or Code + Save) updates the hosted project.
- Not local: running Starbase, docker compose for the control plane, or pointing the CLI at localhost control-plane ports.
Next
Getting started (/docs), Deploy (/docs/deploy), Connect a frontend (/docs/frontend).
bun is required for local iterate in apps/fe. robodev deploy with a frontend block hosts the static SPA at the project App URL.