<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Sandbase Agent Runtime on RockB</title><link>https://baeseokjae.github.io/tags/sandbase-agent-runtime/</link><description>Recent content in Sandbase Agent Runtime on RockB</description><image><title>RockB</title><url>https://baeseokjae.github.io/images/og-default.png</url><link>https://baeseokjae.github.io/images/og-default.png</link></image><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 17 Sep 2026 13:01:44 +0000</lastBuildDate><atom:link href="https://baeseokjae.github.io/tags/sandbase-agent-runtime/index.xml" rel="self" type="application/rss+xml"/><item><title>SandBase Agent Runtime: A Local-First Runtime with Sandboxed Sessions</title><link>https://baeseokjae.github.io/posts/sandbase-harness-local-first-agent-runtime-sandboxed-sessions/</link><pubDate>Thu, 17 Sep 2026 13:01:44 +0000</pubDate><guid>https://baeseokjae.github.io/posts/sandbase-harness-local-first-agent-runtime-sandboxed-sessions/</guid><description>SandBase Harness is an open-source, local-first agent runtime with Docker/K8s sandboxed sessions, SQLite storage, credential vaults, audit trails, and MCP support. Learn how self-hosted, sandboxed AI agent sessions keep data on your own infrastructure.</description><content:encoded><![CDATA[<p>SandBase Harness is an open-source (Apache-2.0), local-first agent runtime that runs sessions, sandboxed tools, memory, credentials, and audit trails entirely on your own machine or infrastructure. It runs any model — OpenAI, Anthropic, DeepSeek V4, or any OpenAI-compatible endpoint — integrates MCP toolsets, and supports local process, Docker, Kubernetes, and self-hosted worker sandbox backends. In short, it turns a capable model into a production-grade, sandboxed, auditable agent without your data ever leaving your perimeter.</p>
<h2 id="what-is-sandbase-agent-runtime">What Is SandBase Agent Runtime?</h2>
<p>SandBase agent runtime is the execution core of SandBase Harness, a self-hosted framework that gives autonomous agents a place to live and work. Instead of running each prompting loop in a stateless cloud call, SandBase persists sessions, environments, credential vaults, memory, and files in SQLite and executes tasks inside configurable sandboxes. Created in July 2026, the project has already accumulated 110-plus commits and is actively developed by liyangbing, with roughly 580-650 GitHub stars and 55-69 forks as of the September 2026 research date.</p>
<p>The term &ldquo;harness&rdquo; is deliberate. Like a test harness that isolates code under test, SandBase wraps an agent in a controlled shell where every tool call, file write, and network request is recorded against a recoverable session. It ships as a DeepSeek Harness (DSH) plugin bundle over the stdio MCP protocol, which means it plugs directly into MCP-aware clients rather than requiring a proprietary SDK.</p>
<p>What separates it from a typical Agent SDK is the persistence and isolation stack: resumable Server-Sent Events (SSE) for session replay, per-session containers, a credential vault, and permission policies with approval gates. These are the primitives production agents need but that a pure model API never provides.</p>
<h2 id="why-production-agents-need-more-than-a-model-loop">Why Production Agents Need More Than a Model Loop</h2>
<p>A model loop — prompt, call the model, parse the tool result, repeat — is the starting point, not the finish line. In real production use, agents fail, get interrupted, leak a credential, or touch a file they should not have. The market data underlines how expensive those failures are. Gartner forecasts that 40 percent of enterprise applications will embed task-specific AI agents by the end of 2026, up from under 5 percent in 2025. Yet the same firm warns that more than 40 percent of agentic AI projects risk cancellation by 2027 without governance, observability, and ROI clarity.</p>
<p>That governance gap is exactly the product gap Agent SDKs leave open. The AI agents market was roughly USD 7.84 billion in 2025 and is projected to reach USD 52.62 billion by 2030; the broader agentic AI market sits near USD 7.06 billion in 2025 and is expected to reach USD 93.2 billion by 2032, a 44.6 percent CAGR, per MarketsandMarkets. Teams are spending on agents, but they are also getting burned by non-deterministic, unrecoverable, unobservable runs.</p>
<p>SandBase closes three gaps a bare model loop cannot:</p>
<ol>
<li><strong>Persistence.</strong> Sessions survive restarts. A sandbox crash does not destroy the conversation history.</li>
<li><strong>Replay and audit.</strong> Resumable SSE means an interrupted run can be replayed from where it stopped, and every action is logged.</li>
<li><strong>Isolation and permissioning.</strong> Tools run inside a sandbox with a permission policy, so a misbehaving agent cannot roam the host filesystem.</li>
</ol>
<p>With Gartner attributing a large share of project cancellations to missing observability and governance, audit trails and replay are not developer niceties — they are the risk-management reason to buy a runtime at all. By 2028, Gartner projects 33 percent of enterprise software applications will include agentic AI (up from under 1 percent in 2024), and at least 15 percent of day-to-day work decisions will be made autonomously by agents. At that scale, an unauditable agent is a liability.</p>
<h2 id="the-four-sandbox-backends-and-how-to-choose-between-them">The Four Sandbox Backends and How to Choose Between Them</h2>
<p>SandBase agent runtime offers four sandbox backends, each mapping to a different trust level of the workload:</p>
<table>
  <thead>
      <tr>
          <th>Backend</th>
          <th>Isolation model</th>
          <th>Best for</th>
          <th>Downsides</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Local process</td>
          <td>Same host, process-level</td>
          <td>Fast iteration, simple tool calls, low-risk writes</td>
          <td>No filesystem isolation; host-level risk</td>
      </tr>
      <tr>
          <td>Docker (per-session containers)</td>
          <td>Container per session</td>
          <td>Untrusted code, package installs, parallel workloads</td>
          <td>Needs Docker daemon; image cold-start</td>
      </tr>
      <tr>
          <td>Kubernetes (kubectl exec/cp)</td>
          <td>Pod per workload</td>
          <td>Scalable, multi-node, enterprise clusters</td>
          <td>Cluster operational overhead; kubectl permissions</td>
      </tr>
      <tr>
          <td>Self-hosted worker queue</td>
          <td>Distributed workers</td>
          <td>Offloaded batch jobs, remote runners</td>
          <td>Extra orchestration to operate</td>
      </tr>
  </tbody>
