Quickstart
-
Set a key (optional — you can also add one in the UI).
Terminal window export OPENAI_API_KEY=sk-...Terminal window export ANTHROPIC_API_KEY=sk-ant-...Terminal window export GEMINI_API_KEY=...Terminal window ollama pull llama3.2 # Moka detects Ollama on localhost automatically -
Run Moka (Node.js 20 or newer).
Terminal window npx @mokalabs/sandboxYour browser opens at a URL like
http://localhost:4000/?token=…. The token protects the local server — see Security. -
Click a starter prompt. The built-in Moka demo tools server is already connected, so the model can check the time, do math, roll dice (with an interactive MCP App), fetch web pages and more. Watch the Inspector on the right fill with model steps, tool calls and raw MCP messages.
-
Add your own things. Open Settings (⌘ ,):
- Models → Add model to connect another provider or your company gateway.
- MCP servers → Add server to pick from the gallery, fill in a form, or paste your Claude Desktop / Cursor config.
- Skills → Add skill to load a
SKILL.mdfolder.
Next steps
Section titled “Next steps”- Follow the tutorial to build a complete demo.
- Learn how generative UI works.
- See all CLI options.