Skip to content

Installation

RequirementVersionNotes
Node.js24+Required for native fetch, WebSocket, and module features
pnpm10+Workspace manager. Install via corepack enable
Git2.30+For cloning the repo
Docker24+Optional. Required only for sandbox execution
Terminal window
git clone https://github.com/openmotoko/openmotoko.git
cd openmotoko
corepack enable
pnpm install

Copy the example env file and fill in your API keys:

Terminal window
cp docker/.env.example .env

Required variables:

VariablePurpose
OPENMOTOKO_PASSWORDLogin password for the web UI
At least one LLM keyANTHROPIC_API_KEY, OPENAI_API_KEY, or GOOGLE_AI_API_KEY

See Environment Variables for the full reference.

Terminal window
pnpm build

This compiles every package in the monorepo in dependency order.

Terminal window
pnpm dev

This starts both the API server (port 3457) and the web UI (port 5173) in parallel.

You can also start them individually:

Terminal window
pnpm dev:api
pnpm dev:web

Open http://localhost:5173 in your browser. Log in with the password you set in OPENMOTOKO_PASSWORD.

Check the API health endpoint:

Terminal window
curl http://localhost:3457/api/health
ProblemCauseFix
EACCES on installPermissions issueRun corepack enable as admin, or use volta
Port 3457 in useAnother process on that portSet OPENMOTOKO_PORT to a different port
No models availableMissing API keysAdd at least one LLM provider key to .env
Docker sandbox failsDocker not runningStart Docker Desktop or the Docker daemon
sharp build errorMissing native depsRun pnpm approve-builds then pnpm install again
WebSocket disconnectsCORS mismatchSet OPENMOTOKO_CORS_ORIGIN to your frontend URL