Network Policies#
NemoClaw runs with a strict-by-default network policy. The sandbox can only reach endpoints that are explicitly allowed. Any request to an unlisted destination is intercepted by OpenShell, and the operator is prompted to approve or deny it in real time through the TUI.
Baseline Policy#
The baseline policy is defined in nemoclaw-blueprint/policies/openclaw-sandbox.yaml.
Filesystem#
Path |
Access |
|---|---|
|
Read-write |
|
Read-only |
The sandbox process runs as a dedicated sandbox user and group.
Landlock LSM enforcement applies on a best-effort basis.
Network Policies#
The following endpoint groups are allowed by default:
Policy |
Endpoints |
Binaries |
Rules |
|---|---|---|---|
|
|
|
All methods |
|
|
|
All methods |
|
|
|
All methods, all paths |
|
|
|
GET, POST, PATCH, PUT, DELETE |
|
|
|
GET, POST |
|
|
|
GET, POST |
|
|
|
GET only |
|
|
|
GET only |
|
|
Any binary |
GET, POST on |
All endpoints use TLS termination and are enforced at port 443.
Inference#
The baseline policy allows only the local inference route. External inference
providers are reached through the OpenShell gateway, not by direct sandbox egress.
Operator Approval Flow#
When the agent attempts to reach an endpoint not listed in the policy, OpenShell intercepts the request and presents it in the TUI for operator review:
The agent makes a network request to an unlisted host.
OpenShell blocks the connection and logs the attempt.
The TUI command
openshell termdisplays the blocked request with host, port, and requesting binary.The operator approves or denies the request.
If approved, the endpoint is added to the running policy for the session.
To try this, run the walkthrough:
$ ./scripts/walkthrough.sh
This opens a split tmux session with the TUI on the left and the agent on the right.
Modifying the Policy#
Static Changes#
Edit nemoclaw-blueprint/policies/openclaw-sandbox.yaml and re-run setup:
$ nemoclaw setup
Dynamic Changes#
Apply policy updates to a running sandbox without restarting:
$ openshell policy set <policy-file>