# Usage & Limits

import { Callout } from "nextra/components";

Pane tracks what Claude Code and Codex cost you, pane by pane, and where you stand against Codex's rate limits.

## The Usage & Limits screen

Open **Settings → Usage & Limits**. Pane reads Claude Code's and Codex's own transcript files on your machine, so there's nothing to connect. It shows:

- **Totals**: total tokens, input, output, cache reads and writes, and uncached input, plus messages, your top model and your busiest project.
- **Cost**: an estimate at API prices, using model prices from OpenRouter. Pane also shows your **cache hit rate** and how much caching **saved** you.
- **Codex limits**: a bar for each Codex rate-limit window (like the 5-hour and weekly ones), with reset times, your plan and credits. Pane checks WSL too on Windows.

Filter by time range (or pick custom dates) and by provider: all, Anthropic or OpenAI.

Pane rescans every four hours. Click **Rescan transcripts** for fresh numbers now. Share or download the summary as an image with <KeyCombo keys={["⌘", "⇧", "S"]} /> and <KeyCombo keys={["⌘", "⇧", "D"]} />.

## Per-pane cost attribution

Every pane tracks the tokens and cost of the agent work that happened inside it, so you can see which features or tasks are expensive.

### In the UI

The **Per-pane usage** table lists each pane's cost, uncached cost, cache hit rate, savings and models. You can sort it. Usage Pane can't tie to a pane lands in an **Unattributed** row. A card shows the average per pane, with an option to trim the top and bottom 10% so one huge pane doesn't skew it.

### From the CLI

```bash
runpane panes cost --json
```

Returns cost attribution for all panes, or filter to one:

```bash
runpane panes cost --pane <pane-id> --json
```

The report covers the last 30 days. Cost is attributed from session-level token counts. Archived panes retain their cost data within that window.

<Callout type="info">
  Cost tracking depends on model pricing data from OpenRouter. If a model's pricing isn't available, the token count is still recorded but the dollar estimate may be missing.
</Callout>

## Leaderboard

The **Leaderboard** tab is opt-in. See [Fly with Pane](/docs/fly-with-pane#leaderboard) for exactly what it sends.

## Related

- [AI Providers](/docs/providers): configure which models and providers your agents use
- [runpane CLI](/docs/runpane-cli): full command reference including `panes cost`
- [Settings](/docs/settings): other app-level settings
