openshell-cli
できること
このスキルは、AI が openshell コマンドラインツールを使い、サンドボックス、ゲートウェイ、プロバイダー、ポリシーを扱えるようにします。簡単な作業から複数の手順にわたる設定まで対応します。OpenShell で AI エージェントを安全に動かす人向けです。
使う場面
- ✓OpenShell のサンドボックスを作成、接続、またはその中でコマンドを実行したいとき。
- ✓OpenShell でゲートウェイを登録したり、プロバイダーを設定したりする必要があるとき。
- ✓openshell コマンドを使って、サンドボックスのポリシーを段階的に更新しているとき。
スキルのリンク
https://github.com/NVIDIA/OpenShell/blob/main/skills/openshell-cli/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“OpenShell のサンドボックスを作成し、接続して、中でテストコマンドを実行してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AI は組み込みの openshell のヘルプを使って適切なコマンドとフラグを見つけ、タスクに応じて順番に実行します。このスキルがカバーしないコマンドに出会ったら、そのコマンドのヘルプを読みます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
OpenShell を先にインストールする必要がありますか?
はい。openshell ツールがインストールされ、PATH に通っている必要があります。見つからない場合、スキルがインストールガイドを案内します。
ポリシーのルールの内容も書きますか?
ポリシーを管理するためのコマンドを扱います。ルールの内容を書くのは、別のポリシースキルの役割です。
AI モデルのプロバイダーの設定も手伝えますか?
はい。プロバイダーの設定を扱い、プロバイダー設定の更新や、推論に接続されたプロバイダーの利用も含みます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 21k
- ランキング
- #10368
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
create-github-issue
21kgh コマンドラインツールとプロジェクトのテンプレートを使い、エージェントがバグ、機能要望、タスクの GitHub Issue を作成するのを支援します。
create-github-pr
21k作業の準備ができているかを確認したうえで、gh ツールを使って、あなたのブランチから GitHub のプルリクエストを作成します。
review-github-pr
21kGitHub のプルリクエストを読み、その変更点、重要な設計上の判断、注目すべきコードを平易な言葉で説明する方法を、エージェントに教えます。
watch-github-actions
21kエージェントが GitHub Actions の実行状況を確認し、終わるまで追跡して、失敗したジョブのログを読めるようにします。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。