# Code Interpreter API — Run AI-Generated Code | CrowNest (https://crownest.dev/code-interpreter-api)

A code interpreter API for AI apps: execute Python and shell from your agent, stream stdout, capture results and artifacts, then tear down on a TTL. Metered per second.

Primary search target: code interpreter api.

## What CrowNest provides

- Isolated cloud sandboxes for AI agents and developer automation.
- Commands with stdout and stderr streaming.
- Workspace file reads, writes, uploads, and downloads.
- Authenticated preview URLs for services running inside sandboxes.
- Durable artifacts for outputs that need to survive sandbox teardown.
- Scoped API keys, project restrictions, audit events, and usage controls.

## Related documentation

- [Relevant docs page](https://docs.crownest.dev/docs/api/code)
- [Docs overview](https://docs.crownest.dev/docs)
- [REST API overview](https://docs.crownest.dev/docs/api/overview)

## Links

- [CrowNest home](https://crownest.dev/)
- [This page as Markdown](https://crownest.dev/code-interpreter-api.md)