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

Publish

uv build
uv publish

Use TestPyPI first if desired:

uv publish --repository testpypi

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.1.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.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencode_go_usage_analyzer-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 8fcc2092ff6de9913e526aeec739d88f9589d4f67da96ffefd8a47ce8f8e7ef1
MD5 e5aabf1e258957f9dd737565cd91615a
BLAKE2b-256 54f4d1d15e7e651eecf2fa40a600fe670b52afed19e79dcc58892c559b688f5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opencode_go_usage_analyzer-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 999d23e035dc8252897f49fbd85669275306126ee37eb18b8fe5ecfc4433409d
MD5 f8f46481ce1afc879cbba31e4445e83d
BLAKE2b-256 4ba8197db069a1976a9f8f2010b17f9da59fce11160e70f8c25cb851335a355e

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