Skip to content
carton
Esc
↑↓navigate↵open⌘Jpreview
On this page

Configuration concepts

Understand the few configuration terms used in the provider and CLI guides.

You do not need Carton’s internal architecture to run a sandbox. These terms explain the choices you may see during setup.

Connection

The Carton URL and token tell the CLI which Carton instance to use. That instance can run locally through carton serve or on a shared server. Its provider keys are separate from your CLI token.

Target

A target is one configured provider connection. You might name your E2B account e2b-main or a local Docker host local. The name belongs to your configuration, not to a fixed list of CLI provider names.

Route

A route defines which targets Carton can try when creating a sandbox. Your default route lets the quickstart stay short:

carton create IMAGE --name hello

Replace IMAGE with an image prepared for your configured provider. A running sandbox stays on its chosen target. Changing a route does not move a running process to another provider.

Project configuration

A project’s carton.yaml describes the environment it asks Carton to run. The carton up command reads it, prepares the environment, writes carton.lock, and creates a sandbox.

The server’s policy file controls which provider accounts and resources are available. A project can request resources, but cannot grant itself access that the server’s policy forbids.

Start with the CLI quickstart before using project-based environments or custom routing.