Skip to content

CLI reference

moko is how you set up, run, and look after your companion. Everything is below.

CommandWhat it does
moko setupGuided first run (full-screen, stepped) — language, country & sleep window, brain & senses, Telegram.
moko config [KEY [VALUE]]Read or change settings. No args opens an editor; --list shows all; --restart restarts after.
moko secret [set|list|rm] [name]Store provider credentials in ~/.moko/. Moko uses them but never sees the value.
moko login [provider]Connect a provider sign-in or subscription (e.g. xai) instead of a metered key.
CommandWhat it does
moko statusHow Moko is configured.
moko doctorLocal health check — what’s set up, running, or needs attention.
moko journalRecent dreams and unprompted messages.
CommandWhat it does
moko chatTalk in the terminal — handy when the service is off.
moko pairConnect Telegram with a one-time code.
CommandWhat it does
moko startBring Moko online on every configured channel.
moko service [install|start|stop|restart|status|logs|uninstall]Manage the background service (systemd --user on Linux). Defaults to status.

Trigger now what Moko normally does on its own — handy for trying it out.

CommandWhat it does
moko dreamConsolidate memory now.
moko reflectForm a private thought now.
moko researchLook up one of its own questions now.
moko outreach [--force]Run the reach-out decision; --force just sends.
CommandWhat it does
moko trust [category] [allow|ask|deny]View or set per-category trust for sensitive actions.
moko snapshot [label]Back up the whole mind now; --list shows backups.
moko restore [name]Restore from a snapshot (stop Moko first); --yes skips the prompt.
CommandWhat it does
moko groom [--upgrade]Refresh tokens, the claude CLI, and updates; --upgrade applies Moko updates.
moko monitor [--no-open]Open the local monitor; --no-open just prints the URL.