Skip to content
Français

Install Outpost

Prepare the package, agent image and configuration for your first task.

This tutorial uses Codex in Docker to work on a Git repository. Prepare Node.js 24 or later, Git, a repository with at least one commit and a running Docker engine. Keep your scripts in that repository or in a separate directory.

Run these commands in the directory that will hold your scripts. The second command makes it an ESM project so Node.js can run the TypeScript examples directly. For an existing CommonJS project, use a separate script directory with its own package manifest.

npm install @elie-laloum/outpost
npm pkg set type=module

Import execution functions from @elie-laloum/outpost/core, workflow functions from /workflows, and providers from their /providers/* entry. See package entry points to replace root imports in existing scripts.

Write the official Codex image recipe into a dedicated directory, then build it for your user. The first build downloads the Codex CLI and can take several minutes.

npx outpost image eject --image codex --directory images/codex
npx outpost image build --directory images/codex --tag outpost-codex:dev

Wait for the build to succeed. Commit images/codex with your scripts if you want to reuse or customize it. To add project tools, use another agent or Podman, see Agent images.

This configuration uses a Codex account login saved on your machine. Follow Configure Codex before running a task. For API-key access, use Authentication; account and API access have separate billing.

Save outpost.config.ts next to your scripts. Replace the repository path with the absolute path to your checkout. The scripts import these values explicitly; no configuration discovery is required.

import { createAgent, createCodexHarness } from "@elie-laloum/outpost/core";
import { createDockerSandboxProvider } from "@elie-laloum/outpost/providers/docker";

export const coder = createAgent({
  harness: createCodexHarness({ authentication: "account" }),
});
export const sandboxProvider = createDockerSandboxProvider({
  image: "outpost-codex:dev",
});
export const repository = "/absolute/path/to/your-repository";

Save each later code tab using its displayed filename, alongside this configuration unless the page says otherwise. Examples use .ts filenames and imports and run with Node.js 24+, without a compilation step.

Run the local checks before sending a model request:

npx outpost doctor --image outpost-codex:dev

Fix any FAIL using Troubleshoot your setup. doctor checks tools and the image, not your login or model access. You are ready to run your first task or your first YAML recipe.