> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenfactory.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reference map and compatibility

> Find REST endpoints, Python methods, CLI commands, and MCP tools for your workflow.

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.3.6`; CLI examples use `contree-cli==0.9.4`. Keep these versions when following the examples.

| Interface | Use the reference for |
| - | - |
| Python SDK | Image objects, async and synchronous execution, file transfer, and sessions |
| CLI | Authentication profiles, image selection, commands, and local session management |
| REST | Request and response fields, operation status, SSE events, and subprocess control |
| MCP | Tools and resources available to an MCP client; check the tool list exposed by your connected server |

The REST base URL is `https://api.tokenfactory.nebius.com/sandboxes/v1`.

## REST operations

* [Spawn an operation](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance.md)
* [List operations](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/operations/list-operations.md)
* [Get operation status](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/operations/get-an-operation-status.md)
* [Cancel an operation](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/operations/cancel-an-operation.md)
* [Stream operation events](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/operations/stream-the-operation-event-log-via-server-sent-events.md)
* [Spawn an additional subprocess](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/operation/spawn-an-additional-subprocess-inside-a-running-instance.md)
* [Get a subprocess result](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/operation/result-of-one-subprocess-reconstructed-from-its-events.md)
* [Signal a subprocess](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/operation/kill-one-subprocess.md)
* [Write to subprocess stdin](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/operation/write-to-a-subprocesss-stdin-andor-close-it.md)

## Images and files

* [List public images](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/images/list-publicly-available-images.md)
* [Import an OCI image](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/images/import-a-container-image-from-a-registry.md)
* [Inspect an image](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/inspect/inspect-an-image.md)
* [List files in an image](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/inspect/list-files-in-image.md)
* [Download a file](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/inspect/download-a-file-from-image.md)
* [Download a file or directory as an archive](https://docs.tokenfactory.nebius.com/api-reference/sandboxes/inspect/download-a-file-or-a-directory-from-image-as-tar-archive.md)

## Python SDK

* [SDK overview](https://docs.tokenfactory.nebius.com/sandboxes/sdk/index.md)
* [Getting started](https://docs.tokenfactory.nebius.com/sandboxes/sdk/python_sdk/getting-started.md)
* [Running commands](https://docs.tokenfactory.nebius.com/sandboxes/sdk/python_sdk/running-commands)
* [Python API reference](https://docs.tokenfactory.nebius.com/sandboxes/sdk/python_sdk/reference/index.md)
* [Image reference](https://docs.tokenfactory.nebius.com/sandboxes/sdk/python_sdk/reference/image)
* [Session reference](https://docs.tokenfactory.nebius.com/sandboxes/sdk/python_sdk/reference/session.md)
* [Subprocess-style wrapper](https://docs.tokenfactory.nebius.com/sandboxes/sdk/python_sdk/reference/subprocess)

## CLI

* [CLI overview](https://docs.tokenfactory.nebius.com/sandboxes/cli/index.md)
* [Install and authenticate](https://docs.tokenfactory.nebius.com/sandboxes/cli/tutorial/installation.md)
* [Tutorial](https://docs.tokenfactory.nebius.com/sandboxes/cli/tutorial/index.md)
* [Command reference](https://docs.tokenfactory.nebius.com/sandboxes/cli/commands/index.md)
* [Sessions, branches, and rollback](https://docs.tokenfactory.nebius.com/sandboxes/cli/tutorial/sessions.md)

## MCP

* [MCP overview](https://docs.tokenfactory.nebius.com/sandboxes/mcp/index.md)
* [Quickstart](https://docs.tokenfactory.nebius.com/sandboxes/mcp/quickstart.md)
* [Tools reference](https://docs.tokenfactory.nebius.com/sandboxes/mcp/tools/index.md)
* [Resources](https://docs.tokenfactory.nebius.com/sandboxes/mcp/resources.md)
* [Configuration](https://docs.tokenfactory.nebius.com/sandboxes/mcp/integration/configuration.md)

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

## Capability routes

| Task | Route |
| - | - |
| First stateful SDK run | [Python quickstart](https://docs.tokenfactory.nebius.com/sandboxes/start/python-quickstart.md) |
| First stateful CLI run | [CLI quickstart](https://docs.tokenfactory.nebius.com/sandboxes/start/cli-quickstart.md) |
| Persistence defaults and result identity | [Images, checkpoints, and branches](https://docs.tokenfactory.nebius.com/sandboxes/concepts/images-checkpoints-and-branches.md) |
| Submit, poll, and inspect results | [Run commands and handle results](https://docs.tokenfactory.nebius.com/sandboxes/guides/run-commands-and-results.md) |
| Stream and resume output | [Stream output and events](https://docs.tokenfactory.nebius.com/sandboxes/guides/stream-output-and-events.md) |
| Control an additional process | [Run subprocesses and send input](https://docs.tokenfactory.nebius.com/sandboxes/guides/run-subprocesses-and-send-input.md) |
| Diagnose a failed workflow | [Troubleshooting](https://docs.tokenfactory.nebius.com/sandboxes/operate/troubleshooting.md) |
