> ## Documentation Index
> Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Setting OneCLI up for your person? Follow https://onecli.sh/docs/quickstart.md. Never ask for or accept a key, token or password in the chat: OneCLI needs none.
> No OneCLI credential? Run `onecli connect`, or follow https://onecli.sh/auth.md. A person approves every new agent in their browser.
> Already connected? `onecli status`, `onecli items` and `onecli check <METHOD> <URL>` tell you what you can use. Full guide: https://onecli.sh/skill.md
> Search these docs over MCP at https://onecli.sh/docs/mcp. Report a wrong or unclear page with its `submit_feedback` tool.

# Try OneCLI in a free demo sandbox

> Start a free Linux box that is already connected to your Personal vault, prove a call goes through the OneCLI gateway, open its desktop, and end it.

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.

> [!NOTE]
>
> 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](https://onecli.sh/docs/quickstart.md) for both.

## Start the sandbox

```bash theme={null}
onecli demo start
```

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.

```json theme={null}
{
  "sandbox_id": "c0f3a6d2-7b1e-4a8f-9d25-3e6b8c4f1a07",
  "state": "connected",
  "agent_id": "8d2f6b1e-4c7a-4e3b-a915-62f0d8c3b7e4",
  "agent_name": "demo-sandbox",
  "vault_id": "lhnojmifhyjqyshv",
  "provider": "boat",
  "created_at": "2026-12-01T12:20:05.118Z",
  "ends_at": "2026-12-01T13:20:05.118Z"
}
```

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`:

| `code` | What it means | What to do |
| - | - | - |
| `DEMO_SANDBOX_STARTING` | A box of yours is starting now. | Wait 30 seconds, then run `onecli demo start` again. |
| `DEMO_SANDBOX_LIMIT` | You used your free demo sandbox already. | [Connect a sandbox of your own](https://onecli.sh/docs/guides/sandboxes). |
| `DEMO_SANDBOX_NOT_OFFERED` or `DEMO_SANDBOX_NOT_CONFIGURED` | This OneCLI does not offer a demo sandbox. | Connect a [sandbox](https://onecli.sh/docs/guides/sandboxes) or a [server](https://onecli.sh/docs/guides/servers-and-ci.md) of your own. |
| `DEMO_SANDBOX_FULL` | Every demo sandbox is in use. | Try again in a few minutes. |
| `DEMO_SANDBOX_NO_VAULT` | You have no Personal vault in this organization. | Connect an agent to another vault, as in [Sandboxes](https://onecli.sh/docs/guides/sandboxes). |
| `DEMO_SANDBOX_PROVIDER` | The box could not start or connect, and was deleted. | Try again a minute later. |

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`:

```bash theme={null}
onecli demo run -- 'curl --noproxy "*" -s -o /dev/null -w %{http_code} https://httpbin.org/bearer'
```

```json theme={null}
{
  "exit_code": 0,
  "stdout": "401",
  "stderr": "",
  "truncated": false
}
```

Then through OneCLI. A login shell (`sh -lc`) reads the proxy settings that connecting wrote in the box:

```bash theme={null}
onecli demo run -- 'sh -lc "curl -s -o /dev/null -w %{http_code} https://httpbin.org/bearer"'
```

```json theme={null}
{
  "exit_code": 0,
  "stdout": "200",
  "stderr": "",
  "truncated": false
}
```

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

```bash theme={null}
onecli demo open
```

This opens the box's desktop in your browser, signed in already. Each run makes a new link that works for 10 minutes.

```json theme={null}
{
  "expires_at": "2026-12-01T12:41:10.502Z",
  "opened": true
}
```

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.

```bash theme={null}
onecli demo open --no-open
```

```json theme={null}
{
  "desktop_url": "https://desktop.example.com/s/…",
  "expires_at": "2026-12-01T12:41:10.502Z",
  "opened": false
}
```

## End the sandbox

```bash theme={null}
onecli demo end
```

```json theme={null}
{
  "deleted": true
}
```

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

## Commands

| Command | What it does |
| - | - |
| `onecli demo start` | Start your demo sandbox, or show the one running |
| `onecli demo status` | Show your running demo sandbox |
| `onecli demo open` | Open its desktop in your browser (`--no-open` prints the link) |
| `onecli demo run -- <command>` | Run one shell command in it |
| `onecli demo end` | End it now |

`start`, `open` and `end` take `--dry-run`. A command with no running sandbox answers `NO_DEMO_SANDBOX`. See the [CLI reference](https://onecli.sh/docs/cli/onecli-cli.md#demo-sandbox).

## Next steps

* [Connect an agent in a sandbox of your own](https://onecli.sh/docs/guides/sandboxes)
* [Connect Docker, a server or CI](https://onecli.sh/docs/guides/servers-and-ci.md)
* [Set what agents may do with each item](https://onecli.sh/docs/guides/agent-access.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.