Onecli Utility API

Health check and project resource summaries.

Operations 3

GET /health Health check #
GET /counts Get resource counts #
GET /vaults List vault connections #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onecli-utility-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onecli-utility-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OneCLI Agent Setup Utility API
  version: '1.0'
  description: 'The OneCLI API lets you manage agents, secrets, policy rules, app connections, and user settings programmatically.


    **Base URL:** `https://api.onecli.sh/v1` (Cloud) or `http://localhost:10254/v1` (self-hosted)


    ## Authentication


    All endpoints require authentication via one of:


    - **API Key** — `Authorization: Bearer <key>` header. Generate keys in the dashboard or via `GET /v1/user/api-key`.

    - **Session** — Cookie-based session from the web dashboard.


    For organization-scoped API keys, include the `X-Project-Id` header to specify which project to operate on.

    '
servers:
- url: https://api.onecli.sh/v1
  description: OneCLI Cloud
- url: http://localhost:10254/v1
  description: Self-hosted (Docker)
security:
- bearerAuth: []
tags:
- name: Utility
  description: Health check and project resource summaries.
paths:
  /health:
    get:
      operationId: getHealth
      summary: Health check
      description: Returns the API's status and version. No authentication required.
      security: []
      tags:
      - Utility
      responses:
        '200':
          description: Service health
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  version:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
  /counts:
    get:
      operationId: getCounts
      summary: Get resource counts
      description: Returns the current project's resource totals.
      tags:
      - Utility
      responses:
        '200':
          description: Resource counts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceCounts'
  /vaults:
    get:
      operationId: listVaults
      summary: List vault connections
      description: Returns the project's external vault connections (e.g. 1Password). Vault pairing and disconnect are performed on the gateway process, not this API.
      tags:
      - Utility
      responses:
        '200':
          description: List of vault connections
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VaultConnection'
components:
  schemas:
    ResourceCounts:
      type: object
      properties:
        agents:
          type: integer
        apps:
          type: integer
          description: Connected app connections (including inherited organization connections).
        llms:
          type: integer
          description: Non-generic secrets (LLM keys).
        secrets:
          type: integer
          description: Generic secrets.
    VaultConnection:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
          description: External vault provider (e.g. `onepassword`).
        status:
          type: string
        name:
          type: string
          nullable: true
        lastConnectedAt:
          type: string
          format: date-time
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key obtained from the dashboard or `GET /user/api-key`