llms.txt: machine-readable documentation index. Markdown version of this page is also available.

JetBrains Air Help

Quickstart with the Air Context CLI

In this quickstart, you install the Air Context CLI, connect it to your AI coding agents, index a project, and run your first semantic search.

For the other ways to use Air Context, see Where you can use Air Context. If you're an organization admin and want to control which repositories are indexed, see Air Context indexing.

Prerequisites

You need a JetBrains AI subscription (AI Free, AI Pro, AI Ultimate, or AI Enterprise). Paid and complimentary IDE licenses include AI Free, except IntelliJ IDEA Community Edition and PyCharm Community Edition.

If your organization manages AI centrally through Air Governance, an administrator must first enable AI for the organization and grant AI access before you can use Air Context.

You also need an internet connection, because Air Context computes the embeddings for your code on the Air Context server. The index itself is stored on the server or, by default for small repositories of users outside an organization, on your machine.

For more information, see Security and data privacy.

Set up the Air Context CLI

  1. Install the CLI.

    curl -fsSL https://download.jetbrains.com/jetbrains-context/install.sh | bash
    irm https://download.jetbrains.com/jetbrains-context/install.ps1 | iex
  2. Run jbcontext login.

    If you're logged in to a JetBrains IDE or JetBrains Toolbox, the CLI can use that account. Otherwise, log in with your JetBrains Account in the browser.

  3. Run jbcontext setup-agent and choose the agents you want to connect.

    For each agent, the command installs the recommended bundle: usage instructions and, where the agent supports them, the context-search skill, the exploration subagent, and session hooks that keep the index up to date. For Claude Code, it also registers the Air Context MCP server. For more information, see Agent integrations.

  4. Run jbcontext doctor to verify the setup end to end.

    The command checks the version, authentication, repository, index, and search. On a repository that hasn't been indexed yet, the search check fails with No index found for repository; the next step resolves it.

  5. Run jbcontext index in the project directory.

    You create the first index of a repository yourself. After that, the session hooks installed by jbcontext setup-agent keep the index up to date: each time a configured agent starts a session, only the content that has changed since the last indexing is processed.

  6. Try a search from the terminal:

    jbcontext search "where do we validate authentication tokens"

To see a local dashboard of search, repository, and indexing activity, run jbcontext stats; add --errors to include recent error messages.

Next steps

05 November 2026