Skip to content
Français

Run on your machine

Run the installed agent CLI directly on the host with the local provider.

Install the agent CLI and project tools on your machine. Make the CLI available on PATH, then sign in or configure its API access. The local provider uses these host tools directly; it does not use an image.

Create the provider with createLocalSandboxProvider() and pass it to dispatch(), like any other sandbox provider.

import { dispatch } from "@elie-laloum/outpost/core";
import { createLocalSandboxProvider } from "@elie-laloum/outpost/providers/local";
import { coder, repository } from "./outpost.config.ts";

const result = await dispatch({
  repository,
  sandboxProvider: createLocalSandboxProvider(),
  agent: coder,
  branch: { mode: "named", name: "outpost/host-fix" },
  brief: { text: "Fix the failing unit test and commit the fix." },
});
console.log(result.commits);
// Example output: [ { oid: '8f3a21c…', subject: 'Fix the failing test' } ]

The agent runs your installed CLI in a worktree of outpost/host-fix. variables adds environment variables on top of your process environment.

AspectDocker and PodmanHost execution
IsolationContainer with reduced privilegesNone
Agent CLI and toolsFrom the agent imageInstalled by you; Outpost installs nothing
EnvironmentDeclared variables onlyYour process environment plus declared variables
Account authenticationHost sign-in copied into the sandboxThe CLI’s own sign-in; Outpost passes variables only, no credential files
Agent homePrivate and ephemeralYour own home directory
Native conversationsCaptured from the sandbox homeKept in your CLI’s own stores
Interactive attach()SupportedSupported
Outbound rules (egress)deny-allUnsupported

The agent works in the directory set by your branch policy. Without branch, that is your checkout as it is; with named or integrate, a worktree under .outpost/workspaces/.

Workflows, conversations and sandbox sessions work unchanged.

Local, Docker and Podman transfers use the same path rules: a relative upload destination or download source resolves against the sandbox root. Host-side paths resolve against the caller’s working directory. An existing destination directory receives the source under its basename; use source/. to copy a directory’s contents directly into it. A missing destination becomes the copied file or directory itself.

Files retain binary content and permissions, and source symlinks remain links. Local transfers and container downloads refuse destination paths that traverse symlinks. Local transfers also honor signal and deadlineMs. The local provider remains unisolated; these checks do not confine host access to the workspace.

  • Passing egress throws: use a container or a cloud sandbox for network restrictions.
  • MCP servers declared for Kimi Code or Antigravity are merged into ~/.kimi-code/mcp.json or ~/.gemini/config/mcp_config.json in your home, and stay there after the run.
  • { account: { file } } is ignored: the CLI uses the sign-in stored in your home.

API: createLocalSandboxProvider · LocalOptions.