Connect your provider
Choose where your sandboxes run and configure the connection before using the CLI.
You configure a provider once, then use the same Carton commands for your sandboxes. Start by choosing one of two connection paths.
Use your own provider account
Choose a provider, such as E2B or Daytona, and supply its credentials to your Carton instance. Keep those provider keys out of your application code.
For personal use, the same carton executable includes carton serve,
which runs the Carton service locally. Your sandboxes still run at the hosted
provider. You do not need a Docker container or a separate server binary
to run that service.
Guided provider setup is not implemented yet. The current build requires
a provider entry in the server’s policy file and credentials in its secret
store. Hosted providers also require a prepared environment. There is no
carton login or carton connect command to document yet.
The repository’s docs/server.md and docs/operator-policy.md cover the
current manual setup. They are operator references, not the intended
release onboarding flow.
Connect to an existing Carton instance
If your team already runs Carton, ask for its URL and a scoped Carton token. You do not need the provider’s API key.
Replace the example URL and token below with the values for your instance:
export CARTON_URL="https://carton.example.com"
export CARTON_TOKEN="<your-carton-token>"
carton ls
carton ls lists your sandboxes. An empty list is a valid result when you
have not created one yet. If the connection fails, check the URL and token
before creating a sandbox.
Keep tokens out of source control and command arguments. The CLI reads them
from your environment. Without CARTON_URL, it connects to
http://127.0.0.1:7878.
Run your first command
Once the provider and connection are ready, continue to the CLI quickstart. Ask whoever configured the provider which image reference to use. A hosted provider’s prepared environment must match that image.