PUREFECT
Purefect Labs
Open-source projects 2026-10-28 Apache-2.0

Purefect SandLane

An open-source, self-hosted, headless Agent CLI execution plane for enterprise digital employees and multi-tenant control planes.

Agent CLISelf-hostedMulti-tenantMCP
Control Plane

Enterprise control plane

Purefect or your platform

Run capability

SandLane execution plane

Run, gateway, sandbox, lifecycle

Model

MCP/API

Models and enterprise tools

このコンテンツは現在英語で提供されています。

Turn Agent CLIs into governed enterprise execution

Agent CLIs such as Codex, Claude Code, Qwen Code, and OpenCode began as local interactive tools. When they move into a digital employee, enterprise AI workspace, or SaaS product, the platform must answer a different set of questions: who initiated the task, which identity it runs as, which models and tools it may use, how credentials remain protected, when execution must stop, and how resources are reclaimed.

SandLane represents this work as a governed Run. It claims work from an enterprise control plane, drives an Agent CLI in an ephemeral sandbox, and synchronizes events, usage, and results back to the control plane. The upper layer retains identity, business authorization, queues, audit policy, and user experience; SandLane stays focused on execution.

Purefect Digital Employee runs governed execution on SandLane

Purefect defines the digital employee's role, organization, memory, workflow, business permissions, and human collaboration rules. SandLane receives each concrete task, runs the Agent CLI in an isolated sandbox, and grants access to models, files, and approved enterprise tools according to the current Run.

This provides a real product validation path for the open-source project. SandLane is a foundational component of Purefect's digital employee execution system, while remaining independent of the Purefect control plane. Other platforms can integrate through its public control-plane contracts.

Capabilities that matter to enterprise adoption

Long-lived credentials stay outside the Agent sandbox

Model API keys and user tokens remain in the trusted Worker. A sandbox receives only short-lived capabilities scoped to the current Run, purpose, and lease. Completion, cancellation, or lease loss revokes those capabilities.

One execution layer connects multiple Agent CLIs and models

SandLane understands Agent CLI startup, native streaming events, tool activity, cancellation, and usage. It includes Codex, Claude Code, Qwen Code, and OpenCode, giving the control plane a consistent, governed Run instead of four remote processes it must manage separately.

Qwen Code (Apache-2.0) and OpenCode (MIT) provide two openly buildable CLI paths, and both can be built as SandLane CLI images. They are execution options within SandLane, not a change to its role as a headless harness for enterprise digital employees and multi-tenant control planes.

The CLI and model service are configured independently. Codex, Qwen Code, and OpenCode use the Responses path; Claude Code uses the Anthropic Messages path. Enterprises can select protocol-compatible services such as DeepSeek without binding a CLI to one model brand. DeepSeek deepseek-flash has completed real text and MCP tool-call validation across all four built-in CLIs. This evidence covers short tasks on pinned versions, not every model capability, long-term stability, or production acceptance.

SandLane accepts model upstreams and short-lived capabilities per Run, so it can carry tenant-level or user-level model credentials. The upper control plane still decides the configuration granularity and owns credential storage and selection.

Enterprise tools use a governed channel

HTTP MCP, stdio MCP, and existing ToolProvider integrations are invoked through a trusted tool gateway. Tool identity comes from the Run, business systems continue to enforce their own permissions, and long-lived business tokens do not need to enter the CLI container.

No arbitrary sandbox internet access by default

In the built-in isolated topology, model calls, tool calls, and policy-constrained hosted search follow explicit paths. This makes data movement, revocation, and audit responsibility easier to reason about than placing keys in a container with general internet access.

Headless, self-hosted, and composable

SandLane does not require a new portal, IAM, business database, or workflow product. Web, mobile, IM, ticketing, and automation systems can remain the upper entry point, while deployment fits the enterprise's own network, secret, image, and operations practices.

“Lightweight” describes a focused responsibility boundary and a progressive integration path. It does not imply a production deployment without Worker, Broker, Relay, Docker, TLS, or secret-management components.

Extend the execution boundary without binding to one implementation

HarnessDriver extends SandLane to additional Agent CLIs. Services compatible with Responses or Anthropic Messages can be configured by protocol, while ModelUpstreamFactory handles other authentication schemes or native protocols. HTTP MCP, stdio MCP, and ToolProvider connect enterprise systems; SandboxProvider can add dedicated nodes, VMs, or stronger isolation environments. Each addition still requires implementation, pinned images or configuration, and target-environment validation.

Where it fits

  • Digital employee execution: the upper platform defines roles and workflows; SandLane executes each task within a governed boundary.
  • Multi-user AI workspaces: users receive isolated Runs with their approved models, files, and enterprise tools.
  • Embedded SaaS agents: a SaaS provider keeps its tenant, user, and billing systems while delegating Agent execution.
  • Private business tool access: MCP or ToolProvider integrations connect CRM, ERP, knowledge, ticketing, and internal APIs.
  • Controlled file processing: the Worker stages files into the isolated workspace and collects bounded outputs after the CLI stops.

Fit it into existing enterprise architecture

SandLane is an execution plane. Existing control planes continue to own IAM, tenancy, business authorization, durable queues, approvals, billing, and audit policy. An adopter implements a control-plane adapter and configures model upstreams, tool providers, secret management, and deployment topology for the target environment.

Teams can begin with Docker and the credential-free demo, then progressively connect real models, MCP tools, and an enterprise control plane. Production use requires validation on the target Linux environment, network, CLI versions, and failure paths.

Lowest-cost evaluation path

With Node.js and Docker installed, run the following command in the repository:

npm ci && npm run demo

The demo requires no model API key and automatically cleans up its complete execution path. It is intended to make the Broker, Relay, TLS gateways, model stream, and MCP tool flow directly inspectable before connecting a real model or control plane.

Governed CLI upgrades

SandLane pins CLI images by version and digest, preventing upstream automatic upgrades from entering the runtime unchecked. A new version goes through protocol fixtures, real CLI execution, target-model validation, and critical tool-path testing before release, keeping upgrade risk within an explicit acceptance process.

Current boundaries

  • The built-in sandbox is an ephemeral Docker container; a container is not a microVM security boundary.
  • Codex, Claude Code, Qwen Code, and OpenCode are included today; other CLIs require a HarnessDriver, a pinned image, and protocol validation.
  • The initial Qwen Code and OpenCode integrations expose only MCP tools authorized for the current Run, not built-in shell, file, or web tools.
  • DeepSeek has completed real text and short MCP-task validation across all four built-in CLIs; other model services require protocol and environment-specific acceptance.
  • SandLane does not provide an end-user portal, a complete workflow product, persistent desktops, browser automation, or a managed cloud.
  • Stronger isolation can be integrated through SandboxProvider, but VM and microVM backends are not included in the repository today.

Clear boundaries are part of enterprise adoption. SandLane provides an inspectable open-source execution layer, while each production architecture must still be validated against the organization's identity, network, security, and availability requirements.