</table>
<p>The decision framework is about workload trust and blast radius. A local process sandbox is fine when an agent only writes into a designated project directory and makes no network calls — think an internal code-refactoring helper. The moment an agent installs packages, spawns subprocesses, or touches files outside the project, you want a Docker per-session container so the blast radius of a bad command is a scrap container, not your host.</p>
<p>For regulated or large fleets, Kubernetes exec/cp gives you central policy, logging, and horizontal scaling across nodes. The self-hosted worker queue decouples heavy batch work from interactive sessions so a long job does not block a chat. The general rule: choose the weakest sandbox that still contains the specific risk, because stronger sandboxes cost more operational overhead and slower startup.</p>
<h2 id="local-first-by-design-sqlite-storage-credentials-and-audit-trails">Local-First by Design: SQLite Storage, Credentials, and Audit Trails</h2>
<p>Local-first is not just a deployment preference; it is an architectural choice encoded in how state is stored. SandBase keeps agents, sessions, environments, memory, files, and credential vaults in SQLite, all on your own infrastructure. Nothing is shuttled to a vendor cloud to persist state.</p>
<p>This matters most for data ownership. With a persistent cloud sandbox VM — the model behind several hosted agent products — source code and data effectively leave the building on every session. SandBase inverts that: the only thing that touches a remote service is the model API call itself. For finance, healthcare, and defense workloads, where data-residency mandates are non-negotiable, that is often the deciding factor. 67 percent of enterprises express concern about AI data privacy, and 42 percent of EU companies plan on-premise AI deployment by 2027; the average data breach now costs USD 4.44 million, per IBM 2023 data. Keeping session state, credentials, and audit logs in your own SQLite store is the compliance-safe default.</p>
<p>The audit trail deserves emphasis because it is the governance control Gartner says projects are missing. Every tool call, result, and state transition can be replayed via resumable Server-Sent Events. If an agent makes an unwanted change, you have a precise record of what it did and in what order — the difference between an explainable incident and a mystery. Permission policies with approval gates add a human-in-the-loop brake for high-stakes actions like file deletion or external payments.</p>
<p>Credentials are another local-first win. Instead of scattering API tokens in environment variables, SandBase stores them in a vault tied to environments, so the agent only sees the credentials appropriate to its session. This is a meaningful step up from pasting secrets into prompts.</p>
<h2 id="model-agnostic-and-mcp-native-avoiding-lock-in">Model-Agnostic and MCP-Native: Avoiding Lock-In</h2>
<p>A common objection to agent platforms is model and tool lock-in. SandBase agent runtime addresses it on both axes. It runs OpenAI, Anthropic, any OpenAI-compatible endpoint including DeepSeek V4, and integrates existing MCP toolsets. You bring your own model and your own tools, and the harness standardizes sessions, sandboxing, and audit around them.</p>
<p>MCP (Model Context Protocol) compatibility is especially relevant because it means SandBase is not asking you to throw away the tools you already use. Any MCP server you have — file access, web search, databases, internal APIs — can be wired into a sandboxed session. And because the whole thing ships as a DeepSeek Harness (DSH) plugin bundle over stdio MCP, clients that speak MCP can adopt it without a rewrite.</p>
<p>Anti-lock-in also extends to the sandbox backends themselves. Because local process, Docker, Kubernetes, and worker queue are pluggable, you are not frozen into a single execution model. Switch from local iteration to Docker in production without switching runtimes. This &ldquo;bring your own everything, harness standardizes the shell&rdquo; posture is what makes the runtime attractive to teams that have already invested in models, toolsets, and infrastructure.</p>
<h2 id="sandbase-harness-vs-suna-maka-and-cloud-centric-runtimes">SandBase Harness vs. Suna, Maka, and Cloud-Centric Runtimes</h2>
<p>SandBase does not exist in a vacuum, and the comparison against peers clarifies what is distinctive. Suna is a local-first terminal agent runtime with isolated subtasks and an intent-aware Guard, but it is PolyForm Noncommercial licensed, has roughly 18 stars, does not offer a full OS sandbox, and has limited MCP and vector memory support. Maka-agent is an Apache-2.0 local-first desktop assistant built on a &ldquo;log is the runtime&rdquo; model with durable TaskRuns, but it targets desktop/CLI surfaces rather than a deployment-oriented runtime. OpenClaw uses a two-tier model that restricts host sessions to paired contacts and runs group sessions in Docker — a useful lesson in sandbox boundaries, though its design centers on channels rather than as a general runtime.</p>
<table>
  <thead>
      <tr>
          <th>Capability</th>
          <th>SandBase Harness</th>
          <th>Suna</th>
          <th>Maka-agent</th>
          <th>Cloud VM runtime (e.g., Devin-style)</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>License</td>
          <td>Apache-2.0</td>
          <td>PolyForm Noncommercial</td>
          <td>Apache-2.0</td>
          <td>Proprietary</td>
      </tr>
      <tr>
          <td>Data location</td>
          <td>Your infra</td>
          <td>Your infra</td>
          <td>Your infra</td>
          <td>Vendor cloud</td>
      </tr>
      <tr>
          <td>OS-level sandbox</td>
          <td>Docker/K8s/process/worker</td>
          <td>Partial; no full OS sandbox</td>
          <td>Not full</td>
          <td>Cloud VM</td>
      </tr>
      <tr>
          <td>MCP support</td>
          <td>Yes</td>
          <td>Limited</td>
          <td>Via gateway</td>
          <td>Varies</td>
      </tr>
      <tr>
          <td>Audit/replay</td>
          <td>Resumable SSE</td>
          <td>Limited</td>
          <td>Event-log replay</td>
          <td>Vendor logs</td>
      </tr>
      <tr>
          <td>Deployment targets</td>
          <td>Server/self-host</td>
          <td>Terminal/IDE</td>
          <td>Desktop/CLI</td>
          <td>Cloud</td>
      </tr>
  </tbody>
