BunkerAI News · News

Codex CLI can use local models in BunkerAI

We connected Codex CLI to local models via Ollama and LM Studio: code, prompts and inference results can remain inside the BunkerAI node.

We have added to the work path BunkerAI Codex CLI local mode. The agent can now read the project, suggest changes, run checks, and work with the repository using the model on the same computer or internal network.

According to the official documentation, Codex CLI supports the mode --oss and choosing a local provider Ollama or LM Studio through --local-provider. In such a profile, requests to the model are sent to the local provider.

Why is this necessary?

  • Local inference: the source code and model responses do not need to be transferred to the cloud LLM provider.
  • Without cloud LLM pricing: the calculations are performed by your hardware; External services and support are accounted for separately.
  • You can choose a model: a compact model is suitable for routine edits, a larger one is suitable for analyzing architecture and long agent-based tasks.
  • Working without the Internet is possible: after loading the model and dependencies, if the task itself and the allowed tools do not need external sources.

For BunkerAI, this is an important transition from local chat to a full local engineering environment. We are starting to test profiles for models of classes 20–120B and separately checking the quality of tool calling, work with patches and stability over long sessions.

Source: official OpenAI documentation - OSS mode and local providers ↗