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

# Make your demo sandbox

> Starts your free demo sandbox and connects it to your Personal vault. One per person, once. A preview on OneCLI Cloud.

Preview, OneCLI Cloud only. Takes a managing key (`oc_key_...`) or a signed-in session. `onecli demo start` calls it. See [Demo sandbox](https://onecli.sh/docs/guides/demo-sandbox.md).

Makes a free demo sandbox on Boat and connects it, as one agent, to your Personal vault. It takes some seconds and answers once the box is connected. You get one, once. When you have one running, this answers 200 with it and makes nothing.

> [!NOTE]
>
> **Availability:** OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers `404` with `error.code: "not_found"`.
>
> **Who can call:** Any member of the organization, with a managing key (`oc_key_...`) that has the `manage` permission, or a signed-in session.


## OpenAPI

````yaml /openapi.yaml post /v2/demo-sandbox
openapi: 3.1.0
info:
  title: OneCLI API
  version: '2'
  description: >
    The OneCLI API manages what the gateway enforces: vaults, the items in them,
    the agents connected to them, what agents may do with each item,
    organization rules, approvals and activity.


    **Base URL:** `https://api.onecli.sh` (OneCLI Cloud) or your own
    deployment's address (`http://localhost:10256` by default). Every path
    starts with `/v2`.


    ## Authentication


    Send `Authorization: Bearer <credential>`. Which credential an endpoint
    takes is on its page.


    - **Managing key** (`oc_key_...`): acts as the person who made it, in the
    organization it was made in.

    - **Agent credential** (`oc_agent_...`): reads what that agent can use and
    nothing else. On an endpoint for a person it answers `403` with the detail
    `person_required`.

    - **Connect token** (`oc_connect_...`): connects one agent to its own vault
    and does nothing else.

    - **Signed-in session**: the dashboard's own. A few endpoints take a session
    only and refuse every key.


    Who can call each endpoint is on its page, and in its `x-onecli-access`
    field: the credentials it takes (`credentials`), the least role in the
    organization (`role`: `member`, `admin` or `owner`), and the permission a
    managing key needs (`keyPermission`).


    ## Editions


    Endpoints marked **Cloud** exist on OneCLI Cloud only. Every other endpoint
    exists on OneCLI Cloud and on a self-hosted deployment.
servers:
  - url: https://api.onecli.sh
    description: OneCLI Cloud
  - url: http://localhost:10256
    description: Self-hosted
security: []
tags:
  - name: Vaults
    description: A vault holds items and has agents connected to it.
  - name: Items
    description: >-
      The connected apps, API keys and LLM keys in a vault. Values are
      write-only.
  - name: Permissions
    description: What the agents on a vault may do with one item, per tool.
  - name: Connect tokens
    description: The tokens that connect a new agent to a vault.
  - name: Agents
    description: The agents connected to the vaults you can use.
  - name: Agent sign-ups
    description: How an agent with no credential asks a person to connect it.
  - name: Agent self-service
    description: What an agent reads about itself with its own credential.
  - name: Approvals
    description: The requests the gateway holds until a person answers.
  - name: Rules
    description: 'Organization rules: block, require approval, or rate-limit.'
  - name: Activity
    description: 'What agents did: the request log, usage counts and the audit log.'
  - name: Apps
    description: The apps that can be connected, and the organization's own OAuth apps.
  - name: API keys
    description: 'Managing keys: the keys a person''s scripts call this API with.'
  - name: Organization
    description: You, your organizations, and an organization's name and logo.
  - name: Utility
    description: Health check.
  - name: Members
    description: The people of an organization and their roles.
  - name: Invites
    description: Invite people to an organization by email.
  - name: Groups
    description: Groups of members, used to share vaults and to set roles.
  - name: Vault sharing
    description: The people and groups a vault is shared with.
  - name: Shared items
    description: Items an organization keeps once and shares with chosen vaults.
  - name: Sign-in
    description: 'Single sign-on: identity provider connections, domains and enforcement.'
  - name: Directory tokens
    description: Tokens the organization's directory syncs people and groups with.
  - name: LLM sign-in
    description: Add a Claude or ChatGPT subscription to a vault by signing in.
  - name: Demo sandbox
    description: >-
      Preview: your free hosted demo sandbox, a box already connected to your
      Personal vault.
paths:
  /v2/demo-sandbox:
    post:
      tags:
        - Demo sandbox
      summary: Make your demo sandbox
      description: >-
        Makes a free demo sandbox on Boat and connects it, as one agent, to your
        Personal vault. It takes some seconds and answers once the box is
        connected. You get one, once. When you have one running, this answers
        200 with it and makes nothing.
      operationId: postDemoSandbox
      parameters:
        - description: >-
            Optional. 1 to 255 visible characters. A retry with the same key,
            path and body returns the first answer (with Idempotent-Replayed:
            true) for 24 hours. The same key with another path or body is 422
            idempotency_conflict.
          in: header
          name: Idempotency-Key
          required: false
          schema:
            maxLength: 255
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoSandbox'
          description: The demo sandbox you already have. Nothing was made.
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoSandbox'
          description: The new demo sandbox.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not signed in.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not allowed.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            details[0].issue says why: demo_sandbox_limit (you had your one
            already), demo_sandbox_starting (one is being made right now) or
            demo_sandbox_no_vault (you have no Personal vault here).
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation failed.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Too many requests. Wait a few minutes.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unexpected error.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            No demo sandbox can be made now. details[0].issue says why:
            demo_sandbox_full (every one is in use), demo_sandbox_not_configured
            (this server offers none) or demo_sandbox_provider (the provider
            refused or did not answer, or the box could not connect and was
            deleted).
      security:
        - userBearer: []
components:
  schemas:
    DemoSandbox:
      properties:
        agentId:
          description: The agent the box is connected as.
          type: string
        agentName:
          type: string
        createdAt:
          description: ISO 8601.
          type: string
        endsAt:
          description: ISO 8601. When the sandbox stops by itself.
          type: string
        id:
          description: The demo sandbox's id here. Never the provider's own id.
          type: string
        provider:
          enum:
            - boat
          type: string
        state:
          description: >-
            The box runs and its agent is connected. A sandbox that ended, or
            that never connected, is not shown.
          enum:
            - connected
          type: string
        vaultId:
          description: Your Personal vault, which the box's agent is on.
          type: string
      required:
        - id
        - state
        - agentId
        - agentName
        - vaultId
        - provider
        - createdAt
        - endsAt
      type: object
    Error:
      properties:
        error:
          properties:
            code:
              enum:
                - bad_request
                - validation_failed
                - unauthenticated
                - forbidden
                - not_found
                - conflict
                - gone
                - idempotency_conflict
                - precondition_required
                - rate_limited
                - authorization_pending
                - slow_down
                - access_denied
                - expired_token
                - internal
                - unavailable
              type: string
            details:
              items:
                $ref: '#/components/schemas/ErrorDetail'
              type: array
            docUrl:
              description: >-
                A page that says what to do next. On a 401: how an agent gets a
                credential.
              type: string
            message:
              type: string
            requestId:
              description: The X-Request-Id of this call, to quote when asking.
              type:
                - string
                - 'null'
          required:
            - code
            - message
            - details
            - requestId
          type: object
      required:
        - error
      type: object
    ErrorDetail:
      properties:
        field:
          description: Where the problem is.
          type: string
        issue:
          description: What kind of problem.
          type: string
        message:
          description: The problem in words.
          type: string
      required:
        - field
        - issue
        - message
      type: object
  securitySchemes:
    userBearer:
      description: >-
        A managing key (oc_key_...), an older API key (oc_...), or a signed-in
        session.
      scheme: bearer
      type: http

````

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