npx @mokalabs/sandbox [config.json] [options]
moka [config.json] [options] # after npm install -g @mokalabs/sandbox
| Command | Description |
|---|
moka | Start the server and open the UI |
moka path/to/moka.json | Start with a specific config file |
moka init [file] | Write a starter moka.json (detected models + demo server + guide skill) |
moka demo-server | Run 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 |
| Flag | Default | Description |
|---|
-p, --port <n> | 4000 or $PORT | Port. If taken, the next free port is used |
-H, --host <host> | 127.0.0.1 or $MOKA_HOST | Interface to bind. Use 0.0.0.0 to expose on the network |
-c, --config <file> | see below | Config file path |
--token <token> | random or $MOKA_TOKEN | Fixed access token |
--no-auth | off | Disable the access token (trusted machines only) |
--no-open | off | Don’t open a browser (also $MOKA_NO_OPEN=1 or CI) |
--proxy <url> | $HTTPS_PROXY / $HTTP_PROXY | Route outbound traffic through an HTTP(S) proxy. See corporate networks |
-v, --version | | Print the version |
-h, --help | | Show help |
--config or the positional argument
$MOKA_CONFIG
./moka.json in the current directory
~/.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.
{ "mcpServers": { "moka-demo": { "command": "npx", "args": ["-y", "@mokalabs/sandbox", "demo-server"] } } }