Installation
Moka needs Node.js 20+ (or Docker). Pick the style that suits you:
npx @mokalabs/sandboxAlways runs the latest version. Great for trying things out.
npm install -g @mokalabs/sandboxmoka # same as npx @mokalabs/sandboxmoka --helpnpm create moka@latest my-demo # or: pnpm create moka / yarn create mokacd my-demonpm installnpm startCreates a folder with moka.json, example skills and @mokalabs/sandbox pinned as a dev dependency — commit it and your whole team gets the same demo.
docker run --rm -p 4000:4000 -e OPENAI_API_KEY ghcr.io/mokahq/mokaSee Docker for volumes, tokens and team setups.
git clone https://github.com/mokahq/mokalabs && cd mokacorepack enable && pnpm install && pnpm buildnode packages/sandbox/dist/cli.jsWhat gets created
Section titled “What gets created”| Path | Contents |
|---|---|
./moka.json | Used if present in the current folder (commit it!) |
~/.moka/config.json | Default config when there’s no moka.json |
~/.moka/sessions/ | Chat history, one JSON file per chat |
Override the data directory with MOKA_HOME. See environment variables.
Updating
Section titled “Updating”npx @mokalabs/sandbox always fetches the latest release. For global installs run npm install -g @mokalabs/sandbox@latest. Your config and chats are kept.