Install Outpost
Prepare the package, agent image and configuration for your first task.
Before you start
Section titled “Before you start”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.
Install the package
Section titled “Install the package”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.
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.
Build the agent image
Section titled “Build the agent image”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.
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.
Prepare access to the agent
Section titled “Prepare access to the agent”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 your configuration
Section titled “Save your configuration”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.
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.
Check the image
Section titled “Check the image”Run the local checks before sending a model request:
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.

