Documentation Index
Fetch the complete documentation index at: https://mintlify.com/NVIDIA/OpenShell/llms.txt
Use this file to discover all available pages before exploring further.
Policy schema reference
Complete field reference for the sandbox policy YAML. Each field is documented with its type, whether it is required, and whether it is static (locked at sandbox creation) or dynamic (hot-reloadable on a running sandbox).Top-level structure
A policy YAML file contains the following top-level fields:| Field | Type | Required | Category | Description |
|---|---|---|---|---|
version | integer | Yes | — | Policy schema version. Must be 1. |
filesystem_policy | object | No | Static | Controls which directories the agent can read and write. |
landlock | object | No | Static | Configures Landlock LSM enforcement behavior. |
process | object | No | Static | Sets the user and group the agent process runs as. |
network_policies | map | No | Dynamic | Declares which binaries can reach which network endpoints. |
openshell policy set and take effect without restarting.
version
Schema version number. Currently must be
1.filesystem_policy
Category: Static
Controls filesystem access inside the sandbox. Paths not listed in either read_only or read_write are inaccessible.
When
true, automatically adds the agent’s working directory to read_write.Paths the agent can read but not modify. Typically system directories like
/usr, /lib, /etc.Paths the agent can read and write. Typically
/sandbox (working directory) and /tmp.Validation constraints
- Every path must be absolute (start with
/). - Paths must not contain
..traversal components. The server normalizes paths before storage but rejects policies where traversal would escape the intended scope. - Read-write paths must not be overly broad —
/alone is rejected. - Each individual path must not exceed 4096 characters.
- The combined total of
read_onlyandread_writepaths must not exceed 256.
landlock
Category: Static
Configures Landlock LSM enforcement at the kernel level. Landlock provides mandatory filesystem access control below what UNIX permissions allow.
How OpenShell handles kernel ABI differences.
| Value | Behavior |
|---|---|
best_effort | Uses the highest Landlock ABI the host kernel supports. |
hard_requirement | Fails sandbox creation if the required ABI is unavailable. |
process
Category: Static
Sets the OS-level identity for the agent process inside the sandbox.
The user name or UID the agent process runs as.
The group name or GID the agent process runs as.
network_policies
Category: Dynamic
A map of named network policy entries. Each entry declares a set of endpoints and a set of binaries. Only the listed binaries are permitted to connect to the listed endpoints. The map key is a logical identifier; the name field inside the entry is the display name used in logs.
Network policy entry
Display name for the policy entry. Used in log output. Defaults to the map key.
Hosts and ports this entry permits.
Executables allowed to connect to the associated endpoints.
Complete example
The following policy grants read-only GitHub API access and npm registry access:Default policy
The built-in policy applied when no custom policy is provided.
Gateway authentication
How the CLI resolves and authenticates with a gateway.