cs run for fully automatic sessions, install a skill so OpenClaw or Claude Code tracks itself, or use cs start and cs end to control session boundaries manually. Pick the approach that matches how you work.
- cs run (Recommended)
- OpenClaw Skill
- Manual (cs start / cs end)
cs run is the zero-configuration path for any agent script or one-off command. Prefix your existing command and CostHQ handles the full session lifecycle automatically.- A new session is created (named after the command by default).
- A local HTTP proxy starts on port 3739.
- Your command launches with
ANTHROPIC_BASE_URLandOPENAI_BASE_URLpre-pointed at the proxy — no environment variable setup required on your part. - Every API call your agent makes is intercepted and logged to the session.
- When the command exits, the session ends and a cost summary prints.
cs run:View the Dashboard
After any session, open the local web dashboard for a visual breakdown of cost trends, model usage, and session history.http://localhost:3737 in your browser. The dashboard includes:
- Overview — KPI cards, daily cost chart, most expensive sessions
- Sessions — searchable table with per-session cost, duration, files, and commits
- Models & Providers — cost and token breakdown per model
- Insights — file hotspots, activity heatmap, and project-level spend
- Alerts — configure and monitor budget thresholds
127.0.0.1 only. It never sends telemetry or opens external connections.
Next Steps
- cs run reference — All flags, proxy options, and examples for wrapping agent commands.
- Manual sessions — Deep dive into
cs start,cs end,cs proxy, andcs log-ai.