landstrip

August 23, 2026 ยท View on GitHub

landstrip runs commands in an OS-level sandbox using Landlock on Linux, Seatbelt on macOS, and AppContainer or restricted users on Windows.

Install

npm install --save-dev @landstrip/landstrip-api
npx landstrip run -p policy.json -- cargo test

The npm package installs a Node.js wrapper and a native binary for the current platform.

Usage

landstrip run -p policy.json -- cargo test
landstrip policy validate -p policy.json
landstrip policy resolve -p policy.json
landstrip doctor

Run landstrip --help or see landstrip(1) for the full command reference.

Agent extensions

IntegrationPackageDocumentation
OpenCodeopencode-landstripOpenCode
Pipi-landstripPi

Policy

{
  "filesystem": {
    "allowWrite": ["."],
    "denyWrite": ["**/.env", "**/*.pem"],
    "denyRead": ["~/.ssh"],
    "allowRead": ["~/.ssh/config"]
  },
  "network": {
    "allowNetwork": false,
    "allowLocalBinding": false
  }
}

Pass policies with -p, --policy <FILE>. Later policies merge over earlier ones. Platform behavior and limits are documented in the manual.

Development

make ci

Licensing

PackageLicense
landstripLGPL 2.1+
@landstrip/landstrip-apiApache 2.0
opencode-landstripApache 2.0
pi-landstripApache 2.0