Skip to main content

Run Codex OSS through Ollama

Status: Ready

Article ID: 044

Truth label: Limited

Audience: Fleet operator

Reader outcome: Use the Codex CLI with an owned Ollama inference path while keeping execution authority and quality limits explicit.

Related articles: 009, 023, 043

Target week: 18

Last verified: 2026-09-13

Technical reviewer: Codex source audit

Editorial reviewer: Codex editorial audit

Separate owned inference from execution​

Codex OSS uses the Codex CLI with its OSS and local-provider flags so model inference reaches the configured Ollama service. This can keep model prompt processing on owned infrastructure. The worker still launches tools and verification as its operating-system account.

Local inference is therefore a data-egress choice, not a permission boundary.

Prepare both dependencies​

The worker needs a compatible Codex CLI, a reachable Ollama service, and the selected local model already available. Confirm each from the worker process environment. Register with --engine codex-oss and check that Central sees that exact backend.

Use a model family accepted by the local adapter. Record model identity and Ollama endpoint without exposing private network details in public material.

Keep permission and verification explicit​

Codex OSS retains the Codex permission mapping: read-only, workspace-write, or full bypass. Set the worker ceiling separately from the model choice. Attach a platform-correct independent verification command to every consequential task.

Compare local runs on factual accuracy, task completion, latency, token usage, and hardware pressure. Do not assume privacy makes the answer correct.

Run a bounded evaluation​

Use a synthetic repository and a fixed set of read, edit, and verification tasks. Record the local model, hardware, duration, output tokens, verification outcome, and failure type. Compare against an approved alternative without changing the brief or permission.

Current limits​

Quality, context capacity, and performance depend on the local model and hardware. The adapter does not add session resume or dollar-cost reporting. Ollama availability and model storage are separate operational dependencies. Repository code can still execute during tools or verification.

Next lesson​

Continue with Add an Antigravity worker.

Derivative map​

  • Weekly package: WEEK-18
  • Long video: VIDEO-W18-LONG
  • Shorts: SHORT-W18-PROBLEM, SHORT-W18-MECHANISM, SHORT-W18-WARNING
  • Email: EMAIL-W18
  • LinkedIn: LI-W18-A, LI-W18-B
  • X: X-W18-A, X-W18-B
  • Visual: VISUAL-W18

Review record​

  • Local-provider invocation, dependencies, permission, result, cost, and resume behavior checked against current source.
  • Quality, hardware, availability, and execution-authority limits reviewed.
  • Evaluation uses synthetic work and separates privacy from correctness.
  • Internal links and repository voice reviewed.

Review completed: 2026-08-27

Re-audited against the running product: 2026-09-13