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, andstatus- 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 fileDEVIN_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 bystatusline--refresh: bypass the cache forstatusline-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
Metadata
Release files for devin-cli-usage 0.1.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 | |
|---|---|---|---|
| devin_cli_usage-0.1.1.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| devin_cli_usage-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / devin_cli_usage-0.1.1.tar.gz
| Download URL | devin_cli_usage-0.1.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aedbe16f393ac116fabadc0f4a4ffc6ba28051ac1d02f7d96941395c492011a7
|
|
BLAKE2b-256 checksum How to use checksums |
bb01ecdf72601c718e82f122ff1b2ad42d61fd921016ae018e4a01d37b30cd6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / devin_cli_usage-0.1.1-py3-none-any.whl
| Download URL | devin_cli_usage-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c306cd808af3a75a8b184f2c75cd337a93892c1842875000384c3d8873a1977
|
|
BLAKE2b-256 checksum How to use checksums |
502ed4ff69be9a124920ea2a9fa40fdc32ee4191e8c7b24267ae42ec96d4a4be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|