Operations Runbook
This runbook focuses on day-to-day operation of the current runtime.
Daily Start
- Ensure Android emulator dependencies are available.
- Verify config and environment variables.
- Run onboarding if first launch.
- Start emulator and check booted device.
- Start gateway or run tasks from CLI.
Commands:
bash
openpocket config-show
openpocket onboard
openpocket emulator status
openpocket emulator start
openpocket gateway startIf the launcher is not in PATH yet, use node dist/cli.js <command>.
Monitoring
- gateway terminal logs show accepted task, step progress, and final status
- heartbeat logs are printed periodically and appended to
state/heartbeat.log - cron execution status is persisted in
state/cron-state.json - each task writes a session markdown file
- each task appends one line to daily memory file
Safe Stop
- use
/stopin Telegram to request cancellation - runtime checks stop flag between steps and finalizes session as failed with stop reason
Data Retention
- screenshots: bounded by
screenshots.maxCount - sessions/memory/scripts: retained until manually cleaned
Model Switch
Use Telegram /model <name> or edit defaultModel in config.
When changing model, verify:
- profile exists in
models - API key or env var is valid
- model supports required capabilities for your task
Script Safety
- keep allowlist narrow in production
- disable script executor globally when not needed (
scriptExecutor.enabled=false) - inspect run artifacts under
workspace/scripts/runsregularly