October 1, 2026 · Together AI
together-sandbox SDK for Python and TypeScript, available on an allowlist
The new together-sandbox SDK runs commands and code in isolated runtime environments built from Docker-image snapshots. It ships as a Python SDK, a TypeScript SDK, and a standalone CLI, and is available to organizations on an allowlist (contact us to request access).
What's changed from the legacy SDK (@codesandbox/sdk):
- Together-native authentication: Clients authenticate with your Together API key (
TOGETHER_API_KEY) instead of a CodeSandbox API token. - Python support: The legacy SDK was TypeScript-only. The new SDK is published on both PyPI and npm, and the CLI installs as a self-contained binary.
- Docker-defined environments: Sandboxes boot from snapshots built from a Docker image or Dockerfile by Together's remote image builder, replacing templates built with the CodeSandbox CLI. No local Docker is required.
- Snapshot-based persistence: Sandboxes are ephemeral by default and termination is permanent. To maintain state, snapshot the filesystem on termination and start a new sandbox from it. This replaces the legacy hibernate and resume model.
See Code sandbox for the new workflow.