Matthew Grossman 6a8afe9de1 test(e2e): port corporate-proxy tests from e2e/rust to features/corporate-proxy (#5786)
* test(tmachine): add a corporate-proxy environment with a TLS-intercepting proxy

Run one corporate proxy in the guest that serves TLS, requires Basic auth and
intercepts the TLS in every tunnel with its own CA. It merges the three
fixture proxies from the legacy corporate-proxy tests into one asyncio
service, since TLS inside the listener's TLS needs asyncio's start_tls.

Point the gateway's driver at it through the gateway_overrides role, with a
port-qualified no_proxy entry, and publish
OPENSHELL_TEST_CORPORATE_PROXY_{URL,CA_CERT,BYPASS_PORT,LOG}.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(support): add a corporate-proxy fixture that reads the proxy's CONNECT log

Read OPENSHELL_TEST_CORPORATE_PROXY_* and parse the proxy's JSON-lines log
from a cursor, so a test sees only the CONNECTs its own sandbox made.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(support): check whether a named Podman secret exists

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): port the corporate-proxy e2e tests to testkit

Check sandbox egress through the environment's corporate proxy: approved
requests are proxied with credentials and a validated IP target, denied ones
never reach the proxy, the no_proxy port is dialed direct, and on Podman the
per-sandbox credentials secret goes away with the sandbox. A second test
checks that the supervisor and the workload both trust the intercepting
proxy's CA.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(e2e): run the corporate-proxy suite on Docker and Podman environments

Add features/corporate-proxy rows for the rootful Docker and the rootful and
rootless Podman corporate-proxy environments, and list the environment's
OPENSHELL_TEST_CORPORATE_PROXY_* variables in the contract table.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(e2e): remove the legacy Docker and Podman corporate-proxy tests

features/corporate-proxy replaces them. Their TOML-editing helper test
checked only the file's own helper, so it goes with the file.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* ci(e2e): drop the rootless Podman corporate-proxy row

Sandbox creation fails there because Podman can't relabel the root-owned
proxy CA bind mount. Tracked in #5795.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(features): run the corporate-proxy suite with testkit's own harness

Declare the test target with harness = false and call testkit::main, as
every feature package does since #5789, and point the new crates at the
ai-openshell repository.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* ci(e2e): run corporate-proxy on rootless Podman and skip its known failures

Add the fedora-podman-rootless-corporate-proxy row back and list both tests
as unsupported there until #5795 is fixed.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

---------

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
2026-12-01 16:38:35 +00:00

OpenShell

License PyPI Security Policy Documentation

Note

OpenShell is now part of the CNCF! Development has moved to ai-openshell/openshell. Use this repository for code, issues, and pull requests.

Important

New in OpenShell 0.1.x: a stable release cadence, new isolation primitives, an expanded extension surface, and new APIs. Read the 0.1.0 upgrade guide.

OpenShell is the safe, private runtime for fleets of autonomous AI agents. Agents are most useful when they can read files, install packages, call APIs, and use credentials. OpenShell gives them that capability without giving them unrestricted access to your data, secrets, or network. You declare what each agent can touch in a policy, and OpenShell enforces it.

How It Works

OpenShell governs what agents can do in two ways: it instruments the kernel to enforce policy on every file access, system call, and network connection at runtime, and it uses formal verification to check what a policy change would allow before it is applied.

  • Kernel-level enforcement. Each agent runs in an isolated sandbox. Kernel controls confine which files it can access and which system calls it can make, and every network connection passes through a policy check before it leaves the sandbox. Agents never see real credentials; OpenShell adds them only to requests bound for approved endpoints.
  • Formally verified policy changes. Before a policy change is approved, OpenShell uses formal verification to flag risky new access it would grant, such as reaching a new host with credentials or calling a new API method, so those changes wait for human review.

See Architecture for how the gateway, supervisor, and sandbox fit together.

Quickstart

You need Linux, macOS on Apple Silicon, or Windows with WSL 2 (experimental), plus Docker, Podman, or host virtualization. See the Support Matrix for details.

curl -LsSf https://raw.githubusercontent.com/ai-openshell/openshell/main/install.sh | sh
openshell sandbox create --name demo

The installer sets up the CLI and a local gateway. The default sandbox image is minimal Ubuntu with no agent installed. To run a real agent, follow Run Your First Agent: it runs OpenCode against a free OpenRouter model and shows how to approve new access as the agent needs it.

For native Windows support through Microsoft MXC, see the Windows build and runtime guide for setup and current limitations.

Explore Further

Agent Skills

Install the public OpenShell skills for your coding agent:

npx skills add ai-openshell/openshell

The skills teach your agent to drive the OpenShell CLI, write sandbox policies, and debug gateways and inference routing. They live in skills/ and work without an OpenShell source checkout.

SDKs

SDKs connect applications to an OpenShell gateway. They do not install the CLI. Use the same OpenShell release for the SDK and the gateway when possible.

Language Install Docs
Python uv add openshell README
TypeScript npm install @ai-openshell/sdk ai-openshell/sdk-typescript
Go go get github.com/ai-openshell/sdk-go@vX.Y.Z ai-openshell/sdk-go
Rust cargo add openshell-sdk --git https://github.com/ai-openshell/openshell --tag <release-tag> Installation and usage

Community

OpenShell is built agent-first: it is developed with the same agent-driven workflows it enables. See CONTRIBUTING.md for development setup and the contribution workflow, and AGENTS.md for repository coding conventions.

Telemetry

OpenShell collects anonymous telemetry, limited to operational categories and counts, to help improve the project. It does not collect sandbox names, hostnames, file paths, prompts, credentials, provider or model names, or user content. To disable it, set OPENSHELL_TELEMETRY_ENABLED=false on the gateway, or server.telemetryEnabled=false for Helm installs. You can also compile telemetry out entirely. See Telemetry for details and the community telemetry reports for published usage trends.

Notice and Disclaimer

This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.

License

This project is licensed under the Apache License 2.0.

S
Description
GitHub Trending: NVIDIA/OpenShell
Readme Apache-2.0
577 MiB
Languages
Rust 92.3%
Shell 3.2%
Python 3.1%
Go Template 0.3%
PowerShell 0.3%
Other 0.5%