Skip to content
Français

Run in the cloud

Configure Vercel or Daytona and synchronize the agent’s work with your repository.

Install the SDK for the cloud provider you want to use alongside Outpost. The sandbox runs remotely, so your machine does not need Docker or Podman.

npm install @vercel/sandbox   # Vercel
npm install @daytona/sdk      # Daytona

The host needs allocation credentials to create sandboxes. They stay on the host and are separate from the agent’s credentials, which Outpost installs in the sandbox’s private home.

ProviderAllocation credentials on the host
VercelVERCEL_OIDC_TOKEN (from npx vercel env pull), or token, teamId and projectId in create
DaytonaDAYTONA_API_KEY, or apiKey in connection

The sandbox image needs sh and git to synchronize the repository, and node to stream input to the agent.

Vercel stops a sandbox after create.timeout milliseconds: set it longer than your task.

import { createVercelSandboxProvider } from "@elie-laloum/outpost/providers/vercel";

export const sandboxProvider = createVercelSandboxProvider({
  repositoryMode: "isolated",
  create: { runtime: "node24", timeout: 30 * 60_000 },
});

Create a Daytona provider with a Node.js 24 image. Use this sandboxProvider in your configuration or pass it directly to the task, as shown below.

import { createDaytonaSandboxProvider } from "@elie-laloum/outpost/providers/daytona";

export const sandboxProvider = createDaytonaSandboxProvider({
  repositoryMode: "isolated",
  connection: { apiKey: process.env.DAYTONA_API_KEY ?? "" },
  create: { image: "node:24" },
});

API reference: DaytonaOptions.

API: createDaytonaSandboxProvider · DaytonaOptions.

Configure caches: [{ name: "npm", key: "app-node24", transport: s3 }] to restore package downloads before preparation and save them before sandbox disposal. See cloud dependency caches for S3 setup, compatibility, concurrent runs and retention.

VercelDaytona
attach()No: interactive terminals are rejectedYes, through Daytona’s PTY API
Live inputEach instruction is appended to a file in the sandboxSame
Egress rulesNative firewall: domains, CIDRs allowed and deniedConfirmed by Daytona: domains or IPv4 CIDRs
BillingUntil Outpost stops the sandboxUntil Outpost deletes the sandbox

Live input costs one provider command per instruction: a wrapper started with the agent reads the file and feeds its standard input.

Pass the provider to dispatch() or createSandbox() as with any sandbox.

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

const result = await dispatch({
  agent: coder,
  repository,
  sandboxProvider: createDaytonaSandboxProvider({
    create: { image: "node:24" },
  }),
  hooks: { sandboxReady: [{ executable: "npm", arguments: ["ci"] }] },
  brief: {
    text: "Fix the failing test in src/date.test.ts and commit the fix.",
  },
});
console.log(result.branch, result.commits.length);
// Example output: outpost/job-… 1

Before the first turn, Outpost installs the agent’s CLI at its pinned version if the image lacks it, on every remote sandbox. Set bootstrap: false when the image must provide it. The sandboxReady hook then installs the project’s dependencies (Prepare the environment).

dispatch() releases the sandbox when it returns. Close a sandbox from createSandbox() in finally, or with await using: the provider bills it until then.

Copy and ephemeral file workspaces use the existing streamed transfer ports. Vercel and Daytona refuse source mounts. Normal settled disposal can precede portable restoration; snapshots do not establish disposal of an unknown allocation after a crash. File-mode cloud live validation remains pending. See file provider capabilities.

  • All refs upload: The history bundle holds every branch and tag of the repository, not only the work branch.
  • Command deadline: sandbox.command() without deadlineMs stops after 10 minutes. Agent turns follow their own limits.
  • Output tail: A command result keeps the last 64 KiB of each stream. retain on the provider changes it.
  • Bootstrap: Installing the CLI needs npm (or curl for Antigravity) and network access in the sandbox. With a fallback agent, each candidate is prepared when selected, unless bootstrap is disabled.
  • Unplanned exits: Outpost releases sandboxes on SIGINT and SIGTERM. A killed process leaves the sandbox running until the provider’s own timeout.

Implementing another remote provider: Add a sandbox provider.

API: SandboxOptions · EgressPolicy.

Daytona’s create.autoStopInterval is measured in minutes; 0 disables auto-stop. The SDK documents 15 minutes by default, with different auto-pause defaults for sandbox classes that support pausing. Set the policy explicitly for long tasks; Outpost command deadlines do not override service auto-stop. Elevated command cancellation uses the same privilege as execution. These SDK paths have offline regression coverage; validating descendant termination against a live cloud sandbox remains a separate check.