본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)21k · #10368

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/NVIDIA/OpenShell/blob/main/skills/openshell-cli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  • openshell is 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: kubectl and 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