Hello World
Spin up an Ubuntu sandbox, run a command, and stream the output.
hello-world
The simplest alineo example: spin up an Ubuntu sandbox, run echo "hello world", and stream the output.
Setup
bunx alineo-cli init # starts OpenSandbox in Docker (one-time setup)Run
bun install
bun startWhat it does
- Creates an Ubuntu 22.04 sandbox
- Executes
echo "hello world"inside it - Streams output to stdout
- Deletes the sandbox on completion
Notes
All examples default to useServerProxy: true — traffic routes through the OpenSandbox server so Docker bridge IPs don't need to be reachable directly. Set USE_SERVER_PROXY=false to disable (e.g. when using uvx opensandbox-server on the host).