Agent credentials

List models

Uses the workspace selection or harness credential priority. Before workspace creation, pass method and scope to preview a connected inference provider. Returns provider editability and an optional default model; null requires explicit selection.

get/v1/agents/{agent}/models

Request

  • Base URL
    https://api.replicas.dev
  • URL
    https://api.replicas.dev/v1/agents/{agent}/models
  • Auth
    HTTP bearer

Path parameters

agent'claude' | 'codex' | 'opencode' | 'pi' required

Query parameters

workspaceIdstring uuid
methodstring

Connected inference method; requires scope and must be supported by the agent.

scope'org' | 'user'
querystring
pageinteger
limitinteger

Response

Paginated model catalog

source'aster' | 'openrouter' | 'opencode-go' | 'static' | 'openai-compatible' | 'ollama' required
readOnlyboolean
defaultModelstring nullable

Default model ID, or null when explicit model selection is required.

pageinteger required
totalinteger required
limitinteger required
totalPagesinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.