# openshell (ai-openshell/openshell)

> OpenShell is an open-source runtime for running autonomous AI agents inside isolated sandboxes. Declarative YAML policies protect your files, credentials, and infrastructure from unauthorized access and data exfiltration.

- GitHub: https://github.com/ai-openshell/openshell
- GitHub.Locker page: https://github.locker/ai-openshell/openshell
- Stars: 22K
- Language: Rust
- License: Apache-2.0
- Last push: 2026-11-29

## Questions and answers

Written by GitHub.Locker from the README and the repository; check the README below for details.

**Is this something I install on my own machine, or a hosted service I sign into?**

It is a local CLI ('openshell') plus a gateway control plane that manages sandbox lifecycle through compute drivers: Docker, Podman, MicroVM, and Kubernetes. Each sandbox is an isolated container with policy-enforced egress routing.

**How do I install it and start my first sandbox?**

Run the installer — it installs the latest stable release by default (a dev release tracks main). Then create your first sandbox with 'openshell sandbox create', which can launch an agent right away.

**Do I need Docker or Podman installed beforehand?**

Yes — you need a local runtime: Docker, Podman, or host virtualization enabled for MicroVM-backed sandboxes. Note that the 'openshell' package on PyPI ships only the Python SDK, not the CLI.

**Is the Kubernetes deployment path stable enough for production?**

Not yet — deploying the gateway via the Helm chart is experimental, under active development, and expects rough edges and breaking changes.

**Does it work on Windows, or is it Linux and Mac only?**

Supported hosts are Linux, macOS (Apple Silicon), and Windows with WSL 2 — the Windows path is marked experimental. Sandboxes themselves run on Docker, Podman, MicroVM, or Kubernetes.

**How does it keep my API keys away from the agent?**

Keys are managed as providers — named credential bundles injected into sandboxes only as runtime environment variables, never written to the sandbox filesystem. The CLI auto-discovers credentials for Claude, Codex, OpenCode, and Copilot from your shell.

**Which AI agents can run inside a sandbox?**

Claude Code, OpenCode, Codex, and GitHub Copilot CLI work out of the box with auto-discovered credentials. OpenClaw and Hermes Agent run via the NemoClaw blueprint, and community sandboxes like Ollama or Pi launch with 'openshell sandbox create --from ollama'.

**Can a sandbox use my GPU for local inference?**

Yes, but it is experimental: add --gpu when creating a sandbox. The host needs NVIDIA drivers and the NVIDIA Container Toolkit, and since the default base image lacks GPU libraries, most workloads need a custom BYOC sandbox image.

**Is there a dashboard to watch my sandboxes live?**

Yes — 'openshell term' opens a real-time terminal UI inspired by k9s with live views of gateways, sandboxes, and providers. Tab switches panels, j/k moves through lists, and health and status auto-refresh every two seconds.

**What tools come preinstalled in a sandbox?**

Agent CLIs (claude, opencode, codex, copilot), Python 3.14 and Node 22, developer tools like gh, git, vim, and nano, plus networking utilities. You can also start from a community catalog image or your own via --from.

