> ## 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.

# Demo Sandbox API (Preview): Start, Run and End It

> Start, read, run commands in and end your free hosted OneCLI demo sandbox with the API. A preview on OneCLI Cloud only, and it may change.

> [!NOTE]
>
> Preview: the demo sandbox is offered on OneCLI Cloud only, and these endpoints may change or be removed.

The demo sandbox is a free Linux box that OneCLI Cloud starts for you, already connected as the agent `demo-sandbox` to your Personal vault. Each person gets one, once. The `onecli demo` commands call these endpoints. See [Demo sandbox](https://onecli.sh/docs/guides/demo-sandbox.md) for the walkthrough.

## Related guides

* [Try OneCLI in a free demo sandbox](https://onecli.sh/docs/guides/demo-sandbox.md)
* [CLI reference: onecli demo](https://onecli.sh/docs/cli/onecli-cli.md#demo-sandbox)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Read your demo sandbox](https://onecli.sh/docs/api-reference/demo-sandbox/read-your-demo-sandbox.md) | `GET /v2/demo-sandbox` | Reads your running demo sandbox with the OneCLI API, with its agent, its vault and when it ends. |
| [Make your demo sandbox](https://onecli.sh/docs/api-reference/demo-sandbox/make-your-demo-sandbox.md) | `POST /v2/demo-sandbox` | Starts your free demo sandbox and connects it to your Personal vault. |
| [End your demo sandbox](https://onecli.sh/docs/api-reference/demo-sandbox/end-your-demo-sandbox.md) | `DELETE /v2/demo-sandbox` | Ends your demo sandbox at once. |
| [Get a link to your demo sandbox's desktop](https://onecli.sh/docs/api-reference/demo-sandbox/get-a-link-to-your-demo-sandboxs-desktop.md) | `POST /v2/demo-sandbox/desktop` | Makes a fresh link to your demo sandbox's desktop. |
| [Run a command in your demo sandbox](https://onecli.sh/docs/api-reference/demo-sandbox/run-a-command-in-your-demo-sandbox.md) | `POST /v2/demo-sandbox/exec` | Runs one shell command in your demo sandbox and returns its output. |

## Next steps

* [API overview](https://onecli.sh/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](https://onecli.sh/docs/api-reference/errors.md): status codes and the error format
* [Editions](https://onecli.sh/docs/api-reference/editions.md): which endpoints each edition serves


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