VVakatime

Quickstart

Track your AI coding agent activity with Vakatime in five minutes.

Vakatime records how you use AI coding agents — Claude Code, Codex, Cursor, OpenCode, Gemini CLI, and ZCode — and turns it into a dashboard of time, sessions, and token costs.

1. Get an API key

Sign in to the Vakatime dashboard, then open Settings → API Keys (/settings/api-keys) and create a key. Keys look like vkt_… and are shown once — store it somewhere safe.

2. Install the collector

npm install -g @esyion/vakatime

3. Log in

vakatime login --endpoint https://your-vakatime-domain.example --api-key vkt_xxx

If you are running the dashboard locally, use http://localhost:3000 as the endpoint.

4. Install hooks for your agents

Pick the agents you use — the collector writes hooks into each agent's native config:

vakatime setup claude-code
vakatime setup codex

Or run the interactive picker:

vakatime setup

Agents that already have Vakatime hooks are pre-checked and labelled (configured).

Restart an agent session after running setup — hooks are loaded when a session starts.

5. Verify

vakatime status

You should see your endpoint, the masked API key, and a heatmap of recorded activity. Use your agents normally — every prompt and response is now a heartbeat on the dashboard.

Offline? Heartbeats are queued locally in ~/.vakatime/queue.jsonl and sent by vakatime flush (or automatically on the next successful upload) — nothing is lost.

Uninstall hooks

vakatime remove codex   # claude-code | codex | cursor | opencode | gemini-cli | zcode

Only the hooks Vakatime registered are removed; your own hooks and other tools' hooks are untouched, and a .backup copy is written next to each modified file.

On this page