Skip to content

Engines and models

The engine is the coding agent that writes the code inside the sandbox. Khala treats it as a replaceable part: the harness, the gates and the evidence are the same whichever engine runs.

Engine Models Where inference runs
Claude Code Anthropic models Anthropic or your cloud provider’s hosted offering
Codex OpenAI models OpenAI or your cloud provider’s hosted offering
Antigravity Google models Google
OpenCode Any model behind an OpenAI-compatible endpoint Your own GPUs or any compatible provider

OpenCode is the path to self-hosted inference. If you serve open-weight models with vLLM or an equivalent server, the builder can work without sending code or prompts outside your network. See Your own GPUs.

Your catalog does. An engine can only use a model your organization has approved, and a model policy can narrow the list for specific agents. Restricted models need an approval. A team cannot select a blocked model.

This is the same catalog that governs the models your agents use in production, so one decision covers both.

  • The sandbox and its network and credential rules.
  • The gates and the held-out tests.
  • The budgets.
  • The record of the build.
  • Delivery by pull request.

Models differ in how well they write code, how fast and at what cost. An open-weight model on your own hardware keeps everything inside your network; we do not claim it writes code as well as the strongest hosted models. Because the gates are identical, you can measure the difference on your own agents: the same spec, the same tests, a different engine.

It is a catalog change, recorded in the audit log. Builds made before the change keep the stack they were resolved with.