Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)21k · #10368

openshell-cli

Ce qu’il fait

Ce skill apprend à l'IA à utiliser la commande openshell pour les bacs à sable, les passerelles, les fournisseurs et les politiques, des tâches simples aux configurations en plusieurs étapes. Il s'adresse aux personnes qui utilisent OpenShell pour exécuter des agents IA en toute sécurité.

Quand l’utiliser

  • ✓Quand vous voulez créer un bac à sable OpenShell, vous y connecter ou y exécuter des commandes.
  • ✓Quand vous devez enregistrer une passerelle ou configurer un fournisseur avec OpenShell.
  • ✓Quand vous mettez à jour une politique de bac à sable étape par étape avec des commandes openshell.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/NVIDIA/OpenShell/blob/main/skills/openshell-cli/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Peux-tu créer un bac à sable OpenShell, m'y connecter et lancer une commande de test à l'intérieur ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'IA utilise l'aide intégrée d'openshell pour trouver les bonnes commandes et options, puis les exécute dans l'ordre pour votre tâche. Lorsqu'elle rencontre une commande non couverte par le skill, elle lit l'aide de cette commande.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Dois-je installer OpenShell d'abord ?

Oui. L'outil openshell doit être installé et accessible dans votre PATH. Le skill vous indique le guide d'installation s'il manque.

Rédige-t-il aussi le contenu des règles de politique ?

Il couvre les commandes de gestion des politiques. La rédaction du contenu des règles relève d'un skill de politique distinct.

Peut-il aider à configurer des fournisseurs de modèles d'IA ?

Oui. Il couvre la configuration des fournisseurs, y compris l'actualisation de leurs paramètres et l'utilisation des fournisseurs rattachés pour l'inférence.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
21k
Position au classement
#10368
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires