Sharing demos
A Moka demo is just a folder:
my-demo/├── moka.json # models, servers, skills, workspaces├── skills/ # SKILL.md folders referenced from moka.json└── package.json # optional: pins @mokalabs/sandbox-
Use
env:references for every secret (the UI suggests them). Check with Settings → Config file → Download (keys redacted) — the downloaded file is what’s safe to share. -
Use relative paths for skills (
"path": "skills/brand-voice"); they resolve relative tomoka.json. -
Commit the folder, or zip it.
-
The recipient runs, inside the folder:
Terminal window npx @mokalabs/sandbox # or: npm install && npm start if you used create-moka
- Add a
.env.examplelisting the variables your demo needs. - Add
"$schema": "https://unpkg.com/@mokalabs/sandbox/dist/moka.schema.json"tomoka.jsonfor autocompletion in VS Code and other editors. - Put the story in starter prompts so the presenter doesn’t have to remember what to type.
- Stdio servers that use
npx -y …oruvx …install themselves on first run — no extra setup for the recipient.