No description
- Python 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| custom_components/opencode_go | ||
| tests | ||
| .gitignore | ||
| AGENTS.md | ||
| hacs.json | ||
| pyproject.toml | ||
| README.md | ||
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
- Settings → Devices & Services → Add Integration → OpenCode Go
- Enter your Workspace ID — found at
https://opencode.ai/workspace/{id}/go - Enter your Auth Cookie — browser devtools → Application → Cookies →
opencode.ai→auth
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).