Choose a reference
The Python examples usecontree-sdk==0.5.1 with contree-client==0.6.0; CLI examples use contree-cli==0.9.4. Keep these versions when following the examples.
The REST base URL is
https://api.tokenfactory.nebius.com/sandboxes/v1.
REST operations
- Spawn an operation
- List operations
- Get operation status
- Cancel an operation
- Stream operation events
- Spawn an additional subprocess
- Get a subprocess result
- Signal a subprocess
- Write to subprocess stdin
Images and files
- List public images
- Import an OCI image
- Inspect an image
- List files in an image
- Download a file
- Download a file or directory as an archive
Python SDK
- SDK overview
- Getting started
- Session model
- Python API reference
- Import images
- Session reference
- Operation and subprocess controls
Contree, image-object methods, and popen(). Use create_sandbox_session(), session.run(), and operation handles instead. Python 3.10–3.14 is supported; async examples require the [async] extra.