Skip to main content

devin-cli-usage

Devin account usage and quota monitor. It follows the same dependency-free interface as the other /code/*usage tools.

The tool targets the local Devin CLI harness, but reports account-wide Devin quota. It does not estimate usage from local CLI sessions.

Example output

Devin usage
Status: live
Plan: Pro
Daily: 100% remaining, resets in 11h
Weekly: 100% remaining, resets in 6d11h
Prompt credits available: -1

Statusline:

devin:daily:100%left reset:11h

Install

uv tool install devin-cli-usage

For local development:

uv tool install .

Commands

Command Description
devin-cli-usage Show current account usage
devin-cli-usage status Same as above
devin-cli-usage json Print normalized JSON
devin-cli-usage statusline Print compact cached output
devin-cli-usage refresh Refresh the cache and print status
devin-cli-usage daemon [-i SECS] Keep the cache fresh
devin-cli-usage install Print installation instructions

Authentication and data

The tool reads windsurf_api_key and api_server_url from Devin's local ~/.local/share/devin/credentials.toml, or the corresponding path below XDG_DATA_HOME when it is set, then calls the read-only GetUserStatus service used by the installed client. It rereads credentials for every live request. It never refreshes credentials or modifies Devin-owned files.

The normalized JSON includes:

  • provider, source, retrieved_at, and status
  • plan name, billing strategy, and plan period
  • daily and weekly quota percentages and reset times
  • available and consumed credits, ACU limits, and overage balance when supplied

status is live, cached, stale, or unavailable. Errors and caches do not include the API key or Devin account identity. A credit value of -1 is a vendor sentinel for an unlimited or non-credit-based allowance and is preserved verbatim.

The tool writes only its own non-secret cache at ~/.local/share/devin/usage-limits.json, also following XDG_DATA_HOME when set. JSON results report whether they are live, cached, stale, or unavailable.

Environment overrides:

  • DEVIN_USAGE_CREDENTIALS_FILE: alternate credentials file
  • DEVIN_USAGE_FILE: alternate cache path

The user-status service is undocumented and may change with Devin client releases.

Options

usage: devin-cli-usage [-h] [-i INTERVAL] [--max-age MAX_AGE] [--refresh]
                       {status,json,daemon,statusline,refresh,install}
  • --max-age SECS: maximum cache age used by statusline
  • --refresh: bypass the cache for statusline
  • -i SECS: daemon refresh interval

Development

uv --no-config lock --check
uv --no-config run --locked python -m unittest discover -s tests
uv --no-config build --no-sources

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devin_cli_usage-0.1.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

devin_cli_usage-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file devin_cli_usage-0.1.1.tar.gz.

File metadata

  • Download URL: devin_cli_usage-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for devin_cli_usage-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aedbe16f393ac116fabadc0f4a4ffc6ba28051ac1d02f7d96941395c492011a7
MD5 d7f7e302749417cf3d21812e9053d860
BLAKE2b-256 bb01ecdf72601c718e82f122ff1b2ad42d61fd921016ae018e4a01d37b30cd6e

See more details on using hashes here.

File details

Details for the file devin_cli_usage-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: devin_cli_usage-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for devin_cli_usage-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c306cd808af3a75a8b184f2c75cd337a93892c1842875000384c3d8873a1977
MD5 57d4c6fd5141f90caf88c5423a75534d
BLAKE2b-256 502ed4ff69be9a124920ea2a9fa40fdc32ee4191e8c7b24267ae42ec96d4a4be

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page