openshell-cli
What it does
This skill teaches the AI to run the openshell command line tool for sandboxes, gateways, providers, and policies, from simple tasks to multi-step setups. It is for people who use OpenShell to run AI agents safely.
When to use it
- ✓When you want to create, connect to, or run commands in an OpenShell sandbox.
- ✓When you need to register a gateway or set up a provider with OpenShell.
- ✓When you are updating a sandbox policy step by step using openshell commands.
Skill link
https://github.com/NVIDIA/OpenShell/blob/main/skills/openshell-cli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create an OpenShell sandbox, connect to it, and run a test command inside.”
5 new skills a week. 1 minute to read.
How it works
The AI uses the built-in openshell help to find the right commands and flags, then runs them in order for your task. When it meets a command the skill does not cover, it reads the help for that command.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
OpenShell CLI
Guide agents through using the openshell CLI for sandbox and platform management -- from basic operations to advanced multi-step workflows.
Overview
The OpenShell CLI (openshell) is the primary interface for managing sandboxes, providers, policies, settings, exposed services, and gateway registrations. Gateway service lifecycle is handled outside the CLI by packages, systemd, or Helm. This skill teaches agents how to orchestrate CLI commands for common and complex workflows.
Companion skill: For creating or modifying sandbox policy YAML content (network rules, L7 inspection, access presets), use the generate-sandbox-policy skill. This skill covers the CLI commands for the policy lifecycle; generate-sandbox-policy covers policy content authoring.
Self-teaching: The CLI has comprehensive built-in help. When you encounter a command or option not covered in this skill, walk the help tree:
openshell --help # Top-level commands
openshell <group> --help # Subcommands in a group
openshell <group> <cmd> --help # Flags for a specific command
This is your primary fallback. Use it freely -- the CLI's help output is authoritative and always up-to-date.
Prerequisites
openshellis on the PATH. Follow the published installation guide when it is not installed.- A reachable OpenShell gateway backed by Docker, Podman, Kubernetes, or the experimental VM driver
- Docker is running only when using BYOC local builds or a Docker-backed gateway
- For Kubernetes deployments:
kubectland Helm access to the target cluster
Authoritative References
Use openshell --help and nested --help output as the authority for the installed CLI version. Use the published documentation for product concepts and supported workflows:
Workflow 1: Getting Started
Use this workflow when the user has a gateway endpoint and wants to get a sandbox running for the first time.
Step 1: Register a gateway
openshell gateway add http://127.0.0.1:8080 --local --name local
Use an http:// endpoint only for trusted local port-forwarding or a protected private path. For a gateway behind an authenticated reverse proxy, register its HTTPS endpoint with openshell gateway add https://gateway.example.com.
Step 2: Verify the gateway
openshell status
openshell whoami
Confirm the gateway is reachable, authentication is valid or not required, and
the output shows a version. Status: Connected only proves the public health
endpoint is reachable; inspect the separate Authentication line before
running protected commands. openshell whoami reports the identity validated
by the gateway, including the subject an administrator uses for workspace
membership. Add --output json for automation.
Step 3: Create a sandbox
The simplest way to get a sandbox running:
openshell sandbox create
This creates a sandbox whose canonical main process is /bin/bash -l and
attaches your terminal to that retained process. Add --detach to return after
the sandbox becomes ready without attaching.
An explicit trailing command is foreground even when stdin or stdout is not a
terminal. The CLI streams its stdout and stderr and reports the command's exit
status after output drains. A failure to deliver output makes the CLI report a
failure even if the command itself exited successfully; check the sandbox's
state before retrying work that might have side effects. Exit code 0 leaves a
retained sandbox in Completed; nonzero leaves it in Error with
MainProcessFailed. Use --no-keep to delete either result after output
drains, or --detach for a long-running service. Combine
--detach --no-keep when the gateway should run the service without a host
attachment and delete its sandbox after the service exits.
When supply
FAQ
Do I need to install OpenShell first?
Yes. The openshell tool must be installed and on your PATH, and the skill points you to the installation guide if it is missing.
Does it also write the content of policy rules?
It covers the commands for managing policies. Writing the rule content is the job of a separate policy skill.
Can it help set up AI model providers?
Yes. It covers provider configuration, including refreshing provider settings and using attached providers for inference.
Details
Original description by the author
Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, profile management, policy iteration, settings, service exposure, BYOC workflows, and attached-provider inference. Covers basic through advanced multi-step workflows. Trigger keywords - openshell, sandbox create, sandbox exec, sandbox connect, logs, provider create, profile list, profile describe, provider refresh, policy set, policy get, settings, service expose, forward, port forward, BYOC, bring your own container, inference, use openshell, run openshell
repo: NVIDIA/OpenShell
Popularity
- GitHub stars
- 21k
- Ranking position
- #10368
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
create-github-issue
21kHelps your agent create a GitHub issue for a bug, feature request, or task, using the gh command line tool and the project's template.
create-github-pr
21kLets your agent open a GitHub pull request for your branch with the gh tool, after checking that the work is ready for review.
review-github-pr
21kTeaches your agent to read a GitHub pull request and explain its changes, key design choices, and notable code in plain terms.
watch-github-actions
21kLets your agent check GitHub Actions runs, follow them until they finish, and read the logs of any job that failed.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.