Files
docker-docs/content/manuals/ai/sandboxes/agents/shell.md
T
David Karlsson 3ed5acc026 sbx: fix heading level for shell startup command
The Shell page had "Default startup command" as an h3 with no parent h2,
skipping a heading level. Promote it to h2 so it sits alongside "Base
image", consistent with the other agent pages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 16:59:37 +02:00

1.5 KiB

title, weight, description, keywords
title weight description keywords
Shell 90 Run an agent-less sandbox with a Bash login shell for manual setup, testing custom agent implementations, or inspecting a running environment. sandboxes, sbx, shell, agent, manual setup, testing

sbx run shell drops you into a Bash login shell inside a sandbox with no pre-installed agent binary. It's useful for installing and configuring agents manually, testing custom implementations, or inspecting a running environment.

$ sbx run shell ~/my-project

The workspace path defaults to the current directory. To run a one-off command instead of an interactive shell, pass it after --:

$ sbx run shell -- -c "echo 'Hello from sandbox'"

Default startup command

Without extra args, the sandbox runs bash -l. Args after -- replace -l rather than being appended. To preserve login-shell behavior, include -l yourself:

$ sbx run shell -- -l -c "echo hi"

Set your API keys as environment variables so the sandbox proxy can inject them into API requests automatically. Credentials are never stored inside the VM:

$ export ANTHROPIC_API_KEY=sk-ant-xxxxx
$ export OPENAI_API_KEY=sk-xxxxx

Once inside the shell, you can install agents using their standard methods, for example npm install -g @continuedev/cli. For complex setups, build a custom template instead of installing interactively each time.

Base image

The shell sandbox uses the shell base image — the common base environment without a pre-installed agent.