Agents in CLion
Enable the Air plugin
This functionality relies on the Air plugin, which is bundled and enabled in CLion by default. If the relevant features are not available, make sure that you did not disable the plugin.
Press Ctrl+Alt+S to open settings and then select .
Find the Air plugin and click Enable.
IDE intelligence for coding agents
CLion integrates the coding agents of your choice directly into your project workspace, allowing them to query and act based on CLion's parsed, indexed, and inferred model of your codebase, knowledge about the project context, and framework-aware resolution.
CLion's inspections and integrated static analysis tools provide agents with deterministic checks to validate their changes, saving the tokens and context that model-based review would spend.
For review and validation of an agent's changes, CLion provides fine-grained diff and rollback tools, while Local History lets you compare and restore intermediate states even when the agent creates no VCS commit.
Agent workspace in CLion
The Agent workspace is CLion's agent-centric development environment. It provides the workspace for managing multiple agents and agent sessions in parallel across repos and tasks. You can run agents locally, in the cloud, or isolated in a temporary worktree.

You can work with both agent sessions and project files in the editor tabs simultaneously, without having to switch between the editor and agent workspace views.
Open and manage Agent Sessions
To start a new agent session:
Click the agent widget in the main toolbar to start an empty session with the currently selected agent or preset.

To use another agent or preset, click
next to the widget and select it from the list.

Open the Agent Sessions tool window. If it is not visible, select .
Click New Session to start a new session with the currently selected agent or preset.

To use another agent or preset, click
next to the button and select it from the list.

Learn more:
Features for working with agents
Multi-agent setups
CLion works with the agents, provider accounts, and subscriptions you already have, along with providing a curated registry of agents you can browse, install, and set up from your IDE.
Agent presets are reusable configurations defining which agent, operation mode, model and reasoning effort are used for the current agent session, allowing you to easily switch between agents or agent setups for different types of tasks.
- Locally installed agents
If you already have coding agents installed on your machine, CLion detects them .
An agent that is already present in your environment, such as Claude Code or Codex, becomes available in the IDE with the configuration it already uses.
- Registry of available agents
A curated catalog of ACP-compatible agents you can browse from CLion. The IDE reads the registry from a JetBrains-hosted online JSON file by default, and your organization can provide its own registry.
Because Agent Client Protocol (ACP) is a standard interface, compatible agents can work with CLion without a dedicated integration.
Learn more:
Context and cost management in agent sessions
For each agent session, you can attach context such as files and folders, commits, context from the screen, or specific agent skills.

After you send the first prompt, a context indicator also appears in the text field. Hovering over it shows how much of the model's context window is used in the current session. Prompts, attached context, and agent responses contribute to this usage, and the indicator updates as the session continues.

Learn more:
Diff review and output validation tools
When you review the changes, you can ask the agent questions about them or request improvements by adding notes to the code snippets that you want explained or reworked.

Learn more:
Learn more
- JetBrains Air
The detailed guide to the JetBrains Air features in JetBrains IDEs.
- MCP server
The full list of CLion tools available for coding agents via MCP server.

