> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-agui.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Shell

> Use shell tools with Agno agents.

Enable Agno agents to interact directly with the operating system's terminal, allowing them to perform file system operations, run scripts, and manage system processes

```python theme={null}


from agno.agent import Agent
from agno.tools.shell import ShellTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


agent = Agent(tools=[ShellTools()])

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    agent.print_response("Show me the contents of the current directory", markdown=True)
```

## Run the Example

```bash theme={null}
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/91_tools

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

python shell_tools.py
```

For details, see [Shell tools cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/91_tools/shell_tools.py).
