Skip to main content
Task guides explain complete workflows. Use the interface reference for exact fields, defaults, response schemas, and errors.

Choose a reference

The Python examples use contree-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

Images and files

Python SDK

These guides target stable SDK 0.5.1. The detailed SDK reference may also include development APIs; use the installation command in the Python quickstart. SDK 0.5 removes 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.

CLI

MCP

MCP provides tools for commands, images, files, and operation lookup, waiting, and cancellation. For SSE streaming or additional-process controls, use Python SDK operation handles or the REST endpoints above. Check your connected server’s tool list before configuring an MCP workflow.

Capability routes