---
title: "OpenShell: Enforceable boundaries for AI agents"
description: "AI agents can follow unpredictable paths after receiving a goal, making system prompts unreliable for enforcing restrictions. OpenShell is an open source runtime that enforces boundaries outside the model by combining network access controls, file system and process restrictions, provider credential substitution, and visibility through logging. It uses a gateway to manage sandboxes, an agent sandbox for isolation, and a supervisor that evaluates outbound requests against policy. The tutorial demonstrates default-deny network behavior, then selectively allowing read-only access to api.github.com for a specific binary. For coding agents like Claude Code, OpenShell substitutes real credentials only at authorized endpoints, preventing credential leakage even if the agent is compromised."
---

# OpenShell: Enforceable boundaries for AI agents

[Red Hat](https://yomu.fyi/company/red-hat) · Cedric Clyburn · Dec 1, 2026

**Type:** Tutorial

## Summary

AI agents can follow unpredictable paths after receiving a goal, making system prompts unreliable for enforcing restrictions. OpenShell is an open source runtime that enforces boundaries outside the model by combining network access controls, file system and process restrictions, provider credential substitution, and visibility through logging. It uses a gateway to manage sandboxes, an agent sandbox for isolation, and a supervisor that evaluates outbound requests against policy. The tutorial demonstrates default-deny network behavior, then selectively allowing read-only access to api.github.com for a specific binary. For coding agents like Claude Code, OpenShell substitutes real credentials only at authorized endpoints, preventing credential leakage even if the agent is compromised.

## Context

AI agents can follow unpredictable paths of tools and commands after receiving a goal, making it difficult to rely on system prompts alone to prevent malicious or mistaken actions. Existing isolation tools like containers and Kubernetes NetworkPolicy draw boundaries around the whole workload, not what an agent decides to run inside it. OpenShell is an open source runtime that provides enforceable boundaries for AI agents, launched by NVIDIA at GTC in March 2026 with Red Hat as a founding contributor, and later accepted as a CNCF Sandbox project backed by Docker, GitHub, SAP, Google, and Dell.

## Approach / What changed

OpenShell enforces boundaries outside the model by combining network access controls (default-deny with policy grants scoped to executable, destination, and HTTP method), file system and process restrictions via OS-level sandboxing, provider credential substitution (opaque placeholder swapped for real credentials only at authorized endpoints), and visibility through logging of denied requests.

## Takeaways

- OpenShell enforces network access with default-deny; policies can be scoped to a specific executable, destination, and HTTP method, and take effect without restarting the sandbox.
- Provider credentials are replaced with opaque placeholders inside the sandbox; the supervisor substitutes the real credential only when the request reaches an authorized endpoint.
- OpenShell logs all denied requests, providing visibility into what the agent attempted rather than relying on the agent’s own account of its actions.

## FAQ

### What are the main components of OpenShell?

OpenShell uses a gateway to manage sandboxes and distribute configuration, an agent sandbox that isolates the workload with file system and process controls, and a supervisor on the trusted side that evaluates outbound requests against policy. Approved connections proceed; denied requests are logged.

### Can OpenShell enforce read-only vs. write access per endpoint?

OpenShell can enforce which HTTP operations a process may perform at a destination. In the tutorial, a GET to api.github.com succeeds after policy update, but a POST to the same endpoint is denied because the policy only grants read-only access.

### How does OpenShell protect provider credentials from being leaked?

The agent only ever sees an opaque placeholder for the credential. The supervisor swaps in the real API key only when the request reaches an authorized endpoint like api.anthropic.com, so even if the agent is tricked into sending the key elsewhere, it has nothing useful to give away.

**Tags:** [AI Agents](https://yomu.fyi/topic/ai-agents), [NVIDIA](https://yomu.fyi/topic/nvidia), [Open Source](https://yomu.fyi/topic/open-source), [Sandboxing](https://yomu.fyi/topic/sandboxing), [Security](https://yomu.fyi/topic/security)

- Source: [Red Hat](https://developers.redhat.com/articles/2026/12/01/openshell-enforceable-boundaries-ai-agents)
- Source URL: https://developers.redhat.com/articles/2026/12/01/openshell-enforceable-boundaries-ai-agents
- Ingested by Yomu: 2026-12-01T15:00:14.506Z

[Read original post](https://developers.redhat.com/articles/2026/12/01/openshell-enforceable-boundaries-ai-agents)
