Overview
TheBashExecutorProxy intercepts curl commands and routes API calls to isolated environments. Code runs in a subprocess.
Basic Usage
- Python SDK
- TypeScript SDK
Creating Framework Tools
Python - OpenAI Agents
TypeScript - Vercel AI
URL Transformation
The bash executor transforms curl URLs:Execution Result
Example: Slack API Calls
Example: Linear GraphQL
Supported Commands
The bash executor primarily intercepts:- curl: All HTTP methods, headers, data
- Other commands run normally (piping, jq, etc.)
Complex Scripts
You can write multi-line scripts:Configuration Options
- Python
- TypeScript
When to Use Bash Executor
| Use Case | Recommended |
|---|---|
| Simple API calls | ✓ Bash |
| Complex logic/loops | Python/TS |
| JSON manipulation | Python/TS |
| Quick curl tests | ✓ Bash |
| Multi-step workflows | Python/TS |
