openshell-cli
ما الذي تفعله
تعلّم هذه المهارة الذكاء الاصطناعي تشغيل أداة سطر الأوامر openshell للبيئات المعزولة والبوابات والمزودين والسياسات، من المهام البسيطة إلى الإعدادات متعددة الخطوات. وهي مخصصة للأشخاص الذين يستخدمون OpenShell لتشغيل وكلاء الذكاء الاصطناعي بأمان.
متى تستخدمها
- ✓عندما تريد إنشاء بيئة معزولة في OpenShell أو الاتصال بها أو تشغيل أوامر داخلها.
- ✓عندما تحتاج إلى تسجيل بوابة أو إعداد مزود باستخدام OpenShell.
- ✓عندما تحدّث سياسة بيئة معزولة خطوة بخطوة باستخدام أوامر openshell.
رابط المهارة
https://github.com/NVIDIA/OpenShell/blob/main/skills/openshell-cli/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ بيئة معزولة في OpenShell، واتصل بها، وشغّل أمر اختبار داخلها.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يستخدم الذكاء الاصطناعي المساعدة المدمجة في 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، وتوجهك المهارة إلى دليل التثبيت إذا كانت مفقودة.
هل تكتب أيضًا محتوى قواعد السياسة؟
تغطي أوامر إدارة السياسات. أما كتابة محتوى القواعد فتتولاه مهارة سياسات منفصلة.
هل تساعد في إعداد مزودي نماذج الذكاء الاصطناعي؟
نعم. تغطي إعداد المزودين، بما في ذلك تحديث إعدادات المزود واستخدام المزودين المرتبطين للاستدلال.
التفاصيل
الوصف الأصلي من المؤلف
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
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
create-github-issue
21kيساعد وكيلك على إنشاء مشكلة (issue) في GitHub لخطأ أو طلب ميزة أو مهمة، باستخدام أداة سطر الأوامر gh وقالب المشروع.
create-github-pr
21kيساعد وكيلك على فتح طلب سحب (pull request) على GitHub لفرعك باستخدام أداة gh، بعد التحقق من أن العمل جاهز للمراجعة.
review-github-pr
21kيعلّم وكيلك قراءة طلب سحب على GitHub وشرح تغييراته وقرارات التصميم الأساسية والكود المهم بلغة واضحة.
watch-github-actions
21kيساعد وكيلك على فحص تشغيلات GitHub Actions ومتابعتها حتى تنتهي، وقراءة سجلات أي مهمة فشلت.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.