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

# AutoPilot for sandboxes overview

> Choose between ComputeSDK, the routing API, and sandbox execution on connected provider accounts.

AutoPilot chooses a provider for each new sandbox and records its usage and
estimated cost. Choose an integration based on which part of the sandbox
lifecycle your application manages.

> [card] [Route sandboxes with ComputeSDK](https://docs.costgraph.ai/costgraph/autopilot/sandboxes.md)
>
> Wrap the ComputeSDK providers your TypeScript application already uses.
> Your application starts the sandboxes, and provider credentials stay in its
> process. CostGraph ranks providers and receives start and stop reports.

> [card] [Use the routing API](https://docs.costgraph.ai/costgraph/autopilot/sandboxes-api.md)
>
> Request a provider choice from Python or another language. Your application
> creates the sandbox with that provider and reports when it starts and stops.

> [card] [Run on connected provider accounts](https://docs.costgraph.ai/costgraph/autopilot/sandboxes-connected.md)
>
> Have CostGraph start a sandbox through an account connected by your team.
> Use the API, SDK, or MCP tools to run commands and manage its files and
> lifecycle.

## Find your sandbox costs

Open **AutoPilot > Sandboxes** and choose a period that includes the sandbox.
Check its provider, runtime, estimated cost, and routing result. An unpriced
sandbox can appear without a cost, so check whether its provider and size have
matching rates.

Sandbox costs use list prices and exclude provider discounts and credits. Your
provider bills your account. The cost shown here is an estimate, rather than an
invoice total.

## Connect model and compute costs

Use the same run key on a run's sandboxes and model usage to compare them in
**AutoPilot > Sandboxes > Runs**. Follow
[Group cost by run](https://docs.costgraph.ai/costgraph/autopilot/sandboxes.md#group-cost-by-run) for the
sandbox tag and gateway configuration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.