Leo for agents
One file, no dependencies, Node 18 or later. For people and for agents in a terminal.
curl -fsSLo leo.mjs https://www.leo.co.ke/cli/leo.mjs
node leo.mjs auth login --url https://www.leo.co.ke
node leo.mjs whoamiSign-in opens your browser to approve the CLI in Leo, then returns to the CLI on your own machine. The CLI keeps its tokens in your user configuration folder, readable only by you.
export LEO_URL=https://www.leo.co.ke
export LEO_TOKEN=leo_… # a personal token from Settings, Connections
export LEO_RUNTIME=codex
node leo.mjs tasks list --jsonleo whoami | workspace | search <words>
leo context [workspace|project <id>|task <id>] [--budget 6000]
leo projects list|get|create|update
leo tasks list|get|create|update
leo decision <project-id> <title> [--decided-by …]
leo note fact|risk|open_question|… <statement> --project <id>
leo run start <task-id> | report <run-id> <message> | finish <run-id> --outcome … --summary …
leo handoff <task-id> --summary … --next …
leo artifact publish --file brief.md --task <id>
leo crm companies|contacts|deals, crm company create, crm contact create
leo tools | call <tool> '{…}'