</table>
<p>The cloud-vs-local-first comparison is the sharpest. As Daniel Vaughan&rsquo;s Codex CLI analysis notes, the architectural choice between a cloud sandbox and local-first execution matters more than benchmark scores for enterprise teams. Local-first yields sub-second feedback-loop latency, keeps source and data inside the perimeter, eliminates per-task cloud billing, and satisfies data residency. Cloud VMs offer convenience and zero internal operations, at the cost of sending code and data to a vendor and accumulating metered spend.</p>
<h2 id="security-and-governance-in-regulated-industries">Security and Governance in Regulated Industries</h2>
<p>For finance, healthcare, and defense, the compliance case for a self-hosted agent runtime is straightforward: data residency mandates simply do not allow session state or audit logs to live in a third-party cloud. By running entirely on-prem or in your own VPC, SandBase agent runtime satisfies those requirements by construction. With 67 percent of enterprises already worried about AI data privacy, and data breaches averaging USD 4.44 million, the cost of a leak can exceed the entire budget of many agent projects.</p>
<p>The security architecture holds up under scrutiny because it layers controls rather than relying on a single mechanism:</p>
<ul>
<li><strong>Sandbox isolation</strong> contains tool execution to a controlled environment.</li>
<li><strong>Credential vault</strong> prevents token leak-by-prompt and scopes secrets per environment.</li>
<li><strong>Permission policies + approval gates</strong> block or require human sign-off on high-risk actions.</li>
<li><strong>Audit trails + SSE replay</strong> provide deterministic reconstruction of any incident.</li>
</ul>
<p>The audit trail doubles as the governance evidence Gartner says agentic projects are missing. With more than 40 percent of agentic AI projects at risk of cancellation by 2027, an operator that can demonstrate control — &ldquo;here is exactly what the agent did, and here is the approval it required&rdquo; — is far less likely to be cancelled on governance grounds. This is a risk-management purchase, not merely a developer convenience.</p>
<p>One caution for regulated rollouts: the audit trail is only as strong as its retention policy. Configure log rotation and off-site backup of the SQLite audit store, and restrict who can mutate it, otherwise the evidence chain weakens.</p>
<h2 id="getting-started-with-sandbase-harness-install--first-session">Getting Started with SandBase Harness (Install + First Session)</h2>
<p>To use the sandbase agent runtime, clone the open-source repository and run it as a DeepSeek Harness plugin bundle over stdio MCP, then launch a sandboxed session with a chosen model and backend. The flow is: configure a model provider (OpenAI, Anthropic, or an OpenAI-compatible endpoint such as DeepSeek V4), define a sandbox backend (local process for a first test), store any credentials you need in the vault, and start a session. Resumable SSE means you can disconnect and reconnect without losing history.</p>
<p>For a first session, the local process backend is the fastest path. Create a small task — for example, &ldquo;summarize these three files into a markdown report&rdquo; — and watch the tool calls and audit events stream back. Once that works, promote the same session to a Docker per-session container to confirm your code runs behind real filesystem isolation before you trust it with anything sensitive. Because the harness speaks MCP, point it at an existing MCP server to exercise tool integration.</p>
<p>The key habit to adopt early is the approval policy. Start strict: require approval for write operations outside a scratch directory. Tighten or relax as you observe what the agent legitimately needs. This gives you visibility into the agent&rsquo;s behavior before you grant it broad rights, and it builds the audit trail you will rely on later.</p>
<h2 id="when-to-choose-a-self-hosted-agent-runtime-and-when-not-to">When to Choose a Self-Hosted Agent Runtime (and When Not To)</h2>
<p>A self-hosted agent runtime is the right call when any of these apply: your data must stay in-house for residency or policy reasons; you need sub-second latency on internal workloads; you want to avoid per-task cloud billing scaling with agent volume; or you must produce deterministic audit evidence. Regulated finance, healthcare, and defense are the clearest fits — they get compliance and governance in one purchase.</p>
<p>Defer a self-hosted runtime when you do not yet have the operational capacity to run container or Kubernetes sandboxes, when your agent usage is exploratory and a hosted provider&rsquo;s convenience outweighs cost, or when you are unwilling to own backup, patching, and retention of the runtime. And note the honest trade-off: local-first keeps data inside but pushes infrastructure and security ops onto you. Sub-second feedback latency and no per-task cloud billing come with the cost of operating the environment yourself.</p>
<p>The market&rsquo;s direction is clear: Gartner expects 40 percent of enterprise applications to embed task-specific AI agents by end of 2026, and 33 percent of enterprise software to include agentic AI by 2028. As agents move from demos to production, the runtimes that succeed will be the ones that give operators persistence, isolation, and audit — exactly what SandBase agent runtime is built to provide.</p>
<h2 id="faq">FAQ</h2>
<h3 id="is-sandbase-agent-runtime-free-to-use">Is SandBase agent runtime free to use?</h3>
<p>Yes. SandBase Harness is open-source under the Apache-2.0 license, so you can use, modify, and self-host it without licensing fees. You still pay for any model API usage and the infrastructure you choose to run it on.</p>
<h3 id="what-is-the-difference-between-a-sandbox-backend-and-a-sandboxed-session">What is the difference between a sandbox backend and a sandboxed session?</h3>
<p>A sandbox backend is the isolation layer — local process, Docker, Kubernetes, or a self-hosted worker queue. A sandboxed session is a single agent run executed inside that isolation layer. Choosing a backend determines how much isolation every session gets.</p>
<h3 id="can-sandbase-agent-runtime-work-with-deepseek-v4">Can SandBase agent runtime work with DeepSeek V4?</h3>
<p>Yes. Because it is model-agnostic and accepts any OpenAI-compatible endpoint, it runs DeepSeek V4 alongside OpenAI, Anthropic, and other compatible models. It also ships as a DeepSeek Harness (DSH) plugin bundle over stdio MCP.</p>
<h3 id="how-does-sandbase-agent-runtime-protect-credentials">How does SandBase agent runtime protect credentials?</h3>
<p>It stores credentials in an encrypted vault tied to environments, so an agent only sees the secrets its current session is permitted to use. This avoids scattering API tokens and limits the blast radius if a session is compromised.</p>
<h3 id="is-sandbase-agent-runtime-suitable-for-regulated-industries">Is SandBase agent runtime suitable for regulated industries?</h3>
<p>Yes, and it is one of its strongest use cases. Because sessions, credential vaults, memory, and audit trails all live in your own infrastructure, finance, healthcare, and defense teams satisfy data-residency mandates by construction rather than by relying on a vendor to keep data in-jurisdiction.</p>
]]></content:encoded></item></channel></rss>