@useatlas/nsjail
v0.0.5
Published
Atlas nsjail sandbox plugin
Maintainers
Readme
@useatlas/nsjail
Linux namespace isolation via nsjail for the explore tool. No network, read-only filesystem, runs as nobody.
Install
bun add @useatlas/nsjailRequires nsjail on PATH or configured via nsjailPath.
Usage
import { defineConfig } from "@atlas/api/lib/config";
import { nsjailSandboxPlugin } from "@useatlas/nsjail";
export default defineConfig({
plugins: [nsjailSandboxPlugin({ timeLimitSec: 15, memoryLimitMb: 512 })],
});Config
| Field | Type | Default | Description |
|-------|------|---------|-------------|
| nsjailPath | string? | auto-detect | Explicit path to nsjail binary |
| timeLimitSec | number | 10 | Per-command time limit in seconds |
| memoryLimitMb | number | 256 | Per-command memory limit in MB |
