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

JetBrains Air Help

Local indexing

By default, the embedding model runs on the Air Context server. With local inference, the Air Context CLI downloads a compact embedding model and runs it on your machine, so neither your code nor your search queries are sent to the Air Context server. The index is stored on your machine too, and large repositories are refused, as with local storage. Indexing is slower than on the server.

With local inference, each machine computes the embeddings itself. To compute them for a revision only once, see Share local indexes.

Local inference uses one of two runtimes: MLX on macOS with Apple silicon, or llama.cpp on Windows, Linux, and macOS. On a Mac with Apple silicon, MLX is recommended.

Switch to local inference

  1. Run jbcontext config set inference mlx or jbcontext config set inference llamacpp.

    The command offers to download the runtime and the models. The setting applies to all projects on this machine.

  2. Run jbcontext index in the project directory.

    Unless the command can download a compatible index from a configured share point, the first run indexes the repository in full, even if it was indexed with the server before. Each embedding model keeps its own index.

The CLI runs the model as background processes that start with the first indexing or search and stop after a period without requests.

To switch back, run jbcontext config set inference remote. The local index is kept, and the index is still stored on your machine. If the project has no index for the server model yet, run jbcontext index again. To store the index on the Air Context server again, run jbcontext config set storage remote.

For the commands and options, including how to download the runtime and the models in advance, see jbcontext inference.

25 November 2026