Pular para o conteúdo
Skillpedia
Deploy e nuvem (DevOps)21 mil · #10368

openshell-cli

O que ela faz

Esta skill ensina a IA a executar a ferramenta de linha de comando openshell para sandboxes, gateways, provedores e políticas, de tarefas simples a configurações com várias etapas. É para quem usa o OpenShell para executar agentes de IA com segurança.

Quando usar

  • ✓Quando você quiser criar, conectar-se a ou executar comandos em um sandbox do OpenShell.
  • ✓Quando precisar registrar um gateway ou configurar um provedor no OpenShell.
  • ✓Quando estiver atualizando uma política de sandbox passo a passo com comandos openshell.

Link da skill

https://github.com/NVIDIA/OpenShell/blob/main/skills/openshell-cli/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/NVIDIA/OpenShell/blob/main/skills/openshell-cli/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Crie um sandbox do OpenShell, conecte-se a ele e execute um comando de teste dentro dele.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A IA usa a ajuda integrada do openshell para encontrar os comandos e as opções certas e depois os executa em ordem para a sua tarefa. Quando encontra um comando que a skill não cobre, lê a ajuda desse comando.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

Perguntas frequentes

Preciso instalar o OpenShell primeiro?

Sim. A ferramenta openshell precisa estar instalada e no seu PATH, e a skill indica o guia de instalação se ela estiver faltando.

Ela também escreve o conteúdo das regras de política?

Ela cobre os comandos para gerenciar políticas. Escrever o conteúdo das regras é tarefa de uma skill de política separada.

Ela ajuda a configurar provedores de modelos de IA?

Sim. Cobre a configuração de provedores, incluindo a atualização das configurações do provedor e o uso de provedores anexados para inferência.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
21 mil
Posição no ranking
#10368
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas