Cortex is a C++ local AI engine for running language models on a user's machine. It supports multiple inference backends, GPU acceleration, and quantized model variants while operating offline. section 12.6 section 12.7
Cortex provides practical controls for local model deployment:
- Switch between llama.cpp and ONNX Runtime backends. section 12.6
- Use NVIDIA, AMD, or Intel GPUs when available, with GPU use attempted by default. section 12.6
- Pull quantized models from the Jan catalog or use bundled models; multiple quantization modes may exist for one model. section 12.6
- Expose local management and inference through the cortex CLI and an HTTP API. section 12.6
Run a local model
Start the server, pull TinyLlama, and launch a chat session with `cortex start`, `cortex pull tinyllama:1b`, and `cortex run tinyllama`. The server defaults to port 39281. section 12.6
cortex start
Inspect the command that starts the local Cortex server. section 12.6
