Skip to main content
The demo sandbox is a Linux box that OneCLI Cloud starts for you. It is already connected as an agent, named demo-sandbox, to your Personal vault. Use it to see OneCLI work before you connect an agent of your own.
The demo sandbox is a preview on OneCLI Cloud. It may change or be removed. Each person gets one, once. Self-hosted OneCLI does not offer it.
You need onecli 3.4 or later, signed in with onecli login. onecli demo open needs 3.5 or later. See the Quickstart for both.

Start the sandbox

OneCLI starts the box and connects it to your Personal vault. This takes a few seconds. When a sandbox of yours is running already, the command shows that one and starts nothing.
The box is yours until ends_at. Then it is deleted and its agent disconnected. onecli demo status shows the same answer at any time.

If it does not start

The command answers with an error code: A box that never connected does not use up your one sandbox.

Prove the gateway adds the key

onecli demo run runs one shell command in the box and prints its output. Pass the command as one quoted string. Run the same call twice. First around OneCLI, with no credential. The server refuses it with 401:
Then through OneCLI. A login shell (sh -lc) reads the proxy settings that connecting wrote in the box:
The gateway added the Test key from your Personal vault on the way out. Neither you nor the box held it. If the second call also answers 401, your vault has no Test key, which is normal for an account made before the Test key existed. Add an item to the vault in the dashboard and call its API instead. onecli demo run has these limits:
  • A command is at most 4,000 characters.
  • A command still running after 45 seconds is stopped, and exits 124.
  • stdout and stderr are each cut at 64 KB. truncated is then true.
  • onecli demo run exits with the command’s own exit code.
At a terminal it prints the command’s output as text. Piped, or with --json, it prints the JSON above.

Open the desktop

This opens the box’s desktop in your browser, signed in already. Each run makes a new link that works for 10 minutes.
The link signs its holder in to the box, so onecli prints it only when it did not open a browser. Add --no-open to print it instead. Don’t share it.

End the sandbox

The box is deleted and its agent disconnected at once. You cannot start another demo sandbox.

Commands

start, open and end take --dry-run. A command with no running sandbox answers NO_DEMO_SANDBOX. See the CLI reference.

Next steps