Skip to content

CLI

npx @mokalabs/sandbox [config.json] [options]
moka [config.json] [options] # after npm install -g @mokalabs/sandbox
CommandDescription
mokaStart the server and open the UI
moka path/to/moka.jsonStart with a specific config file
moka init [file]Write a starter moka.json (detected models + demo server + guide skill)
moka demo-serverRun the bundled demo MCP server on stdio (use it from any MCP client)
moka demo-agent [--port 4100]Run a demo agent that speaks A2A and AG-UI (with A2UI). See Remote agents
FlagDefaultDescription
-p, --port <n>4000 or $PORTPort. If taken, the next free port is used
-H, --host <host>127.0.0.1 or $MOKA_HOSTInterface to bind. Use 0.0.0.0 to expose on the network
-c, --config <file>see belowConfig file path
--token <token>random or $MOKA_TOKENFixed access token
--no-authoffDisable the access token (trusted machines only)
--no-openoffDon’t open a browser (also $MOKA_NO_OPEN=1 or CI)
--proxy <url>$HTTPS_PROXY / $HTTP_PROXYRoute outbound traffic through an HTTP(S) proxy. See corporate networks
-v, --versionPrint the version
-h, --helpShow help
  1. --config or the positional argument
  2. $MOKA_CONFIG
  3. ./moka.json in the current directory
  4. ~/.moka/config.json (created on first run)

On first run, Moka seeds the config with every provider it detects, a local Ollama if running, the demo MCP server and a small guide skill.

Claude Desktop / Cursor
{ "mcpServers": { "moka-demo": { "command": "npx", "args": ["-y", "@mokalabs/sandbox", "demo-server"] } } }