LIVE
Mistral Makes Large 4 Available as Open Weights29/10/26 · Mistral AI|Gemini 4 Carbon tops the Artificial Analysis Intelligence Index v529/10/26 · Google|Mistral Large 4 now available on Hugging Face29/10/26 · Mistral AI|Google Introduces "Gemini 4 Carbon" as Next Step in Its Model Lineup28/10/26 · Google|DeepMind unveils Genie 4, a new generation of world model27/10/26 · Google DeepMind|Anthropic files IPO prospectus, with risk disclosures taking center stage26/10/26 · Anthropic|Robot policy trained only in simulation matches top real-world systems26/10/26|OpenAI unveils GPT-6.1 Terra, a model built for computer use26/10/26 · OpenAI|New benchmark checks whether LLMs actually test their temporal medical claims29/10/26|An ODE-based sampling method speeds up discrete diffusion models29/10/26|OpenAI revises its Model Spec with five guiding values for AI behavior29/10/26 · OpenAI|Inside Proton's internal clash over its AI pivot29/10/26 · Proton|Mistral Makes Large 4 Available as Open Weights29/10/26 · Mistral AI|Gemini 4 Carbon tops the Artificial Analysis Intelligence Index v529/10/26 · Google|Mistral Large 4 now available on Hugging Face29/10/26 · Mistral AI|Google Introduces "Gemini 4 Carbon" as Next Step in Its Model Lineup28/10/26 · Google|DeepMind unveils Genie 4, a new generation of world model27/10/26 · Google DeepMind|Anthropic files IPO prospectus, with risk disclosures taking center stage26/10/26 · Anthropic|Robot policy trained only in simulation matches top real-world systems26/10/26|OpenAI unveils GPT-6.1 Terra, a model built for computer use26/10/26 · OpenAI|New benchmark checks whether LLMs actually test their temporal medical claims29/10/26|An ODE-based sampling method speeds up discrete diffusion models29/10/26|OpenAI revises its Model Spec with five guiding values for AI behavior29/10/26 · OpenAI|Inside Proton's internal clash over its AI pivot29/10/26 · Proton|
Toolofficial publisher

bash (Anthropic, côté client)

Tool : A precise action the AI can call · requires anthropic-api

Claude requests shell commands that your code executes.

Essential for code agents; your code must handle filtering and confinement.

Overall score
6.4 /10
Security: serious reservations
Utility
8.0
Reliability
6.0
Security
Serious reservations
Ease
5 min · Technical

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

Automating command-line tasks from an AI agent raises a concrete question: who actually runs the commands, and in which environment? The bash tool addresses this by clearly separating responsibilities: Claude formulates the command, and your application executes it in a bash process it fully controls.

In practice, when you include the tool in a request, Claude responds with a tool_use block containing the command to run. Your code executes that command in a persistent bash session, then returns stdout and stderr in a tool_result block. The session stays alive between calls: the working directory, environment variables, and any files created are preserved from one call to the next.

This tool is aimed at developers building code agents, automation pipelines, or data analysis tools via the Anthropic API. It covers use cases such as running tests, installing packages, processing files, or configuring an environment.

It is not suitable for use without isolation: every command runs on your infrastructure with your permissions. Without a container or virtual machine and without an allowlist of permitted commands, the risk of unintended execution is real.

What it offers

  • ·Persistent bash session: the working directory, environment variables, and created files are preserved between calls.
  • ·Client-side execution: Claude proposes the command, your code runs it and returns the result, without Claude accessing your system directly.
  • ·Parallel tool calls: Claude can return multiple tool_use blocks in a single response, to be run in order within the same session.
  • ·Session restart: the restart parameter kills the bash process and starts a fresh one.
  • ·Structured error reporting: the is_error field in tool_result signals to Claude that a command failed, along with the corresponding message.
  • ·Timeout handling: your code can enforce a time limit per command and restart the session if it hangs.
  • ·Compatible with all current Claude models via version bash_20250124, with no beta header required.

In practice

Price
Free
Commercial use
Commercial use: yes
Available on
api
Host
anthropic-api
FR interface
No

Security and data

Rating
Security: serious reservations
Capabilities
readswritesexecutesnetwork
Your data
Data stays local
Maintenance
Active

Links and repository checked on 25 October 2026 · added on 1 January 2025

How to install bash (Anthropic, côté client)

1. Obtain an Anthropic API key at platform.claude.com. 2. Install the Python SDK: pip install anthropic 3. In your code, include {"type": "bash_20250124", "name": "bash"} in the tools array of your Messages request. 4. Create a persistent bash session in your application (a /bin/bash process kept alive between calls). 5. For each response with stop_reason tool_use, run the received command in your session and return the output in a tool_result block. 6. Security precaution: run the session inside an isolated container and apply a command allowlist before any execution.
pip install anthropic

Official documentation ↗

In the same category

Whole category Code →