Troubleshooting
Most Turf™ CLI problems are the model or the server: turf cannot reach a model, cannot find
turf-mcp-server, or runs a local model that is too small for its prompt. One is the license: turf
exits with status 77 until its terms are accepted. Find the message you see below.
turf won’t start
Section titled “turf won’t start”could not start the model … API key … is required: turf could not reach a model. Set the key
for your provider, or switch to a keyless local model, which needs a turf.yaml, not just a --model
flag (Run a model locally).
unknown provider … or invalid model format …: --model must be a named model from
turf.yaml or a provider/model reference, such as anthropic/claude-sonnet-5 or
google/gemini-pro-latest. Check the prefix against Docker’s
providers overview.
turf-mcp-server not found on PATH: the CLI launches the server as a subprocess and must find
it. Install it and put it on PATH, or point at it
(Install):
export TURF_MCP_SERVER=/path/to/turf-mcp-serverThe server rejects turf’s flags at startup: the CLI and the server are from different releases.
turf starts the server with its own release’s flags (--deadline), which an older
turf-mcp-server rejects. turf names the binary it ran; point TURF_MCP_SERVER at one from the same
release.
turf exits with status 77
Section titled “turf exits with status 77”Turf is proprietary software. To accept the Turf license terms (version 1.0,https://turf.build/license/v1/), run `turf license accept` or set TURF_ACCEPT_EULA=yes.Free for individuals, education and small businesses within the Community limits.Government and larger organizations need a commercial license.The license terms have not been accepted, and turf had no terminal to ask on: stdin or stderr is not
a terminal, or CI is set. Read the terms, then run turf license accept once on that machine. In a
CI job or a container, set TURF_ACCEPT_EULA=yes instead; setting it accepts the terms at
https://turf.build/license/v1/. Only yes accepts: true, 1 and y do not, and turf names the
wrong value on a second line.
In a container, turf-engine and turf-ui exit with the same status for the same reason. They read
only their own environment and the --accept-eula flag
(Minimal manifests).
The engine is awaiting the license
Section titled “The engine is awaiting the license”turf-mcp-server engine status says awaiting license: the Homebrew service, or an engine in a
terminal, is up and has started nothing, because the license terms are not accepted. Plans and applies fail until they are. Run
turf license accept. It checks every 2 seconds and starts the engine, with no restart.
A TURF_ACCEPT_EULA set in your shell, or in your MCP client’s configuration, does not reach the
Homebrew service. The record turf license accept writes does, and so does
~/.homebrew/services/turf.env (Accept the license).
The model does not support tools
Section titled “The model does not support tools”model failed: … does not support toolsturf does everything through tools, so the model must support tool (function) calling, and many local
models don’t. Switch to a tool-capable model: Docker Model Runner’s ai/qwen3, or on Ollama one of
llama3.1 or llama3.2, qwen2.5, or mistral, rather than plain llama3. See
Model providers.
The context window is too small
Section titled “The context window is too small”model failed: … exceeds the available context sizeA local model is running with a context window smaller than turf’s prompt. turf sends about 27k tokens before you type anything (two dozen infrastructure tools and their workflow instructions), and Docker Model Runner’s default window is far smaller, so the first message is rejected.
Declare the model in a turf.yaml with a context_size that fits, then run turf chat with no
--model flag. The setting is per model, so --model dmr/ai/qwen3 alone cannot carry it:
model: localmodels: local: provider: dmr model: ai/qwen3 provider_opts: context_size: 65536On Ollama the same knob is OLLAMA_CONTEXT_LENGTH. See
Run a model locally.
The machine bogs down while a local model runs
Section titled “The machine bogs down while a local model runs”The inference engine reserves cache for the whole context window up front, so memory use scales with
context_size. A large window on a large model can exhaust RAM and push the machine into swap. Lower
context_size (32768 is the practical floor, given turf’s prompt of about 27k tokens), or pick a
smaller model.
Still stuck
Section titled “Still stuck”- Run with
--debugand read~/.turf/turf.debug.log;--log-level debug --log-file server.logcaptures the server’s side (Flags and environment). - Report a bug from
turf chat(Ctrl+K, then Report Bug) or on GitHub Issues. - Ask on Discord, or write to contact@turf.build. Security reports go privately to security@turf.build (security policy).
Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.
© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub