Prompt Buddy logoPrompt Buddy

openai · OpenAI Platform Docs

Shell

Teaches how to implement and manage a terminal environment for models using either local execution or OpenAI-hosted containers via the Responses API, including container reuse and network policy configuration.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Shell

Teaches how to implement and manage a terminal environment for models using either local execution or OpenAI-hosted containers via the Responses API, including container reuse and network policy configuration.

When To Use

Use when you need to enable a model to execute terminal commands, manage persistent container environments across multiple API requests, or configure network access for hosted shell runtimes.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/shell-workflow-guide.mdA guide explaining how to use the shell tool for local and hosted execution within a terminal environment via the Responses API.Questions about a guide explaining how to use the shell tool for local and hosted execution within a terminal environment via the Res...
examples/shell-openai-shell-tool.javascriptA JavaScript code example demonstrating how to use the OpenAI Shell tool within a client request to execute commands in a containerized environment.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the OpenAI Shell tool within a client request to execute commands...
examples/shell-openai-shell-tool-python-execution.pythonA Python script demonstrating how to use the OpenAI shell tool to execute system commands within a containerized environment.Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the OpenAI shell tool to execute system commands within a containerized envi...
examples/shell-openai-shell-container-create.javascriptA JavaScript example demonstrating how to create a new analysis container using the OpenAI Shell API.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to create a new analysis container using the OpenAI Shell API.
examples/shell-openai-shell-container-create.pythonA Python script demonstrating how to create a new shell container using the OpenAI client.Exact payloads, commands, or snippets shown in A Python script demonstrating how to create a new shell container using the OpenAI client.
examples/shell-openai-shell-tool-javascript-container-execution.javascriptA JavaScript example demonstrating how to use the OpenAI shell tool to execute commands within a specified container environment.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use the OpenAI shell tool to execute commands within a specified container...
examples/shell-openai-shell-tool-python-container-execution.pythonA Python script demonstrating how to use the OpenAI shell tool to execute commands within a specified container environment.Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the OpenAI shell tool to execute commands within a specified container envir...
examples/shell-openai-platform-shell-container-create.javascriptA JavaScript example demonstrating how to create a container with specific skills using the OpenAI client.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to create a container with specific skills using the OpenAI client.
examples/shell-openai-platform-shell-python-container-creation.pythonA Python script demonstrating how to create a container with specific skill references using the OpenAI platform shell client.Exact payloads, commands, or snippets shown in A Python script demonstrating how to create a container with specific skill references using the OpenAI platform shel...
examples/shell-openai-shell-tool-2.javascriptA JavaScript code example demonstrating how to use the OpenAI Shell tool with a containerized environment and network allowlist.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the OpenAI Shell tool with a containerized environment and network...
examples/shell-openai-shell-tool.pythonA Python script demonstrating how to use the OpenAI shell tool with a containerized environment and domain allowlisting.Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the OpenAI shell tool with a containerized environment and domain allowlisting.
examples/shell-openai-platform-docs-shell-javascript-inline-skill-container-creat.javascriptA JavaScript example demonstrating how to create an inline skill container using the OpenAI client to process local files.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to create an inline skill container using the OpenAI client to process local f...
examples/shell-openai-platform-shell-python-inline-skill-container-creation.pythonA Python script demonstrating how to create an inline skill container by encoding a ZIP file and a CSV file into base64 for the OpenAI Shell tool.Exact payloads, commands, or snippets shown in A Python script demonstrating how to create an inline skill container by encoding a ZIP file and a CSV file into base...
examples/shell-openai-platform-docs-shell-javascript-container-delete.javascriptA JavaScript code example demonstrating how to use the OpenAI client to delete a specific container via the shell tool.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the OpenAI client to delete a specific container via the shell tool.
examples/shell-openai-platform-docs-shell-python-container-deletion.pythonA Python script demonstrating how to use the OpenAI client to delete a specific container via the shell interface.Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the OpenAI client to delete a specific container via the shell interface.
examples/shell-openai-shell-tool-3.javascriptA JavaScript code example demonstrating how to use the OpenAI shell tool within a client request to execute commands in a containerized environment.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the OpenAI shell tool within a client request to execute commands...
examples/shell-openai-shell-tool-2.pythonA Python script demonstrating how to use the OpenAI Shell tool to execute curl commands within a containerized environment.Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the OpenAI Shell tool to execute curl commands within a containerized enviro...
examples/shell-openai-shell-tool-4.javascriptA JavaScript code example demonstrating how to use the OpenAI Shell tool within a responses creation request.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the OpenAI Shell tool within a responses creation request.
examples/shell-openai-shell-tool-3.pythonA Python script demonstrating how to use the OpenAI shell tool to execute commands within a containerized environment.Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the OpenAI shell tool to execute commands within a containerized environment.

What This Skill Covers

  • The shell tool gives models the ability to work inside a complete terminal environment. We support shell for local execution and for hosted execution through...
  • Main sections: Hosted shell quickstart, Hosted runtime details, Reuse a container across requests, 1. Create a container, 2. Reference the container in Responses.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.openai.com/api/docs/guides/tools-shell.md