Skip to main content
The orq:code_interpreter tool runs Python in an isolated, workspace-scoped sandbox. It is suited to calculations, data transformation, parsing, and other tasks where executing code is more reliable than reasoning in text.

Quick start

The examples use the client configuration from the Server tools overview.
The model writes the Python code. A value assigned to result and anything written to standard output are returned to the model.

Configuration

Each staged file can be up to 10 MB.
Network settings are accepted and validated, but sandbox egress enforcement is still rolling out. Sandbox executions retain the deployment’s default public internet access until enforcement is enabled.

Availability and usage

The deployment must have sandbox infrastructure configured. When it is unavailable, the model receives a tool error instead of a Python result. Code interpreter has no separate server-tool charge in this release. The number of sessions appears at usage.server_tool_use.code_interpreter_sessions.