Code interpreter
Analyze data and create files with a built-in code interpreter
Your agent can write and run Python, JavaScript or TypeScript in an isolated sandbox. Crunch spreadsheets, check calculations, and turn results into charts, spreadsheets, PDFs and interactive visuals you can download or share.
import pandas as pd
df = pd.read_csv("sales.csv")
monthly = df.groupby("month")["revenue"].sum()
monthly.plot(kind="bar")revenue.png saved to Library
Key capabilities
Code & data analysis, in detail
Run Python, JavaScript and TypeScript in a secure sandbox to analyze data and create files.
- 01
Secure sandbox
Code runs in an isolated environment, separate from your device and other users.
- 02
Real files as output
Charts, spreadsheets, PDFs, images and archives are saved straight to your Library.
- 03
Interactive visuals
Generate live HTML visualizations with preview and code views, and share them by link.
- 04
Works with your files
Bring in uploads and Library files, and keep state between steps in a conversation.
How it works
Up and running in minutes
- 1
Upload or describe
Attach a dataset or explain what you need to calculate or build.
- 2
The agent writes and runs code
It executes, reads the output and iterates until the result is right.
- 3
Download or share
Keep the files in your Library or share interactive visuals.
Use cases
What people use it for
Spreadsheet analysis
Clean, pivot and summarize CSV or Excel data.
Charts and dashboards
Turn numbers into charts and interactive visuals.
Reliable math
Verify calculations with real code instead of estimates.
File conversion
Convert and generate documents, images and archives.
FAQ
Code & data analysis FAQ
Which languages are supported?
Python, JavaScript and TypeScript, plus a lightweight shell for file operations.
Is running code safe?
Yes. Code runs in an isolated sandbox in the cloud — never on your device — and each conversation has its own workspace.
Where do generated files go?
Files the agent creates are saved to your Library, where you can download them or reuse them in other chats.
Keep exploring
Works even better with
Knowledge bases
Upload documents and save web pages so answers are grounded in your own sources.
Learn more about Knowledge basesSkills
Reusable abilities for your agent — built-in skills for documents and design, or your own.
Learn more about SkillsAI Library
Every file you upload or your agent creates, organized in one place and reusable anywhere.
Learn more about AI LibraryGet started
Hand off your first task today.
Public access is opening soon. Explore everything that is included in the meantime.
