---
title: "OpenShell: Enforceable boundaries for AI agents"
description: "OpenShell is an open source runtime (CNCF Sandbox, launched by NVIDIA with Red Hat as a founding contributor) that enforces AI agent boundaries outside the model rather than through system prompts."
url: "https://swe.quest/articles/openshell-enforceable-boundaries-for-ai-agents-dc80514dfdf68aa4"
canonical: "https://developers.redhat.com/articles/2026/12/01/openshell-enforceable-boundaries-ai-agents"
source: "Red Hat Developer"
published: "2026-12-01"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["sandboxing","ai-agents","containers","security"]
---

# OpenShell: Enforceable boundaries for AI agents

A post on [Red Hat Developer](https://swe.quest/sources/red-hat-developers.md), published 2026-12-01, 7 min read, How-to. Original: [https://developers.redhat.com/articles/2026/12/01/openshell-enforceable-boundaries-ai-agents](https://developers.redhat.com/articles/2026/12/01/openshell-enforceable-boundaries-ai-agents)

## Summary

OpenShell is an open source runtime (CNCF Sandbox, launched by NVIDIA with Red Hat as a founding contributor) that enforces AI agent boundaries outside the model rather than through system prompts. A gateway distributes policy, and a supervisor on the trusted side of the sandbox applies it. Network access is default-deny and can be scoped per executable, destination and HTTP method, and the sandbox also restricts file system and process access. A walkthrough shows a curl request being denied and logged, then a read-only GitHub API rule being hot-applied so GET succeeds and POST is blocked. Running Claude Code in a UBI-based sandbox shows the agent only sees a placeholder API key, which the supervisor swaps for the real credential on requests to the authorized endpoint.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- Containers and Podman/Docker ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- AI coding agents ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))
- HTTP basics

## Keywords

OpenShell, Claude Code, Red Hat Universal Base Image, CNCF, Podman, NVIDIA, Kata Containers

## Related posts

- [Prove your AI agent guardrails work](https://swe.quest/articles/prove-your-ai-agent-guardrails-work-2a4587e8e9b27383.md): Docker · 2026-11-25 · Medium · 16 min read · Sandboxing & isolation, AI agents, Security, Identity & auth, AI for coding
  Coding agents with broad access can leak credentials or delete files, as two reported July 2026 incidents show: Grok Build CLI silently uploaded whole repositories, including ignored files and planted secrets, to cloud storage, and a Full Access agent deleted a user's home directory after alternatives to blocked rm succeeded.
- [Making Claude Code safer with sandboxing](https://swe.quest/articles/making-claude-code-safer-with-sandboxing-927e34fb9dfe9ca9.md): Anthropic Engineering · 2025-10-20 · Medium · 5 min read · Sandboxing & isolation, AI agents, AI for coding, Security
  Claude Code now sandboxes its bash tool using OS-level primitives (Linux bubblewrap, macOS seatbelt) to enforce filesystem isolation (writes limited to the working directory) and network isolation (traffic forced through a Unix domain socket to an external proxy that allowlists domains), covering all spawned subprocesses.
- [How we contain Claude across products](https://swe.quest/articles/how-we-contain-claude-across-products-b42a3aa0de1e1d62.md): Anthropic Engineering · 2026-05-25 · Medium · 19 min read · Sandboxing & isolation, AI agents, Security, Virtualization, AI safety
  Anthropic caps the blast radius of Claude agents mainly through containment (sandboxes, VMs, egress controls) rather than human approval, after telemetry showed users approved about 93% of permission prompts. claude.ai runs code in ephemeral gVisor containers, Claude Code combines human approval with an OS-level sandbox (Seatbelt/bubblewrap) that cut prompts by 84%, and Cowork runs inside a full local VM with credentials kept on the host.
- [Running Codex safely at OpenAI](https://swe.quest/articles/running-codex-safely-at-openai-ba7fb69d40cdeaed.md): OpenAI · 2026-05-08 · Medium · 5 min read · AI agents, Sandboxing & isolation, AI for coding, Configuration management, Observability
  OpenAI runs Codex internally inside a bounded environment. A sandbox limits where it can write and whether it can reach the network, approval policies make higher-risk actions stop for review, and an auto-review subagent approves routine low-risk requests so users are not constantly interrupted.
- [How to Choose the Right Sandbox for AI Agents](https://swe.quest/articles/how-to-choose-the-right-sandbox-for-ai-agents-9eb1c4b875269506.md): LangChain · 2026-11-18 · Easy · 7 min read · Sandboxing & isolation, AI agents, Security, Virtualization
  Agents that write and run code face prompt injection risk, and Willison's "lethal trifecta" (sensitive data, untrusted content, external communication) and Meta's "Agents Rule of Two" frame when autonomy becomes dangerous.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
