Skip to content

Shell ​

The satori-v2 shell command launches an interactive remote shell inside a container. This is useful for exploring an environment, debugging a playbook, or trying out commands before adding them to a playbook.

Launch a Shell ​

sh
satori-v2 shell

This starts a remote container and connects you to an interactive session over SSH.

Attach to a Running Execution ​

You can also open a shell inside the container of an execution that is currently running, which is handy to inspect the environment of a playbook while it runs:

sh
satori-v2 shell EXECUTION-ID

The execution ID is the one shown by satori-v2 run, satori-v2 reports or satori-v2 report ID. The container options below do not apply in this case, since the container already exists. The execution must belong to the account or organization you are acting on: another account's execution is refused even when its report is public.

Options ​

You can customize the container running your session:

FlagDescriptionExample
--image IMAGEDocker image for the containersatori-v2 shell --image debian
--cpu CPUCPU allocation (AWS Fargate)satori-v2 shell --cpu 512
--memory MEMORYMemory allocation (AWS Fargate)satori-v2 shell --memory 1024
-r, --region-filter REGIONRegion where the container is started (repeatable). Replaces the v1 --region flagsatori-v2 shell -r us-east-1

Example combining several options:

sh
satori-v2 shell --image debian --cpu 512 --memory 1024 -r us-east-1

On development

--timeout (session duration limit) and the old --region spelling are not available yet in CLI v2. The v1 syntax is kept here for reference.

FlagDescriptionExample
--region REGIONAWS region (repeatable) (renamed to -r/--region-filter)satori-v2 shell --region us-east-1
--timeout SECONDSSession duration limit in seconds (on development)satori-v2 shell --timeout 600
sh
satori-v2 shell --image debian --cpu 512 --memory 1024 --timeout 600

List Shell Sessions ​

You can list your shell sessions with:

sh
satori-v2 shell sessions

Pagination and output flags:

FlagDescriptionExample
-q, --quantity NUMBERNumber of sessions per page (default: 10). -l/--limit is an aliassatori-v2 shell sessions -q 20
--page NUMBERShow a specific page of resultssatori-v2 shell sessions --page 2
--jsonPrint the list as JSONsatori-v2 shell sessions --json

On development

The v1 command satori-v2 shells has been renamed to satori-v2 shell sessions in CLI v2, and its -p short flag for --page is not available. The v1 syntax is kept here for reference.

sh
satori-v2 shells
satori-v2 shells -q 20
satori-v2 shells -p 2

AI agents ​

satori-v2 shell is for interactive use in a terminal. AI agents connected through the MCP server should use the remote-sandbox tools instead — see Remote sandbox (SSH) notes.

CLIMCP equivalent
satori-v2 shellcreate_ssh_session then exec_in_session (no TTY; always stop_ssh_session when done)
satori-v2 shell EXECUTION-IDssh_into_execution (credentials for the user; the MCP cannot host an interactive shell)
satori-v2 shell sessionslist_ssh_sessions / get_ssh_session