Run a local model

How to run a local model with the CLI, how to set it up and how model routes and tool permissions apply.

  • Updated 2026-11-10
  • Coming soon
  • Developers
  • CLI
  • Local Mode, Local Mode + BYOK

Running a local model

Check surface availability before installing the CLI. The CLI implementation supports local inference through Ollama and LM Studio. Desktop chat uses Cloud and Desktop does not accept provider keys; its local coding sessions run the CLI, which can use a local model or a provider key you set up there.

Local describes the inference route. Signed-in CLI startup may refresh the managed model catalog when it is not cached. Review network use by tools and connectors separately.

Setting it up

  1. Install a local runtime and load a compatible model.
  2. When the CLI is available for your platform, follow its installation guide.
  3. Run agi models scan to inspect the running local servers and their models.
  4. Start agi --provider <runtime> --model <model>, using the runtime and model reported by the scan.

The CLI requires the selected local model to be reported by its server before starting inference.

Model routes and tool permissions

The CLI refuses a model request when the session's trust mode and provider route differ. A reviewed Local continuation requires a matching payload preview and creates a new destination session. Review the selected context and destination before confirming a continuation.

Review the permissions and destination of each tool or connector before using it. For account data and retention, see Privacy.

Other clients

Consult surface availability and the guide for each client before trying its local workflows. For provider-key setup in the CLI, see BYOK.

Was this article helpful?

Need more help?