---
url: https://docs.mochiexec.io/reference/cli/mochi_ai_usage_local.md
description: Show AI usage recorded on this machine
---

# mochi ai usage local

Show AI usage recorded on this machine

## Synopsis

Shows the tokens every AI request from this machine used, by provider and model, including requests through your own provider keys and local models.

```shell
mochi ai usage local [flags]
```

## Options

| Flag | Type | Description |
|------|------|-------------|
| `--by-source` |  | Also break usage down by feature (chat, explain, diagnose, …) |
| `-h, --help` |  | help for local |
| `-o, --output` | `string` | Output format: text or json (default "text") |
| `--provider` | `string` | Only this provider (e.g. openai, anthropic, ollama, mochi-gateway) |
| `--since` | `string` | Only usage within this long ago (e.g. 24h, 7d) |

## Options inherited from parent commands

| Flag | Type | Description |
|------|------|-------------|
| `-L, --log-level` | `string` | Log verbosity level (debug, info, fatal) (default "info") |
| `--sync` |  | Sync flow cache and workspaces |

## See also

* [mochi ai usage](mochi_ai_usage.md) — Show your Mochi gateway usage and credits
