Skip to content
Draft, pre-release documentation

Kasm Session Runtime does not need a model. Scripted steps, browser and accessibility control, recipes, the checks that decide pass or fail, and an outside agent driving the session all work with none configured in the runtime. A model adds visual checks, clicks located on screen from a description, and the runtime’s own loop for goal: steps.

Way of driving Where the model comes from
Agent in your workspace The agent’s own provider (Claude Code, Codex or OpenCode), on the workspace’s credentials. The runtime needs no model of its own
Your agent or script Wherever your agent runs. The runtime needs none
Scenarios None for scripted steps. A vision endpoint for visual checks and goal: steps

A vision endpoint is any OpenAI-compatible chat-completions server, hosted or on your own hardware. Set it with KASM_RUNTIME_VISION_ENDPOINT. The runtime sends it three kinds of request.

  • Judging screenshots: does the screen show the application, an error dialog, or what a step expected.
  • Locating an element on screen from a description, as a position to click.
  • Running the runtime’s loop for scenarios with a goal:.

Vision models covers choosing and configuring one.

When no endpoint is set and a signed-in Claude Code agent runs in the workspace, screen.judge, screen.ground and screen.ask are answered by a small Claude model on the same account. Codex and OpenCode do not provide this. Set KASM_RUNTIME_HARNESS_VISION=off to turn it off. An endpoint, when set, always takes precedence. Screenshots then go to the agent’s provider, as the agent’s own screenshots do.

Without either, those three methods return an error saying no vision backend is available.

Area Works with no model Needs a model
Scripted actions key, type, click center, click "<declared-target>", click <fx> <fy>, click_element, set_text, set_value, select, wait, wait_while, shell, spawn, kill click_grounded
Browser steps Every cdp_* step, including cdp_wait Nothing
Checks after a step expect_state, and post: conditions of kind url, dom, state, window, no_window, process, no_process, file observe:, expect:, and post: conditions of kind screen
Pass or fail Window and process checks, checks.log_fatal, error-dialog windows found through X11, comparison with baseline screenshots Judging from a screenshot whether the application rendered or shows an error
Goals and plans Replaying a plan: whose postconditions hold, and compile-plan goal: steps, and a plan’s fall-back to the loop
Methods for an agent or script screen.capture, windows.*, input.*, dom.*, a11y.*, apps.*, proc.*, launch, shell, wait_while, file transfer, recipes, human.ask screen.judge, screen.ground, screen.ask
Evidence and people Screenshots, report.json, report.md, the trace, the sidebar, messaging Nothing

dom.click_described matches your description against the names of the page’s interactive elements as text, with no model.

  • An observe: or expect: step, or a screen postcondition, still takes its screenshot. The step’s row reads not-judged (deterministic-only mode) and the step does not fail.
  • A scripted click_grounded step cannot run, and the run ends as test-error.
  • A goal: scenario runs its launch checks and setup steps, then skips the loop. The report notes that the loop was degraded and adds a concern that the goal was not verified. The deterministic checks decide the verdict, and the concern limits it to pass-with-concerns.
  • A plan: that completes passes on its postconditions. If a plan step fails, the report’s plan block records the failed step and its reason, and the run goes on to the goal:, where the loop is skipped as above. A scenario with a plan: always has a goal:.
  • screen.judge, screen.ground and screen.ask return an error, unless the workspace fallback above applies.

Each model call is tried up to three times (model.attempts), with a pause between tries. After two judgement calls in a row fail on every try (model.disable_after), the runtime stops calling the model for the rest of the run and continues as if none were configured. Later judgements read as not judged. A located click that has already landed but cannot be checked is recorded as clicked and unverified, with a concern, and is not repeated. A loop whose model call fails stops and is marked degraded.

The report then shows agent.deterministic_only: true and report.md carries the note “vision endpoint failed repeatedly – degraded to deterministic-only”. An unreachable model does not by itself fail a run. Both settings are in the operator file; see Operator file.