Some models think before they answer: they work through the problem first and then give the final reply. Ollama’s own thinking documentation says thinking-capable models emit a thinking field that separates their reasoning trace from the final answer, so you can audit the steps, animate the model thinking in a user interface, or hide the trace entirely when you only need the final response. In the terminal, that choice is three flags on ollama run. Qwen 3.5 thinks by default, according to the Ollama commands cheat sheet, which is why a Qwen 3.5 chat can print a “Thinking…” block before the answer.
The three flags
| Flag | What it does | Example |
|---|---|---|
--think |
Thinking on: the reasoning trace is shown, then the answer | ollama run qwen3.5:4b --think "What port does PostgreSQL use? One sentence." |
--think=false |
Thinking off: a direct answer with no reasoning trace | ollama run qwen3.5:4b --think=false "What port does PostgreSQL use? One sentence." |
--hidethinking |
Thinking stays on, but only the final answer is printed | ollama run qwen3.5:4b --think --hidethinking "What port does PostgreSQL use? One sentence." |
The cheat sheet lists all three flags for ollama run and warns that thinking models add a wrinkle to scripts, because they print the “Thinking…” block before the answer. --hidethinking is the flag for scripts: the model still reasons, but the trace never reaches the output, so only the answer is returned. --think=false is different — it asks the model not to reason at all. Ollama’s documentation adds that models that cannot disable thinking use their lowest supported level instead, so --think=false is a request, not a guarantee. Inside an interactive chat you can switch without restarting: /set think turns thinking on and /set nothink turns it off.
Check what your model supports
Thinking controls vary by model, so do not guess. Ollama’s documentation says to use /api/show to discover the values a model supports and the value Ollama uses by default: the response includes a top-level thinking object, with values holding booleans (true or false) for on/off controls or model-defined strings for named levels, and default for what is used when think is not set. A values list of [false] means the model does not support thinking at all, and if thinking is omitted the model has no thinking metadata. In the API the same choice is the think field on a chat or generate request, and the reasoning and the answer arrive in separate fields: message.thinking and message.content from chat, or thinking and response from generate.
Try it: run one question three ways
Use the cheat sheet’s own question, “What port does PostgreSQL use? One sentence.”, and run it with each flag in turn.
| Run | What you should see | What it means |
|---|---|---|
--think |
A reasoning block, then the answer | Thinking is on and visible |
--think --hidethinking |
The answer only, with no reasoning block | Thinking happened, but the trace was hidden |
--think=false |
The answer only, with no reasoning block | Thinking was asked to stay off |
Expected result. We checked Ollama’s thinking documentation, which describes the separate thinking field and the /api/show values, and the Ollama commands cheat sheet, which lists the three flags. We did not run ollama run with any of these flags on this machine, so we have no output of our own; the three runs above are the expected result.
Limits
--hidethinking hides the trace; it does not stop the reasoning, so it does not make the model faster. --think=false can be ignored by a model that cannot switch thinking off, which then uses its lowest supported level instead. Thinking controls differ from model to model — some take only on/off, others take named levels — so check /api/show before relying on a flag. The flag list and the Qwen 3.5 default in this guide come from a third-party cheat sheet that was checked against Ollama 0.40.14, and the /set think and /set nothink commands come from a third-party guide, not from Ollama’s own documentation. We did not test any of this ourselves.
Sources
- Ollama documentation, Thinking — the thinking field separates the reasoning trace from the answer; /api/show values and default; models that cannot disable thinking use their lowest level
- Ollama commands cheat sheet — –think, –think=false and –hidethinking flags for ollama run; Qwen 3.5 thinks by default (third-party guide, checked against Ollama 0.40.14)
- Ollama on Linux guide — /set think and /set nothink inside an interactive session (third-party guide)
