NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

Review blocked network requests from the NemoClaw CLI

Open PicoNVIDIA opened this issue 2 months ago • 1 comments

Problem Statement

When OpenShell blocks a sandbox's network request, it saves the destination as a pending rule for someone to approve or reject. Right now the only way to see those is openshell term, a full-screen UI. You can't script it, it doesn't work well over a plain SSH session, and our approve-network-requests docs have to send people to a different tool for this one step.

Desired Behavior

You can list, approve, and reject blocked requests with nemoclaw <name> policy ....

For example, the agent in my-assistant can't reach api.example.com. You run nemoclaw my-assistant policy requests, see the destination and which program asked for it, and run nemoclaw my-assistant policy approve <id>. The agent's next try goes through.

Scope and Exclusions

Three commands:

  • policy requests (with --json)
  • policy approve <id>, which asks for confirmation (--yes skips it)
  • policy reject <id> --reason <text>

They use the OpenShell SDK's existing draft policy calls, so OpenShell still makes the decision and enforces it.

Not included: bulk approval, editing a rule before approving it, and chat notifications. Approval only happens on the host, so nothing inside the sandbox can approve its own traffic.

Ongoing Ownership

I'll maintain it (@PicoNVIDIA). It's a thin layer over OpenShell's API, so most future changes should come from SDK updates.

Placement and Support Expectations

Core NemoClaw, alongside the other policy commands, with the same support as policy get and policy add.

Validation Plan

Unit tests with a fake SDK, plus a live run on a real sandbox: block a request, list it, approve it, retry it, then reject another one. Docs updates to the command reference and the approve-network-requests page.

Compatibility Requirements

OpenShell 0.0.116 (the current pin). I tested it live on Linux with the Docker driver and an OpenClaw sandbox. It doesn't touch the agent runtime, so other agents should work too, but I haven't run them.

Security or Privacy Impact

This makes it easier to open up a sandbox's network access, so approval needs a yes at the prompt, or --yes when there's no terminal. The approval carries OpenShell's review token, so if the rule changed after you looked at it, OpenShell refuses. Requests that OpenShell says it can't apply are refused too. Text from OpenShell is escaped before it's printed.

Implementation Idea

I have a working branch and will link the draft PR here.

PicoNVIDIA avatar Sep 29 '26 19:09 PicoNVIDIA

Draft PR: #12500

PicoNVIDIA avatar Sep 29 '26 20:09 PicoNVIDIA