Skip to content

Add tmux-opencode-usage to Status Bar section#97

Open
0x3k wants to merge 1 commit intotmux-plugins:masterfrom
0x3k:add-tmux-opencode-usage
Open

Add tmux-opencode-usage to Status Bar section#97
0x3k wants to merge 1 commit intotmux-plugins:masterfrom
0x3k:add-tmux-opencode-usage

Conversation

@0x3k
Copy link

@0x3k 0x3k commented Mar 11, 2026

Description

Adds tmux-opencode-usage to the Status Bar section.

This plugin shows live opencode AI usage in the tmux status bar — prompts sent and tokens consumed — by querying opencode's local SQLite database directly. No API keys or network requests required.

Features:

  • Adaptive polling: 2s refresh on activity, backs off to 60s when idle
  • Configurable time window: from midnight today (default) or rolling 24h
  • Works standalone or as a catppuccin-themed module
  • Dependencies: sqlite3 and awk only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant