shell (OpenAI)
Tool : A precise action the AI can call · requires openai-api
Shell hosted in a Debian container, network off by default.
The replacement for local_shell: safer, but still code execution.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
Some tasks require running real system commands: manipulating files, launching scripts, checking software versions, or processing data. OpenAI's shell tool addresses this need by giving the model access to a full terminal environment, without requiring you to manage the infrastructure yourself.
In practice, the model can execute shell commands either in an OpenAI-hosted container (using the container_auto option) or in a local runtime that you host yourself. Access is available through the Responses API only, not through the Chat Completions API. Network access is disabled by default in hosted containers, which limits data exfiltration risks.
This tool is aimed at developers building agents capable of deterministic processing: calculations, file manipulation, running Python or Node.js scripts, or any task requiring a real terminal environment.
It is not suitable for general public use without technical oversight: executing arbitrary shell commands remains a sensitive operation that requires supervision, allowlists or denylists, and activity logging.
What it offers
- ·Shell command execution in an OpenAI-hosted container, automatically provisioned via the container_auto option (paid).
- ·Shell command execution in a local runtime that you host and control yourself.
- ·Access to a full terminal environment with Python and Node.js available in hosted containers.
- ·Network disabled by default in hosted containers, with the option to enable it as needed.
- ·Integration via the Responses API, compatible with multiple languages: JavaScript, Python, Go, Java, Ruby.
- ·tool_choice parameter to control whether the model uses the tool automatically or only on explicit instruction.
- ·Access to a /mnt/data directory for file manipulation in hosted containers.
In practice
- Price
- Paid
- Commercial use
- Commercial use: yes
- Available on
- api
- Host
- openai-api
- FR interface
- No
Security and data
- Rating
- Security: serious reservations
- Capabilities
- readswritesexecutesnetwork
- Your data
- Data with the vendor
- Maintenance
- Active
Links and repository checked on 25 October 2026 · added on 1 February 2026
How to install shell (OpenAI)
tools=[{"type":"shell"}]