All documentation

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:

ModelConnectionWhere it runs
qwen3:4bOllama, OpenAI-compatible endpointLocally on your computer
qwen3:8bOllama, OpenAI-compatible endpointLocally on your computer
jev-1.13Jev endpoint and API keyRemote 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

  1. 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.
  2. 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.
  3. One local, remote, or executable-backed reasoning model.
  4. 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

  1. Open Settings at the bottom of the sidebar.
  2. Find Reasoning model router.
  3. Press Add profile.
  4. Fill in the fields:
FieldExample value
Profile nameLocal Qwen 4B
Connection typeOpenAI-compatible endpoint
Endpointhttp://127.0.0.1:11434
Reasoning model IDqwen3:4b
API keyleave blank
Timeout120 for the first cold start
Minimum confidence0 for the first test
  1. Keep Profile enabled on.

3. Add destinations

Every destination has three fields:

  1. Client — codex or opencode.
  2. Exact model name — an ID from that client's catalogue.
  3. When this model fits — a short, unambiguous routing rule.

A useful split looks like this:

ClientModelDescription
OpenCodeexact fast-model IDShort answers and documentation without architecture analysis
OpenCodeexact strong-model IDArchitecture, 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

  1. Press Save.
  2. Press Check availability on the profile card.
  3. 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

  1. Open a project.
  2. Press New conversation.
  3. Enter a real task and send it.
  4. The UI immediately shows Message accepted. The reasoning model is deciding where to send it…
  5. 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:

  1. accepts the text and immediately shows the selecting state in the timeline;
  2. resolves the effective profile for the project;
  3. refreshes the Codex and OpenCode catalogues and removes unavailable destinations;
  4. sends the task and allowlisted destinations to the reasoning model;
  5. rejects unknown IDs and invalid confidence values;
  6. rechecks profile and assignment revisions;
  7. uses a single-use decision to start the selected client and model;
  8. 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:

  1. an explicit project assignment;
  2. the global profile;
  3. no routing when no global profile exists.

Each project has three states:

StateResult
Inherit global settingUses the default profile
A named profileOverrides the global setting
Disabled for this projectUses 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

  1. Open jev-ai.org and sign in.
  2. Go to Settings → API keys.
  3. 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

FieldValue
Connection typeJev / Jev-compatible endpoint
Endpointhttps://jev-ai.org
Reasoning model IDjev-1.13 or jev-latest
API keyyour Jev key
Timeoutstart 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_KEY is 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.

  1. Select the program under Executable path.
  2. Optionally provide a Local model path, for example a weights file. A model file itself is not an executable.
  3. 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:

  1. For Ollama, run ollama list and confirm the server is running.
  2. Compare the model ID character for character.
  3. Check the endpoint and API key.
  4. 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.