Skip to main content

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-remember mode for one-off runs without touching local session storage.
  • --logout to clear the saved local session quickly.

Requirements

  • Python 3.10+
  • uv (recommended) or pip

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 (auth cookie 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

opencode_go_usage_analyzer-0.2.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencode_go_usage_analyzer-0.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file opencode_go_usage_analyzer-0.2.0.tar.gz.

File metadata

  • Download URL: opencode_go_usage_analyzer-0.2.0.tar.gz
  • Upload date:
  • Size: 28.6 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

Hashes for opencode_go_usage_analyzer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 73835994b0df5511eff72a9203e0946e8860fa88da388220d1c5b8561c5d275f
MD5 a397c7262741b43b1ea3bd138e1e7075
BLAKE2b-256 60f2141b33304edbb77961a0e24dda3ad2431dcd4cfc2ce558a16d3918f8d73c

See more details on using hashes here.

File details

Details for the file opencode_go_usage_analyzer-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: opencode_go_usage_analyzer-0.2.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

Hashes for opencode_go_usage_analyzer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c32014b4412fe860f0927ec14b1a6e37ae3b5bc746f433d76854988e6f4e941c
MD5 9bc89d11034ead35a3c34e33d6cc2be0
BLAKE2b-256 de78a2e13ea14f67e81cb81ae733374cfd5ca626a015bdd60001990a5a2a418b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page