# CLI reference

Source: https://quotaplug.com/docs/cli
Updated: 2026-12-02

Every command the quotaplug tool accepts. Use npx quotaplug before installing; after login, quotaplug is installed for your user and it runs in the background.

## audit

```
npx quotaplug audit [--days 7] [--json]
```

Local analysis of your Claude Code logs. `--days` from 1 to 30. `--json` prints machine-readable totals. [Details](https://quotaplug.com/audit).

## login

```
npx quotaplug login [--no-browser] [--name "Work laptop"] [--token hb_...]
```

Connects this computer with a device code you approve in the browser, downloads your plan's configuration, and installs QuotaPlug into Claude Code. `--no-browser` only prints the link. `--name` sets the device name shown in your account. `--token` uses a device token created on your account page (servers, CI).

## status

```
npx quotaplug status
```

Account, plan, version, what is installed, and today's savings.

## doctor

```
npx quotaplug doctor
```

Checks Node.js, that your settings file is valid JSON, that you are signed in, that quotaplug.com is reachable and your plan active, and that QuotaPlug is installed correctly. Exits with code 1 if anything fails, with the fix for each.

## report

```
npx quotaplug report [--json]
```

Your last 7 days: requests, actual API-equivalent spend, estimated savings and optimizations.

## sync

```
npx quotaplug sync [--quiet]
```

Refreshes your configuration and sends the daily totals to your dashboard. Runs automatically in the background at most every few hours; you never need to call it.

## config

```
npx quotaplug config
```

Shows your current settings and lets you switch individual optimizations on or off. Run it without arguments to see the list. Your other settings stay set while QuotaPlug is installed; `uninstall` restores your values.

## uninstall

```
npx quotaplug uninstall
```

Removes everything QuotaPlug added, and restores the values you had before. Your account is unchanged. [Details](https://quotaplug.com/docs/uninstall).

## logout

```
npx quotaplug logout
```

Uninstalls, deletes the cached data, and forgets this computer's token. Remove the device from your account page to release its slot.

## Environment variables

- `CLAUDE_CONFIG_DIR`: where Claude Code keeps settings and logs, if not `~/.claude`. QuotaPlug follows it.

- `QUOTAPLUG_HOME`: where QuotaPlug keeps its files (default `~/.quotaplug`).

- `NO_COLOR`: plain output.

## Keep reading

[QuickstartDocs](https://quotaplug.com/docs/quickstart)[Uninstall QuotaPlugDocs](https://quotaplug.com/docs/uninstall)[Security and data](https://quotaplug.com/security)
