openapi: 3.1.0
info:
title: Understudy Desktop Agent Capabilities Status API
version: 2.2.0
description: Authenticated loopback API for agents operating a running Understudy Desktop app. The desktop capability file supplies the ephemeral base URL and bearer token. Prompts, images, traces, and model outputs remain local unless a caller explicitly selects a remote route.
servers:
- url: http://127.0.0.1:{port}
description: Discovered from the private desktop capability file
variables:
port:
default: '17790'
security:
- desktopBearer: []
tags:
- name: Status
paths:
/v1/status:
get:
operationId: desktopStatus
summary: Inspect desktop, local runtime, warm models, and repair state
responses:
'200':
description: Current desktop status
content:
application/json:
schema:
$ref: '#/components/schemas/StatusDocument'
'401':
$ref: '#/components/responses/Unauthorized'
tags:
- Status
components:
schemas:
StatusDocument:
type: object
description: Desktop status is forward-compatible; clients should inspect only fields they understand.
additionalProperties: true
ErrorResponse:
type: string
description: A bounded plain-text error. Clients must not treat it as model output.
responses:
Unauthorized:
description: Missing or invalid desktop bearer token
content:
text/plain:
schema:
$ref: '#/components/schemas/ErrorResponse'
securitySchemes:
desktopBearer:
type: http
scheme: bearer
description: Ephemeral token read from the owner-only desktop capability file. Agents should use the Understudy CLI or MCP adapter instead of printing this token.
x-understudy-discovery:
capability_file: ~/.understudy/desktop-api.json
capability_schema: understudy.desktop_api.v2
required_file_mode: '0600'
recommended_adapter: understudy desktop
x-understudy-extension-surfaces:
available_via_versioned_rest_mcp_and_cli:
- runtime status
- model inventory and certified catalog
- model download lifecycle
- residency slot lifecycle
- local correction-pair export and supervision metrics
not_yet_versioned_in_v2_rest:
- conversation inspect, branch, compact, and resume
- runtime and CLI diagnostics with repair actions
- general capture export outside desktop supervision
- resumable desktop-wide event subscription