Overview
The Bearly Code Interpreter tool is a tool that allows you to execute various programming languages using the AI Agents.How It Works
Getting Started
Simple Usage
- Install dependencies (see Overview above)
- Set required API keys in your environment
- Run the agent example in Overview
Best Practices
Keep BEARLY_API_KEY in the environment
Keep BEARLY_API_KEY in the environment
Set
BEARLY_API_KEY in your shell or .env. The tool reads it automatically — never hard-code the key.Sandbox untrusted code
Sandbox untrusted code
Bearly runs code in an isolated cloud sandbox, so agent-generated code cannot touch your machine. Prefer it over local execution for untrusted input.
Keep snippets self-contained
Keep snippets self-contained
Each run is stateless. Include all imports and inputs in the snippet you pass so it executes without external state.
Related Tools
Python
Run Python code
Azure Code Interpreter
Azure sessions runtime
Jina Code Interpreter
Riza Python execution

