Skip to content
Draft, pre-release documentation

Kasm Session Runtime runs inside a Kasm session container as the session user. Several parties can act through it, and each is bounded by a different mechanism.

Party What it holds What bounds it Page
The model in the runtime’s loop (a scenario with a goal:) Nothing. It names tools from a list built for the run The tool registry: declared tools, closed parameters, prerequisites, budgets What the model can do
Your agent or script, outside the session The session token The session container. The token is equivalent to a shell as the session user What the runtime can reach
The agent in your workspace (Claude Code, Codex or OpenCode) The session token and the workspace’s provider credentials The session container, and the harness’s tool approvals The agent in your workspace
A person viewing the session A generated sidebar token The operator routes it opens: messaging, activity, stop, starting the agent People viewing the session
A recipe’s helper program Nothing. It runs with an empty environment A sandbox: seccomp always, Landlock filesystem rules where the kernel supports them Recipe helpers

The runtime process itself has no kernel-level confinement. The session container, which Kasm manages, is the isolation boundary. The checks the runtime does make sit on top of it.

The first row applies only when the runtime’s own loop uses a model. The runtime works without one: scripted scenarios, browser control over the Chrome DevTools Protocol and an outside agent driving the session over MCP or HTTP need no model in the runtime. See When you need a model.

Nested boxes, outermost first: the host; the session container, enforced by Kasm; the runtime process, which has the session user’s rights; the tool registry, enforced by the runtime, with declared tools, closed parameters, prerequisites and budgets; and the model inside it, used only by the runtime’s own loop. An outside caller over MCP or HTTP enters at the runtime process beside the registry, not through it, and can do what the session user can do.HostSession containerenforced by KasmRuntime processthe session user’s rightsMCP and HTTP methodsshell, input, browser,files, screenAnything the sessionuser can doTool registryenforced by the runtimedeclared tools, closed parameters,prerequisites, budgetsModelthe runtime’s own loop onlyOutside callerMCP or HTTP,session token
Two boundaries. The tool registry bounds what the model can ask for, and applies only to the runtime's own loop. The session container bounds what the runtime process, and any caller holding the session token, can reach.

An outside caller and the agent in the workspace both reason for themselves. The runtime gives them shell, proc.spawn and raw-coordinate input.click. Holding the session token is access to the session user’s account. The runtime’s own loop works from a closed vocabulary and has none of these unless the scenario declares them.

The security question for a deployment is what the session container holds and what it can reach: which credentials are in its environment, what is mounted, and what its network can talk to. Kasm controls those through the workspace configuration.

  • An outside caller presents the session token on every request that acts (MCP, the HTTP interface, the raw DevTools proxy). The token is compared in constant time.
  • Inside a Kasm session, the routes the sidebar reads (the live trace, screenshots, the report, the inbox) always need a token. Kasm’s proxy also requires the user’s Kasm sign-in.
  • The browser’s DevTools endpoint must be on the local machine unless an operator sets KASM_RUNTIME_CDP_ALLOW_REMOTE.
  • File transfer reaches the session user’s home directory and /tmp only.
  • Recipe helpers run under the sandbox described on What the runtime can reach.

Each check, and what it does not cover, is on What the runtime can reach.

  • Screenshots and page text go to KASM_RUNTIME_VISION_ENDPOINT when one is set. With no endpoint and a signed-in Claude Code agent in the workspace, the vision methods send the screenshot to that agent’s provider on the same account.
  • The agent in the workspace sends what it reads and sees to its own provider, under the workspace’s credentials.
  • The runtime does not restrict where the process sends data. A wrong vision endpoint sends screenshots of the session to that address.
  • The runtime does not stop a caller that holds the session token from doing anything the session user can do. The agent in the workspace holds that token.
  • Anyone who can view the session can read its activity and message its agent.
  • Screenshots are not redacted. See Secrets and evidence.
  • The runtime records evidence of what happened in a run. It does not make a deployment compliant with any standard.