# LLMSTATS.LIST

> List the names of all LLM usage stats buckets.

URL: https://docs.hotkv.com/commands/llmstats-list/

```
LLMSTATS.LIST
```

- Group: LLM usage and budgets
- Complexity: O(N) where N is the number of buckets
- HotKV Cloud: Performance and Scale plans
- On-Premise: requires the llm-stats license feature

LLM usage stats keep running totals of the requests, tokens, cost and latency of your model calls in named buckets, for example one per tenant or per model. `LLMSTATS.LIST` returns the names of all buckets on the server you
are connected to, in no particular order. In a cluster, each node lists only
the buckets it holds.

## Return value

| Case | RESP2 | RESP3 |
| --- | --- | --- |
| Always | Array of bulk strings (empty if there are none) | Same |

Errors:

- `ERR wrong number of arguments for 'llmstats.list' command` if the argument count is wrong.
- `NOLICENSE llm-stats requires a HotKV license. Contact sales@hotkv.com` if your license does not include the `llm-stats` feature.

## Examples

```
127.0.0.1:6379> LLMSTATS.LIST
1) "model_sonnet5"
2) "tenant_acme"
```

## Compatibility

HotKV-only command. Redis and Valkey have no equivalent.

## See also

[LLMSTATS.BUCKET](https://docs.hotkv.com/commands/llmstats-bucket/index.md), [LLMSTATS.RECORD](https://docs.hotkv.com/commands/llmstats-record/index.md), [LLMSTATS.GET](https://docs.hotkv.com/commands/llmstats-get/index.md), [LLMSTATS.RESET](https://docs.hotkv.com/commands/llmstats-reset/index.md), [LLMSTATS.DROP](https://docs.hotkv.com/commands/llmstats-drop/index.md), [LLMSTATS.PRICE](https://docs.hotkv.com/commands/llmstats-price/index.md), [AI features guide](https://docs.hotkv.com/ai-features/index.md)