Skip to content
Draft, pre-release documentation

Kasm Session Runtime

Any application · Any model, or none · Every action recorded · Repeatable

Kasm Session Runtime runs inside a Kasm session and lets AI agents and scripts use the desktop’s real applications: browsers, native applications and the files between them. It works with an agent you talk to in the session, with an agent or program you already run, or from a scenario file that runs unattended. A model is optional: scripted steps, browser and accessibility control, and an outside agent need none in the runtime. See When you need a model.

Not sure which fits? See Three ways to drive a session.

We use it ourselves at Kasm:

  • In CI/CD, to test every build of our next-generation workspace images.
  • To power WineStudio, which automates running enterprise Windows applications on Linux with WINE.

We needed AI automation that is reliable, repeatable and cheap enough to run in our own pipelines. The agents and computer-use tools we tried work a task out once, with a large model reasoning on every step.

  • Not everything is a web page. The runtime reaches a browser through the Chrome DevTools Protocol or WebDriver BiDi, a native application through the AT-SPI accessibility bus, and anything else through the screen and keyboard. See How an action reaches an application.
  • A step should be checked, then trusted. Recipes return a receipt that says whether the result was verified. Scenario steps carry their own checks, and window and process probes decide whether an application launched and stayed up. A model can add a concern but cannot overrule a failure. See Recipes and What the model can do.
  • Work out a task once, then repeat it. A run the runtime’s loop worked out compiles into plain steps with a check after each, and replays with no model. See Plans and postconditions.
  • People stay in the loop. A Kasm session is an isolated container with a real desktop. A person watches each step in the sidebar, answers the agent’s questions, signs in where the agent shouldn’t, and can stop it. See The sidebar.
  • Closed networks need automation too. The runtime talks to any OpenAI-compatible endpoint, including one on your own GPU, so a run can finish inside your network. See Vision models.
  • We have to know what happened. Every step in the record names the mechanism that ran it. Registered secret values are redacted from the report, trace and logs. See Secrets and evidence.
  • Forge (Zambelli): guardrails around tool calling that let small local models complete agentic workflows.
  • Agent JIT compilation (Winston, Wang, Mirhoseini and Kozyrakis): postconditions and compiled plans.
  • D2Snap (Schiepanski and Piël): DOM downsampling for web agents, which we measured against the runtime’s own element listing and did not adopt.