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, 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. 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devin_cli_usage-0.1.0.tar.gz.
File metadata
- Download URL: devin_cli_usage-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16dccfddb06c01af798df8dda6310fd9869fd75378d04cf7388565b441f6032c
|
|
| MD5 |
f4fba8627b0c9326ff71b536192b7190
|
|
| BLAKE2b-256 |
ba9ad881e8f6ed1b6098be653abf31c0bbfc21acdf65cd02c5699e5e4ec995ed
|
File details
Details for the file devin_cli_usage-0.1.0-py3-none-any.whl.
File metadata
- Download URL: devin_cli_usage-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13f6b3a0d87294173fbde16f337675dcb65c99f4180bc3369f55953f80ad512c
|
|
| MD5 |
0a6f0e49e4050a331f3b6e63ecc32a0b
|
|
| BLAKE2b-256 |
7d82babdcc81b1fbee4ae0aa2f9b858d1bddada232969d75ec5d589be207acf9
|