Skip to main content
POST
Get Sub Agents

Authorizations

X-Session-API-Key
string
header
required

Body

application/json

Request body for listing sub-agents.

load_builtin
boolean
default:true

Load SDK built-in agents (general-purpose, code-explorer, ...)

load_project
boolean
default:true

Load project agents from the workspace

load_user
boolean
default:true

Load user agents from ~/.agents/agents and ~/.openhands/agents

project_dir
string | null

Workspace directory path for project agents

Response

Successful Response

Response containing all available sub-agents.

agents
SubAgentInfo · object[]
required