# AI Credits consumption

> **Note:**
> Viewing the page requires the [View AI Analytics](roles.html#permissions_view_ai_analytics) or [Manage organization](roles.html#permissions_manage_org) permission.
>
> * The following default roles include the [View AI Analytics](roles.html#permissions_view_ai_analytics) permission: [Org viewer](roles.html#org_viewer), [AI admin](roles.html#ai_admin), [AI viewer](roles.html#ai_viewer), [AI analytics viewer](roles.html#ai_analytics_viewer).
>
> * The only default role that includes the [Manage organization](roles.html#permissions_manage_org) permission is [Org admin](roles.html#org_admin).

The AI Credit consumption analytics segment lets you track how users in your organization are spending AI Credits.

## Sources of AI Credit consumption data

The data in this analytics segment comes from a specific set of products, tools, and AI agents. For details about what the metrics do and don't include, see the following sections.

### Data included in the metrics

This analytics segment tracks spending information for the use of agents and models through the following products and tools:

* [AI Assistant](https://www.jetbrains.com.cn/en-us/ai-assistant/) in JetBrains IDEs, either when using a supported agent or in Chat mode.

* [JetBrains Central CLI](https://www.jetbrains.com.cn/en-us/help/central-cli/quickstart.html), when using a supported agent wired through the CLI.

* [JetBrains Air](https://air.dev), when using a supported agent in the desktop or web version of JetBrains Air.

The following AI agents are currently supported for data collection:

* [Junie](https://www.jetbrains.com.cn/en-us/help/ai-assistant/junie-agent.html), an AI coding agent developed by JetBrains. Data is also collected when Junie is used through its dedicated tool window.

* [Claude Agent](https://www.jetbrains.com.cn/en-us/help/ai-assistant/claude-agent.html), a third-party coding agent by [Anthropic](https://www.anthropic.com).

* [Codex](https://www.jetbrains.com.cn/en-us/help/ai-assistant/codex-agent.html), a third-party coding agent by [OpenAI](https://www.openai.com).

* [Pi](https://pi.dev/), a minimal, open-source agent harness.

* [GitHub Copilot](https://www.jetbrains.com.cn/en-us/help/ai-assistant/copilot-agent.html), a third-party coding agent by [GitHub](https://github.com).

> **Note:**
> Charts filtered by agent consolidate all usage of an agent across different tools into a single entry. For example, all Codex usage through JetBrains Central CLI, AI Assistant, and JetBrains Air is combined under the Codex entry.

The charts may also show data labeled as Uncategorized, which includes consumption of AI Credits by new or less common tools that don't have a dedicated categorization.

The consumption numbers include both built-in quota and top-up AI Credits.

### Data excluded from the metrics

The metrics in this analytics segment exclude the following usage of products and tools as they don't consume AI Credits:

* Using in-editor features such as [Next edit suggestions](https://www.jetbrains.com.cn/en-us/help/ai-assistant/next-edit-suggestions.html) and [Code completion](https://www.jetbrains.com.cn/en-us/help/ai-assistant/code-completion.html).

* Using models from [third-party AI providers configured locally in AI Assistant](https://www.jetbrains.com.cn/en-us/help/ai-assistant/use-custom-models.html#provide-your-own-api-key). When you provide your own API key from a supported AI provider directly in AI Assistant, the usage is also charged directly by the third-party provider and doesn't consume AI Credits.

* Using agents in AI Assistant with [provider accounts](https://www.jetbrains.com.cn/en-us/help/ai-assistant/activate-agents.html#activate-agent-with-provider-account) or [provider-specific authentication methods](https://www.jetbrains.com.cn/en-us/help/ai-assistant/activate-agents.html#activate-agent-with-provider-specific-method).

## AI Credits consumption report

The AI Credits consumption report table is broken down by user and can be filtered by the following criteria:

* In the time range filter, select one of the predefined filters that show the last specified period, or select a custom date range. The data includes both the first and the last day of the selected period.

* In the tool filter, which displays All tools by default, show only the data that originates from the selected tools. In addition to JetBrains IDEs, the dropdown includes the following tools: * [JetBrains Air](https://www.jetbrains.com.cn/en-us/help/air/getting-started.html), the agentic development environment (ADE) by JetBrains. * [JetBrains Central CLI](https://www.jetbrains.com.cn/en-us/help/central-cli/quickstart.html), which is a local command-line proxy rather than a development environment. Select it to show the data that comes from the coding agents that it routes.

* In the agent filter, which displays All agents by default, show consumption data only for the selected AI agents. When no agent is selected, the table shows consumption for all agents, split by agent.

* In the user filter, which displays All users by default, search for and select [users](users.html) or [groups](groups.html). Selecting a group includes all of its members and members of its subgroups. Expand a group to select its subgroups.

Filters of different types are combined with a logical `AND`. For example, data will match both the selected date range and the user the data is attributed to.

Multiple selections of the same filter are combined with a logical `OR`. For example, selecting a group along with an individual user shows data for that user and all members of the group.

Filter selections are preserved across analytics segments. The filters that you set in one segment are automatically preselected when you switch to another segment.

![AI Credits consumption page](images/ai-credits-consumption-page.png)

To change how data is sorted, click the column header.

For more information on how to download data and the data format, see [Downloading data](analytics.html#downloading-data).

