Quickstart (CPU)ΒΆ
Last Updated: 2026-06-22
Get Codex running locally in under five minutes β no GPU required.
PrerequisitesΒΆ
1 β Start the APIΒΆ
# Option A: directly
python -m codex.cli serve
# Option B: Docker Compose (recommended for isolation)
docker compose up api
The API listens on http://localhost:8000 by default.
2 β Run inferenceΒΆ
curl -X POST http://localhost:8000/infer \
-H "Content-Type: application/json" \
-d '{"prompt": "def fibonacci(n):", "max_tokens": 64}'
Or open the demo notebook:
3 β Verify outputsΒΆ
The response JSON contains completion, tokens_used, and model_version.
No GPU is required β the symbolic pipeline runs fully on CPU.
Next stepsΒΆ
| Goal | Guide |
|---|---|
| Full end-to-end training | End-to-End CPU tutorial |
| Deploy to production | Deploy Pipeline |
| Configure the model | Codex Setup Guide |
| Understand the architecture | Architecture |