> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heyniblet.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat Niblet documentation as the source of truth for shipped Niblet behavior.
> Keep app source editing, validation, preview, and rendering on the developer's system.
> Never ask users to paste credentials, Wi-Fi passwords, OAuth codes, or bearer tokens into chat.

# Claude Usage and Codex Usage

> Show your Claude Code or Codex plan limits on a Niblet display, link your computer, and fix common problems.

The **Claude Usage** and **Codex Usage** apps show how much of your plan's
limits you have used, with a pace marker, alternating with countdowns to each
reset.

> [!NOTE]
>
> Niblet never asks for, reads, or stores your Claude or ChatGPT login. A small
> hook on your computer reads the numbers that Claude Code or Codex already
> reports locally and sends only those numbers to Niblet.

## What the display shows

> [tab] Claude Usage
>
> * The **5-hour session** limit
> * The **weekly** limit

> [tab] Codex Usage
>
> * On Plus and Business: the **5-hour** and **weekly** windows
> * On Pro: the **weekly** window and your remaining **credits**

Each bar shows the percentage used and a marker for where an even pace would be
at this point in the window.

| Color | Meaning |
| - | - |
| Accent | On pace |
| Amber | Ahead of pace, so you may reach the limit before it resets |
| Red | 90% or more used |

### Display states

| State | Meaning |
| - | - |
| `NOT LINKED` | No computer has sent numbers for this app yet |
| Live numbers | Usage and reset countdowns from the latest report |
| `FRESH` | A window has reset since the last report, so it shows 0% until the next one |
| Dimmed with an age | The latest numbers are more than 6 hours old |

## Before you start

* A Claude or ChatGPT **subscription plan** that reports plan limits to Claude
  Code or Codex. See [What is not supported](#what-is-not-supported).
* Claude Code or Codex installed on the computer you use.
* The [Niblet CLI](https://docs.heyniblet.com/getting-started/install-cli.md) on that computer, updated with
  `niblet update` to a release that includes `niblet link`.

## Set up

**1. Install the app**

In the Niblet app or the [dashboard](https://www.heyniblet.com/dashboard),
install **Claude Usage** or **Codex Usage** on a display.

**2. Copy the link command**

On the **Connect your computer** step, copy the command. It looks like:

```sh theme={null}
niblet link XXXX-XXXX
```

On a phone, tap **Send to my computer** and open that link on the computer
where you use Claude Code or Codex. The code expires after 10 minutes and
works once.

**3. Install the CLI if needed**

If `niblet` is not installed, follow [Install the CLI](https://docs.heyniblet.com/getting-started/install-cli.md).

**4. Run the command**

Paste the command into a terminal on that computer. It detects Claude Code
or Codex and adds a small hook. An existing Claude Code status line or
Codex `notify` command is kept and still runs.

**5. Send one message**

Send one message in Claude Code, or finish one Codex turn. The display
switches from `NOT LINKED` to your live numbers.

The hook runs `niblet usage-hook`, which reads the local numbers and sends them
in the background. You never need to run it yourself.

## More than one computer or account

* **Several computers:** run a new link command, with a new code, on each
  computer. They all update the same display.
* **Several Claude config folders:** if you use `CLAUDE_CONFIG_DIR`, pass each
  folder when you link:

  ```sh theme={null}
  niblet link XXXX-XXXX --claude-config-dir ~/.claude-work
  ```

  Repeat `--claude-config-dir` for more than one folder.
* **Several accounts:** install the app once per account, and link each
  installation separately.

## How fresh the numbers are

The numbers update while you use Claude Code or Codex. Between uses, the reset
countdowns keep ticking on the display. If the latest numbers are more than 6
hours old, the display dims them and shows their age.

Usage on claude.ai, ChatGPT, or the mobile apps counts toward the same limits,
but it appears on the display only the next time Claude Code or Codex reports.

## Manage linked computers

* **See or revoke a computer:** open the app's settings in the Niblet app or
  dashboard. Each linked computer is listed with when it last reported. Revoke
  one to stop it from sending numbers.
* **Remove the hook from a computer:** run `niblet unlink`. It restores your
  original Claude Code or Codex settings. If this computer is linked to more
  than one app, add `--installation ID` or `--all`.
* **Remove everything:** deleting the app from the display revokes all linked
  computers.

See the [CLI commands](https://docs.heyniblet.com/cli/commands.md#usage-apps) for every `link` and `unlink`
option.

## What is not supported

These apps work with **subscription plans** whose limits Claude Code or Codex
reports locally. Claude Code documents status line limits for Pro, Max and
Ultra plans, and Team plans have worked in testing. Not every plan is
guaranteed.

> [!WARNING]
>
> Enterprise plans and API-key logins are not supported. The providers do not
> report plan limits for them, so the display stays at `NOT LINKED`.

## Troubleshooting

> [accordion] Still NOT LINKED after sending a message
>
> Check that Claude Code's status line shows something like
> `5h 12% · wk 30%`. If it shows no usage, your login may not report plan
> limits; see [What is not supported](#what-is-not-supported).
>
> If you use a custom `CLAUDE_CONFIG_DIR`, link with `--claude-config-dir`.
> Otherwise, generate a new code in the app and run `niblet link` again.

> [accordion] The code expired or was already used
>
> Codes last 10 minutes and work once. Return to **Connect your computer**,
> generate a new code, and run the new command.

> [accordion] The numbers look stuck
>
> Use Claude Code or Codex once; the display updates only after a new report.
> If it still does not change, run `niblet unlink`, generate a new code, and
> link again. Also check that the computer still appears, and is not revoked,
> in the app's settings.

> [accordion] Codex numbers stopped after a Codex update
>
> Codex Usage reads usage that Codex writes on your computer, and that format
> can change between Codex versions. The CLI sends nothing rather than guess.
> Run `niblet update` to get the latest CLI.

> [accordion] Behind a corporate proxy or firewall
>
> The hook sends numbers over HTTPS to `cloud.heyniblet.com`. Allow that host,
> or set `HTTPS_PROXY` in the environment where Claude Code or Codex runs so
> the hook can reach it.

## Trademarks

Claude is a trademark of Anthropic. ChatGPT and Codex are trademarks of OpenAI.
Niblet is not affiliated with, endorsed by, or sponsored by Anthropic or OpenAI.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.