OpenAI code interpreter
Code interpreter is OpenAI's tool that lets its models write and run Python in a sandboxed container while they answer. The model analyses data, works through maths, draws charts and transforms files, and rewrites and reruns code that fails until it works. Files it makes come back as citations you can download, and a container expires after 20 minutes unused. On Opper it runs on the Responses endpoint, passed through as OpenAI defines it, on the same key as every other model.
Add OpenAI code interpreter on Opper
Set up with agents
Paste this into your coding agent (Claude Code, Cursor, Codex, and more) and it will set up and build with Opper for you.
Key info
code_interpreterIn your code
curl https://api.opper.ai/v3/compat/responses \-H "Authorization: Bearer $OPPER_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "openai/gpt-6.1-sol","input": "Sum the first 50 primes and show your working.","tools": [{"type": "code_interpreter", "container": {"type": "auto"}}]}'
Use OpenAI code interpreter with these models
Step-by-step setup for OpenAI code interpreter on each of these models through Opper.
More tools on Opper
Gemini code execution
Gemini runs code to work out its answer, on generateContent.
codeExecutionClaude code execution
Claude runs code in Anthropic's sandbox, on Anthropic's own route.
code_executionClaude computer use
Claude drives a desktop through screenshots, clicks and typing in your agent loop.
computer_toolset