Files
OpenShell/deploy/man/openshell.1.md
T
John T. Myers f4dc6be4b2 refactor(inference): remove managed inference routes (#3195)
* refactor(inference): remove managed inference routes

Closes #3172

Remove the inference route control plane, inference.local data path, built-in router crate, and SDK surface. Move inference workloads to explicitly imported provider profiles and native endpoints, with migration cleanup and updated tests and documentation.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>

* fix(policy): preserve alternate upstream isolation

Restore the provider policy activation guard so legacy OpenAI and Anthropic providers configured for alternate base URLs do not grant egress to the built-in public vendor endpoints.

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>

---------

Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
2026-09-09 18:47:22 +00:00

5.3 KiB

title, section, header, footer, date
title section header footer date
OPENSHELL 1 OpenShell Manual openshell 2026

NAME

openshell - CLI for managing OpenShell sandboxes, gateway registrations, and providers

SYNOPSIS

openshell [OPTIONS] COMMAND [ARGS]

DESCRIPTION

openshell is the command-line interface for OpenShell, a platform providing safe, sandboxed runtimes for autonomous AI agents. It manages gateway registrations, sandbox lifecycle, credential providers, network policies, and provider attachments.

The CLI communicates with a gateway server over gRPC. The gateway can run as a package-managed systemd user service, a Helm deployment, a development task, or behind a cloud reverse proxy.

COMMANDS

Gateway Management

gateway add ENDPOINT [--local] [--name NAME] [--remote USER@HOST]
Register an existing gateway with the CLI.
gateway remove [NAME]
Remove a local CLI registration and stored auth tokens. This does not stop or destroy the gateway service.
gateway select [NAME]
List registered gateways or switch the active gateway.
gateway info [--name NAME]
Show registration details for a gateway.
gateway list
List registered gateways.
gateway login
Re-authenticate with a cloud gateway.
gateway logout
Clear stored authentication credentials for a gateway.
status
Check the health of the active gateway.

Sandbox Management

sandbox create [--from IMAGE] [--policy FILE] [--provider NAME] [--gpu] [--upload SRC:DST] [--forward PORT] [-- COMMAND]
Create a new sandbox on the active gateway.
sandbox list [--selector LABEL]
List all sandboxes on the active gateway.
sandbox get NAME
Show details for a sandbox.
sandbox delete NAME | --all
Delete one or all sandboxes.
sandbox connect NAME [--editor EDITOR]
SSH into a running sandbox.
sandbox exec -n NAME [--workdir DIR] -- COMMAND
Execute a command in a sandbox.
sandbox upload NAME LOCAL REMOTE
Upload files to a sandbox.
sandbox download NAME REMOTE LOCAL
Download files from a sandbox.

Policy Management

policy get SANDBOX [--full]
Show the active policy for a sandbox.
policy set SANDBOX --policy FILE [--wait]
Apply a policy to a sandbox.
policy update SANDBOX [--add-endpoint SPEC] [--add-allow RULE]
Incrementally update a sandbox policy.
policy list SANDBOX
Show policy revision history.
policy prove --policy FILE [--credentials FILE]
Verify policy properties.

Provider Management

provider create --name NAME --type TYPE [--from-existing] [--credential KEY=VALUE]
Create a credential provider.
provider list
List all providers.
provider get NAME
Show provider details.
provider update NAME [--from-existing] [--credential KEY=VALUE]
Update provider credentials.
provider delete NAME
Delete a provider.
sandbox provider attach SANDBOX PROVIDER
Attach a provider to a running sandbox. New processes receive its endpoint-bound credential placeholders and provider-derived policy.
sandbox provider detach SANDBOX PROVIDER
Revoke a provider attachment from a running sandbox.

Other

logs SANDBOX [--tail]
View sandbox logs.
forward start PORT SANDBOX [-d]
Start port forwarding to a sandbox.
forward stop PORT
Stop port forwarding.
forward list
List active port forwards.
term
Open the real-time TUI dashboard.
doctor check
Validate local Docker prerequisites for standalone gateway development. For package-managed gateways, prefer systemd, journalctl, kubectl, or Helm diagnostics.
completions SHELL
Generate shell completions (bash, zsh, fish).

GLOBAL OPTIONS

-g, --gateway NAME
Target a specific gateway by name.
--gateway-endpoint URL
Connect to a gateway by URL directly.
-h, --help
Print help information.
-V, --version
Print version.

ENVIRONMENT

OPENSHELL_GATEWAY
Default gateway name (overrides active gateway).
OPENSHELL_GATEWAY_ENDPOINT
Direct gateway URL (bypasses metadata lookup).
ANTHROPIC_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY
API keys discovered by auto-provider creation.
GITHUB_TOKEN, GH_TOKEN
GitHub credentials for provider auto-discovery.

FILES

~/.config/openshell/gateways/
Gateway metadata and mTLS certificates.
~/.config/openshell/active_gateway
Name of the currently active gateway.

EXAMPLES

Register the local RPM gateway and create a sandbox:

openshell gateway add --local https://127.0.0.1:17670
openshell sandbox create -- claude

List sandboxes and connect to one:

openshell sandbox list
openshell sandbox connect my-sandbox

Create a provider from a local environment variable:

openshell provider create --name openai --type openai --from-existing

Check gateway health:

openshell status

SEE ALSO

openshell-gateway(8)

Full documentation: https://docs.nvidia.com/openshell/

Run openshell COMMAND --help for detailed help on any command.