openshell-cli
Skill này làm gì
Skill này dạy AI chạy công cụ dòng lệnh openshell để quản lý sandbox, gateway, provider và chính sách, từ tác vụ đơn giản đến thiết lập nhiều bước. Skill dành cho người dùng OpenShell để chạy AI agent an toàn.
Khi nào nên dùng
- ✓Khi bạn muốn tạo, kết nối tới hoặc chạy lệnh trong một sandbox OpenShell.
- ✓Khi bạn cần đăng ký một gateway hoặc thiết lập provider với OpenShell.
- ✓Khi bạn đang cập nhật chính sách sandbox từng bước bằng các lệnh openshell.
Liên kết skill
https://github.com/NVIDIA/OpenShell/blob/main/skills/openshell-cli/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một sandbox OpenShell, kết nối tới nó và chạy một lệnh thử bên trong.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI dùng phần trợ giúp openshell có sẵn để tìm đúng lệnh và cờ, rồi chạy chúng theo thứ tự cho tác vụ của bạn. Khi gặp lệnh mà skill không bao quát, AI đọc trợ giúp của lệnh đó.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi có cần cài OpenShell trước không?
Có. Công cụ openshell phải được cài và nằm trên PATH. Nếu thiếu, skill chỉ bạn tới hướng dẫn cài đặt.
Skill có viết nội dung quy tắc chính sách không?
Skill bao gồm các lệnh quản lý chính sách. Việc viết nội dung quy tắc do một skill chính sách riêng đảm nhiệm.
Skill có giúp thiết lập nhà cung cấp mô hình AI không?
Có. Skill bao gồm cấu hình provider, như làm mới thiết lập provider và dùng provider đã gắn cho suy luận.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 21k
- Vị trí xếp hạng
- #10368
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
create-github-issue
21kGiúp agent của bạn tạo issue GitHub cho lỗi, yêu cầu tính năng hoặc tác vụ, bằng công cụ dòng lệnh gh và mẫu của dự án.
create-github-pr
21kCho phép agent của bạn mở pull request trên GitHub cho nhánh của bạn bằng công cụ gh, sau khi kiểm tra công việc đã sẵn sàng để xem xét.
review-github-pr
21kHướng dẫn agent của bạn đọc pull request trên GitHub và giải thích các thay đổi, lựa chọn thiết kế chính và đoạn mã đáng chú ý bằng ngôn ngữ dễ hiểu.
watch-github-actions
21kCho phép agent của bạn kiểm tra các lần chạy GitHub Actions, theo dõi cho đến khi hoàn tất và đọc log của mọi job bị lỗi.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.