Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Inspired by [claude-code-wakatime](https://github.com/wakatime/claude-code-wakat
- **Automatic CLI management** - Downloads and updates wakatime-cli automatically
- **Detailed file tracking** - Tracks file reads and modifications (edit, write, patch, multiedit)
- **AI coding metrics** - Sends `--ai-line-changes` for WakaTime AI coding analytics
- **OpenCode HUD** - Displays today's WakaTime and AI Coding activity in the TUI sidebar
- **Rate-limited heartbeats** - 1 per minute per project to avoid API spam
- **Session lifecycle** - Sends final heartbeat on session idle/end
- **Batch tool support** - Tracks file operations executed via batch tool
Expand Down Expand Up @@ -50,7 +51,15 @@ Download from [WakaTime releases](https://github.com/wakatime/wakatime-cli/relea

## Installation

### Via opencode config (recommended)
### Via opencode plugin command (recommended)

```bash
opencode plugin opencode-wakatime --global
```

This enables both the server heartbeat plugin and the TUI sidebar HUD.

### Via opencode config

opencode.json:

Expand All @@ -61,6 +70,8 @@ opencode.json:
}
```

For the sidebar HUD, also add the plugin to `tui.json` or use the plugin command above.

### Manually via npm

```bash
Expand Down
Loading