CLI that displays OpenCode Go workspace usage from the web dashboard
Project description
opencode-go-usage-analyzer
CLI tool to display OpenCode Go workspace usage limits from the web dashboard.
Features
- Shows Rolling/Weekly/Monthly usage with a colorized terminal table.
- Interactive authentication prompt (workspace ID + auth token).
- Local session persistence by default.
--no-remembermode for one-off runs without touching local session storage.--logoutto clear the saved local session quickly.
Requirements
- Python 3.10+
uv(recommended) orpip
Install
With uv (recommended)
uv tool install opencode-go-usage-analyzer
From source
git clone https://github.com/henriqueSFernandes/opencode-go-usage-analyzer.git
cd opencode-go-usage-analyzer
uv sync
uv run opencode-usage --help
Usage
opencode-usage
On first run, the CLI prompts for:
- Workspace ID
- Auth token (
authcookie value)
By default, credentials are saved to .opencode/session.json and reused automatically.
Command options
opencode-usage --no-remember
opencode-usage --logout
--no-remember: do not read or write the local session file.--logout: delete the local saved session and exit.
Development
uv sync --extra dev
uv run opencode-usage --help
uv build
License
MIT. See LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opencode_go_usage_analyzer-0.3.0.tar.gz.
File metadata
- Download URL: opencode_go_usage_analyzer-0.3.0.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e14d90c157b5d9fd6c8364c62c6ef45ecd52da8dcd8ddbe5e850bb0180c4233
|
|
| MD5 |
f64bac9c0c30a47076005e09b378dec7
|
|
| BLAKE2b-256 |
7248a99eccf39e5fc0804faebca4c3ba5b8f1816e7f38b9780065cda688aca73
|
File details
Details for the file opencode_go_usage_analyzer-0.3.0-py3-none-any.whl.
File metadata
- Download URL: opencode_go_usage_analyzer-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
296ed86e5e44ef6362be9320a0d1cc47c1598151bbf135d55c32aad005980f9f
|
|
| MD5 |
b44c670394371676a2f9bedfe027a0cf
|
|
| BLAKE2b-256 |
c350e8b0bf36d952e281be03e22d92fe28c208cf247fc363d192da8413ac11ac
|