1npx -y kimaki@latest --gateway
target machine browser already on Discord Discord ┌──────────────────────┐ ┌───────────────────────────────┐ ┌─────────────┐ │ kimaki --gateway │──────>│ install_url │──────>│ pick server │ │ wait for authorized │ │ Playwriter, or send the user │ │ Authorize │ │ then project add │<──────│ the URL │<──────│ │ └──────────────────────┘ └───────────────────────────────┘ └─────────────┘
1sudo pmset -a sleep 0 disksleep 0 displaysleep 0
npx. Do not write helper scripts.1curl -fsSL https://opencode.ai/v2/install | bash
1npx -y kimaki@latest --gateway
data: event lines on stdout. Watch for install_url:1data: {"type":"install_url","url":"https://kimaki.dev/discord-install?clientId=...&clientSecret=..."}
1npx -y kimaki@latest bot install-url
kimaki --gateway again: it reuses the same credentials and prints the same URL.| Event | Meaning |
install_url | Open this URL once |
authorized | Discord install succeeded |
ready | Bot is connected and onboarding is done |
error | Read message. Do not wipe ~/.kimaki |
Kimaki <machine name>, with a #kimaki channel and an onboarding thread. Do not create categories by hand.1npx -y kimaki@latest project add /path/to/repo
/login in Discord so the agent has a model. See Managing Projects and Models & Subscriptions.12npx -y kimaki@latest status npx -y kimaki@latest project list
running: with "connected":true for OpenCode, and the new channel in project list. For errors, read the log:1tail -n 50 "$(npx -y kimaki@latest logs)"
install_url from docker compose logs -f, then Authorize.npx -y kimaki@latest --gateway command. Keep the process alive with the host's usual supervisor (systemd or a terminal multiplexer). Parse data: lines the same way.npx -y kimaki@latest --gateway. Do not install from git.KIMAKI_LOCK_PORT and --data-dir.opencode command in ~/.opencode/bin.