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
With Nix (flake)
Run directly without installing:
nix run github:henriqueSFernandes/opencode-go-usage-analyzer -- --help
Install imperatively to your user profile:
nix profile install github:henriqueSFernandes/opencode-go-usage-analyzer
Add to a NixOS or Home Manager flake (declarative):
# flake.nix
{
inputs.opencode-go-usage-analyzer.url = "github:henriqueSFernandes/opencode-go-usage-analyzer";
outputs = { self, nixpkgs, home-manager, opencode-go-usage-analyzer, ... }@inputs: {
# ...
};
}
Then in your Home Manager configuration:
{ config, pkgs, inputs, ... }:
{
home.packages = [
inputs.opencode-go-usage-analyzer.packages.${pkgs.system}.default
];
}
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.
Metadata
Release files for opencode-go-usage-analyzer 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opencode_go_usage_analyzer-0.3.1.tar.gz | 29.2 kB | Without provenance | Details for opencode_go_usage_analyzer-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opencode_go_usage_analyzer-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for opencode_go_usage_analyzer-0.3.1-py3-none-any.whl |
Total release size: 37.9 kB
Release files / opencode_go_usage_analyzer-0.3.1.tar.gz
| Download URL | opencode_go_usage_analyzer-0.3.1.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e94645b2779b8a6031c2315000e4901a171c49f6c489c632696c47238af0214
|
|
BLAKE2b-256 checksum How to use checksums |
2b06067c4ba30d87c75fe14df60f199cde599d44861413b43b4a66befc97a581
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / opencode_go_usage_analyzer-0.3.1-py3-none-any.whl
| Download URL | opencode_go_usage_analyzer-0.3.1-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca8d4f82c58d0cc30e0b3f553f1e6ffccb70c582b3bba53daf88537dfe581d73
|
|
BLAKE2b-256 checksum How to use checksums |
fb4ce370c35bae33760dbe404de142ef5ff461b5d63d763c7fa84d7d2b14d3b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for opencode-go-usage-analyzer 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.