Skip to main content
ShellTools enable an Agent to interact with the shell to run commands.

Example

The following agent will run a shell command and show contents of the current directory.
Mention your OS to the agent to make sure it runs the correct command.
cookbook/91_tools/shell_tools.py
ShellTools runs any command the model constructs, with no allowlist or confirmation gate. Setting base_dir only sets the working directory for the command; it does not restrict what the command can access. Keep human supervision for untrusted prompts, and run inside a sandbox (container, VM, or Daytona) for untrusted code execution.

Toolkit Params

Toolkit Functions

Developer Resources