Skip to content

Models and presets

Luis edited this page Dec 4, 2026 · 3 revisions

Models and presets

Moved from the README (2026-12-02). Where this page and the ADRs disagree, the ADRs win.

The model goes in your config (~/.creep/config.yaml, --config or the org policy), never in the repository's creep.yaml. Local models in Ollama: Local models.

Presets

A preset sets contract: command and a reviewed command line with the CLI's tools switched off. Presets are embedded in the binary (ADR 0015).

Preset Command line Reads host files Verified with the real CLI
claude-code claude -p --tools "" --strict-mcp-config --output-format text no yes
gemini gemini --skip-trust --approval-mode default --extensions none --allowed-mcp-server-names creep-no-mcp-server --output-format text. API key only: needs env: [GEMINI_API_KEY], verified with GEMINI_CLI_HOME (see below) yes: tools, policies and include directories from ~/.gemini/settings.json yes (Gemini CLI 0.70.0, AI Studio key, #338), only with GEMINI_CLI_HOME in env: without it every scan warns that the preset is not verified for the run
codex (unverified) codex exec --sandbox read-only --ignore-user-config -c features.shell_tool=false -c features.view_image=false -c features.apps=false -c features.plugins=false -c features.image_generation=false -c features.browser_use=false -c features.computer_use=false -c features.in_app_browser=false -c web_search=disabled -c "project_root_markers=[]" --skip-git-repo-check --ephemeral --color never - yes: shell, image, web, app, plugin and browser tools are off (checked with codex-cli 0.171.0, #272, #333, and 0.172.0, #412), but apply_patch cannot be switched off: its host probing tells injected code whether any host file exists and holds a given line (#316); it also reads ~/.codex/AGENTS.md. Passes the tool canary, and with 0.172.0 the tools-on control fails as it should on Windows (Linux and macOS not run); it stays unverified because of apply_patch (#412) no
ollama ollama run <model.name> --format json (needs name: <model>) no no

Warning

The tool canary catches writes and commands, not reads. With gemini or codex, scanned code could steer the CLI to read host secrets (~/.ssh, ~/.aws) and send them to its provider unredacted, outside egress.log. gemini denies web_fetch in headless mode and sends google_web_search queries to Google, its provider, but a tool or policy your ~/.gemini/settings.json allows could reach any address outside egress.allow. This is an accepted residual risk (ADR 0015, threat model C6, #229): creep only warns at creep doctor and every scan, as it does for unverified presets. Do not use them on untrusted code or on a machine whose home directory holds secrets; prefer claude-code or ollama.

Why codex is not verified. Checked with codex-cli 0.172.0 (2026-12-03, #412). The preset switches off codex's shell, image, web, app, plugin and browser tools, and the tool canary passes. Codex's apply_patch tool cannot be switched off, though, and it opens any absolute path on the host: before it patches a file, it reports whether that file exists and whether it contains a given line, so code you scan could use it to probe files such as ~/.ssh/id_ed25519. Codex's permission profiles could confine it, but on Windows codex refuses to start with them unless an administrator has set up its elevated sandbox. So the preset stays verified: false with host_reads: unbounded, and creep warns on every run. Since v0.8 the preset's arguments changed, so its command://codex-… consent key changed too: consent again, and update the key in CI policies (creep doctor prints it). For untrusted code use claude-code or ollama.

The gemini preset needs a Google AI Studio key: a personal Google login fails in headless mode ("This client is no longer supported for Gemini Code Assist for individuals", Gemini CLI 0.70.0 and 0.71.1, #333), and with security.auth.selectedType: oauth-personal in ~/.gemini/settings.json the key is ignored: switch it to gemini-api-key (/auth). The verified run also set GEMINI_MODEL=gemini-3.5-flash-lite on the free tier. Declare the key in model.env so it reaches the CLI (creep passes only a minimal environment plus model.env):

# ~/.creep/config.yaml
model:
  preset: gemini
  env: [GEMINI_API_KEY, GEMINI_CLI_HOME]   # GEMINI_CLI_HOME: an isolated home whose .gemini/settings.json selects gemini-api-key (CONTRIBUTING.md, Model presets)

It runs with --skip-trust because headless Gemini CLI exits 55 in an untrusted folder; the folder it trusts is the fresh, empty directory creep makes for each call, which holds no settings, .env or GEMINI.md. Gemini also reads the first .env above it and GEMINI.md files up to a .git, so that directory lives under your cache directory (<user cache>/creep/model, 0700), never under the shared system temp directory, and creep refuses to run the CLI unless every directory from there up to your home directory is a real directory (no link) that other users cannot write to. Above home nothing is checked (on Windows any user can create folders in C:\), so creep also puts empty .env, .gemini/.env and .git files next to the working directory: Gemini stops at the first env file and at the first .git, so it reads neither a planted C:\.gemini\.env nor your own ~/.env or ~/.gemini/.env, so put GEMINI_API_KEY in model.env. For codex, declare env: [CODEX_API_KEY] or log in with codex login.

No antigravity preset. Antigravity CLI (agy), which replaced Gemini CLI for Google AI Pro and Ultra, is an agent with file, shell, browser and MCP tools, and its documentation has no flag that switches them off, pins the approval mode or skips the user settings file (~/.gemini/antigravity-cli/settings.json); headless runs soft-deny only the tools that would ask, so the user's settings decide what runs. --sandbox confines shell commands only (file, browser and MCP tools stay under the settings) and has no effect where the OS sandbox is unavailable; stdin input is NDJSON (--input-format stream-json), not a plain prompt. A preset must switch tools off with its own flags, so creep ships none (ADR 0015, #258). Pointing model.run at agy yourself is at your own risk; the tool canary still runs, but it cannot see reads.

Important

The model reads untrusted code, so it must not have tools. creep doctor and every scan send a tool canary first and stop with exit 3 if the CLI writes a file or runs a command.

Behind a corporate proxy, declare the proxy variables in model.env as well (env: [HTTPS_PROXY, NO_PROXY]): creep never passes them to a model CLI on its own.

HTTP contract instead

Any OpenAI-compatible endpoint or the Anthropic Messages API. The key comes only from the CREEP_API_KEY environment variable.

# ~/.creep/config.yaml
model:
  contract: openai          # or anthropic
  endpoint: https://api.example.com/v1
  name: <model>
egress:
  allow: [api.example.com]

creep doctor sends the model two synthetic probes that hold no repository text, through the gateway (consent, budget and egress.log apply): a discovery batch of only creep's canary, and a context probe the size of the tier's largest discovery call. It warns when the reply breaks the schema or misses the canary, or when the usable context is below what the tier needs; the tier is the cached calibration's, or S before the first scan (ADR 0035).

Your own model CLI

Your own CLI also works with contract: command and run: (prompt on stdin, JSON on stdout), or --model-run <cmd>. It runs only through the gateway: no shell, an empty private directory under the user cache directory, a minimal environment, a timeout and an output cap (ADR 0014).

Weekly live check (#419)

The Presets live workflow runs each preset's real CLI every Monday and on dispatch, from main only (never on a pull request or a fork), so a CLI release that breaks a preset shows up before a user's scan does.

Job CLI Passes when
claude-code Claude Code creep doctor exits 0
gemini Gemini CLI, isolated GEMINI_CLI_HOME creep doctor exits 0
codex codex-cli the tool canary passes, and the tools-on control fails on it (exit 3)

Each CLI is installed with npm ci --ignore-scripts from a committed lockfile (.github/presets-live/<preset>/) at the version in the preset header's Checked with line; a test fails make check when header, lockfile and workflow disagree.

Keys live only as secrets of the presets-live environment (deploys from main only, created by make repo-settings): ANTHROPIC_API_KEY, GEMINI_API_KEY, optionally CODEX_API_KEY. Use keys with a low spend limit. They reach only the doctor step and the CLI through model.env, never argv or the log. A job whose key is missing is skipped with a notice.

When a job fails, redo the manual canary check (CONTRIBUTING.md, Model presets) on the new CLI, then update the preset header, the lockfile and the workflow in one pull request. Threat model: row C7.

Clone this wiki locally