No description
Find a file
devilreef b54cb1ef77
All checks were successful
mirror to github / mirror (push) Successful in 5s
chore: track AGENTS.md, keep playwright-mcp gitignored
2026-05-25 14:24:40 +06:00
.forgejo/workflows feat: initial release 2026-05-25 12:15:12 +06:00
custom_components/opencode_go feat(sensors): add per-token-type daily and cumulative sensors (input/cache/output) 2026-05-25 14:23:45 +06:00
tests feat(usage_api): add usage history server function client 2026-05-25 13:22:33 +06:00
.gitignore chore: track AGENTS.md, keep playwright-mcp gitignored 2026-05-25 14:24:40 +06:00
AGENTS.md chore: track AGENTS.md, keep playwright-mcp gitignored 2026-05-25 14:24:40 +06:00
hacs.json feat: initial release 2026-05-25 12:15:12 +06:00
pyproject.toml feat: initial release 2026-05-25 12:15:12 +06:00
README.md feat: initial release 2026-05-25 12:15:12 +06:00

ha-opencode

Home Assistant integration for monitoring OpenCode Go usage quotas as sensors.

Note: The GitHub mirror is read-only. No support is provided for this project, but pull requests will be reviewed.

Installation

Via HACS (add custom repository) or manually — copy custom_components/opencode_go/ into your HA config directory.

Configuration

  1. Settings → Devices & Services → Add Integration → OpenCode Go
  2. Enter your Workspace ID — found at https://opencode.ai/workspace/{id}/go
  3. Enter your Auth Cookie — browser devtools → Application → Cookies → opencode.aiauth

Sensors

Sensor Window Unit
sensor.opencode_go_rolling_5h Rolling 5 hours %
sensor.opencode_go_weekly Weekly %
sensor.opencode_go_monthly Monthly %

Attributes: usage_percent, usage_remaining, reset_in_seconds, next_reset (ISO timestamp).