Reasoning models
A reasoning model in onplate does not perform the task itself. It reads the message, selects one destination from your allowlist, and lets onplate send the task to that AI client and model. For example:
- a short explanation goes to a fast model;
- architecture, debugging, and tests go to a stronger model;
- one project uses a local Qwen profile while another uses Jev;
- routing is explicitly disabled for a sensitive project.
The choice appears in the conversation as a separate card with the profile, destination, explanation, confidence, and decision time. It looks different from an ordinary agent answer, so the router's decision cannot be mistaken for the answer to the task.
What has been tested
The integration flow has been verified with three reasoning models:
| Model | Connection | Where it runs |
|---|---|---|
qwen3:4b | Ollama, OpenAI-compatible endpoint | Locally on your computer |
qwen3:8b | Ollama, OpenAI-compatible endpoint | Locally on your computer |
jev-1.13 | Jev endpoint and API key | Remote Jev service |
This is not a closed compatibility list. You can connect another local or remote model through an OpenAI-compatible endpoint or the executable JSON protocol described below. A successful integration check confirms routing compatibility, not equal decision quality across models of different sizes.
Prerequisites
- Codex or OpenCode installed. These are currently the clients that provide onplate with an exact model catalogue and accept a model for one specific message.
- At least two configured destination models. Model IDs are exact; onplate does not replace them with similar names. If only one remains available at send time, onplate selects it without calling the reasoning model.
- One local, remote, or executable-backed reasoning model.
- At least one project remembered by onplate.
The reasoning model and the destination models are different things. A local
qwen3:4b can make the decision while a model from the OpenCode catalogue
performs the task.
Quick start: a local model through Ollama
This is the shortest test path and requires no API key. Installation and launch instructions are in the official Ollama Quickstart.
1. Install and start a model
You do not have to download both models. qwen3:4b takes less space and is a
good first check; qwen3:8b is the larger option and needs more memory and disk
space.
macOS with Homebrew
brew install ollamabrew services start ollamaollama pull qwen3:4bollama pull qwen3:8bollama list
brew services start ollama starts the server now and after future logins.
These commands are listed by the
Homebrew Ollama formula. Without
Homebrew, use the official macOS instructions.
Linux with systemd
curl -fsSL https://ollama.com/install.sh | shsudo systemctl enable --now ollamaollama pull qwen3:4bollama pull qwen3:8bollama list
Without systemd, start the server in a separate terminal and keep it open while using onplate:
ollama serve
The official Linux instructions also cover manual ARM64 installation and AMD GPU packages.
Windows with PowerShell
Open a regular PowerShell window and run:
irm https://ollama.com/install.ps1 | iex
Open a new PowerShell window after installation, then download the models:
ollama pull qwen3:4bollama pull qwen3:8bollama list
Ollama runs in the background and serves its API at http://localhost:11434.
If it is not running, open Ollama from the Start menu. System requirements and
the manual installer are in the
official Windows instructions.
Expected result
The final command should list one or both models:
qwen3:4b
qwen3:8b
The local server should respond at http://127.0.0.1:11434. Ollama exposes a
compatible /v1/chat/completions endpoint; see the official
OpenAI compatibility guide.
2. Create a profile in onplate
- Open Settings at the bottom of the sidebar.
- Find Reasoning model router.
- Press Add profile.
- Fill in the fields:
| Field | Example value |
|---|---|
| Profile name | Local Qwen 4B |
| Connection type | OpenAI-compatible endpoint |
| Endpoint | http://127.0.0.1:11434 |
| Reasoning model ID | qwen3:4b |
| API key | leave blank |
| Timeout | 120 for the first cold start |
| Minimum confidence | 0 for the first test |
- Keep Profile enabled on.
3. Add destinations
Every destination has three fields:
- Client —
codexoropencode. - Exact model name — an ID from that client's catalogue.
- When this model fits — a short, unambiguous routing rule.
A useful split looks like this:
| Client | Model | Description |
|---|---|---|
| OpenCode | exact fast-model ID | Short answers and documentation without architecture analysis |
| OpenCode | exact strong-model ID | Architecture, concurrency, difficult debugging, and regression tests |
Do not copy an example model ID blindly: provider catalogues change. Open the ordinary new-conversation panel, select the client, and copy a model from the list that onplate displays.
Describe task type and complexity. Avoid overlapping rules such as “normal tasks” and “other tasks”; no decision model can draw a stable boundary from that.
4. Save and test
- Press Save.
- Press Check availability on the profile card.
- Wait for Reasoning model is available: qwen3:4b in green.
The check verifies the reasoning model itself. Before every decision, onplate also compares each exact destination ID with the current Codex or OpenCode catalogue.
5. Assign the profile
Choose one approach:
- enable Use globally and select the default profile;
- assign the profile only to one project under Project assignments;
- select several projects, choose a profile, and press Apply.
6. Verify it in a conversation
- Open a project.
- Press New conversation.
- Enter a real task and send it.
- The UI immediately shows Message accepted. The reasoning model is deciding where to send it…
- After the decision, onplate starts the selected executor automatically.
Expected result: a Reasoning model decision card appears above the agent answer with the client, model, and latency.
Request flow
For a new conversation, onplate:
- accepts the text and immediately shows the selecting state in the timeline;
- resolves the effective profile for the project;
- refreshes the Codex and OpenCode catalogues and removes unavailable destinations;
- sends the task and allowlisted destinations to the reasoning model;
- rejects unknown IDs and invalid confidence values;
- rechecks profile and assignment revisions;
- uses a single-use decision to start the selected client and model;
- stores the result as a separate card in the conversation history.
Follow-up messages are routed too. If the selected model belongs to the current client, it is used inside the current conversation. If the reasoning model selects another client, onplate creates a separate linked conversation instead of silently mixing two incompatible histories.
Changing the text or project, closing the window, or starting another launch cancels the active reasoning request. A failed route restores the draft.
Onplate handles SDD commands separately from ordinary chat messages. Exploration, planning, implementation, and report analysis use the model and reasoning effort of the managed Codex conversation shown in the preview. SDD
Global defaults and project-specific profiles
Settings resolve in this order:
- an explicit project assignment;
- the global profile;
- no routing when no global profile exists.
Each project has three states:
| State | Result |
|---|---|
| Inherit global setting | Uses the default profile |
| A named profile | Overrides the global setting |
| Disabled for this project | Uses the ordinary client and model selection |
Create as many profiles as you need: a local model for private work, Jev for a support repository, and a larger local model for architecture-heavy code.
Use default everywhere removes individual assignments and returns projects to inheritance. It does not delete the profiles.
Connect Jev
Jev is a remote decision model. The task text is sent to the service, so do not send secrets and check your organization's data policy first.
Get an API key
- Open jev-ai.org and sign in.
- Go to Settings → API keys.
- Create a key and save it immediately: the plaintext is shown once.
The key starts with sk-glm5-. The masked value in the dashboard is not a
usable credential. See the official
Jev authentication guide.
Create the profile
| Field | Value |
|---|---|
| Connection type | Jev / Jev-compatible endpoint |
| Endpoint | https://jev-ai.org |
| Reasoning model ID | jev-1.13 or jev-latest |
| API key | your Jev key |
| Timeout | start with 10–30 seconds |
jev-1.13 is pinned; jev-latest can move to a newer build. The current model
list is documented in the official Jev model guide.
After saving, the API-key field is empty again. That is expected: onplate stores the key encrypted on this computer and only tells the frontend that a key exists. Leaving the field blank while editing preserves the key; Remove key deletes it explicitly.
When no key is stored in the profile, onplate can read JEV_API_KEY from the
app process environment. A stored key takes precedence.
Any OpenAI-compatible server
Choose OpenAI-compatible endpoint when your server supports /v1/models
and /v1/chat/completions with JSON output.
- plain HTTP is allowed only for loopback addresses such as
http://127.0.0.1:11434; - remote servers must use HTTPS;
- HTTP redirects are not followed — enter the final endpoint;
- the saved key is sent as
Authorization: Bearer …; OPENAI_API_KEYis used only when the profile has no saved key;- local Ollama needs no key.
If the endpoint already ends in /v1 or /chat/completions, onplate does not
duplicate the path. For a base URL, it appends /v1/chat/completions.
Your own local executable
Use Local executable (JSON protocol) for any model with a runtime or wrapper you control.
- Select the program under Executable path.
- Optionally provide a Local model path, for example a weights file. A model file itself is not an executable.
- Save the profile and press Check availability.
onplate starts the executable directly without a shell, writes one JSON object
to stdin, and reads one JSON object from stdout. Task text never becomes a
command-line fragment.
The probe input is:
{"schemaVersion":1,"kind":"probe","model":"/models/router.gguf"}
A successful response is:
{"schemaVersion":1,"ready":true,"engineModel":"router-v1","engineVersion":"2026-11-13"}
For kind: "decide", the request also contains task and candidates. The
response must select exactly one candidate ID from that request:
{
"schemaVersion": 1,
"candidateId": "candidate-2",
"confidence": 0.91,
"explanation": "The task needs concurrency analysis and regression tests",
"alternatives": [
{"candidateId": "candidate-1", "confidence": 0.09}
],
"engineModel": "router-v1",
"engineVersion": "2026-11-13"
}
Unknown fields, invented IDs, confidence outside 0..1, multiple JSON values,
and oversized output are rejected. Send diagnostics to stderr; reserve
stdout for the protocol response.
Timeout and confidence
Timeout limits one decision. A local model may take much longer on the
first request while it loads into GPU or system memory. For an initial Ollama
test, start with 120 seconds, then reduce it after looking at real latency.
Minimum confidence is between 0 and 1. Start with 0, review decision
cards, and raise the threshold later. Below the threshold, onplate does not
force the reasoning model's choice and uses the conversation's currently
selected destination.
Security and privacy
- A local executable receives text through
stdin, not a shell. - A remote endpoint receives the full message text. The profile editor warns you before you use one.
- Remote HTTP without TLS is rejected; loopback is the only exception.
- Redirects are rejected so the key and task cannot move to another host.
- API keys are encrypted and never returned to the frontend.
- The reasoning model sees only the task and allowed destinations. It cannot launch an arbitrary client or model.
- Before launch, onplate rechecks the profile, project assignment, global default, and single-use decision token.
Never put an API key in a candidate description, message, profile name, screenshot, or Git repository.
Statistics
The settings block shows:
- total attempts;
- successful decisions and errors;
- initial messages and follow-ups;
- average latency.
The full result remains in the matching conversation. This explains the choice without mixing router output with the executor's answer.
Troubleshooting
“Reasoning model is unavailable”
Cause: the server is stopped, executable path is wrong, model is missing, or the endpoint or key is invalid.
Fix:
- For Ollama, run
ollama listand confirm the server is running. - Compare the model ID character for character.
- Check the endpoint and API key.
- Press Check availability again.
A decision takes tens of seconds
Cause: the local model is loading into GPU or system memory on its first request.
Fix: run ollama run <model> once, wait for an answer, then leave with
/bye. Later decisions are usually faster. Keep a timeout large enough for a
cold start.
The card says “Decision time: 0 ms”
Cause: only one destination remained after availability checks, so there was nothing to decide and the reasoning model was not called.
Fix: verify every client + exact model ID pair. An OpenCode model, for example, must not be configured as a Codex model.
The wrong model was selected
Cause: descriptions overlap or contain an accidental signal that outweighs task complexity.
Fix: make rules mutually exclusive. Good: “short answers and docs” versus “architecture, concurrency, and tests”. Bad: “easy tasks” versus “hard tasks” without examples.
“Invalid choice”
Cause: the reasoning model returned an unknown ID, a confidence value with the wrong type, or JSON outside the contract.
Fix: choose a model with reliable structured JSON support. For your own wrapper, validate the protocol above.
Jev returns 401, 402, or 429
401— the key is missing, revoked, or a masked value was entered;402— the account lacks tokens or credits;429— the request limit or the key's daily budget was reached.
Correct the problem in the Jev dashboard and send again. The draft remains available.
Settings changed during a decision
onplate rejects an old decision when the profile or assignment has changed. Send the message again to create a fresh single-use decision.
FAQ
Can different projects use different reasoning models?
Yes. Create several profiles and assign them per project. An explicit project assignment overrides the global default.
Can one profile be enabled for every project?
Yes. Turn on Use globally and select the default profile. New projects inherit it too.
Must Jev be installed locally?
No. Jev uses a remote endpoint and API key. For a fully local setup, use Ollama, another OpenAI-compatible server, or your own executable.
Does the reasoning model answer the user?
No. It selects the destination only. The chosen Codex or OpenCode model writes the user-facing answer.
What happens to follow-up messages?
They are routed as well. If another client is selected, onplate opens a linked conversation instead of mixing incompatible histories.
Can routing be bypassed temporarily?
Set the project to Disabled for this project. The profile remains available and can be assigned again later.
Next steps
- Conversations — create chats, read states, handle permissions, and manage messages.
- Settings — the rest of the app preferences.
- Projects — how onplate remembers folders and their context.