GET
Returns detected AI agents (Claude, Codex, OpenCode) running in your terminals, with their type, model, token usage, and session IDs. Useful for monitoring costs.
apiKeyAuthheader
X-Taiku-Token<token>Your API key from taiku login. Also available as TAIKU_TOKEN env var.
session_id*stringclient?integerOptional target browser client ID. Useful when multiple clients are connected to the same session.
Range
0 <= valueArray of active agents.
application/json- response
Remote command success envelope. Transport-level or command-level failures use non-2xx HTTP responses.
result*unknownSuccessful browser-side command result. Shape depends on the requested method.
curl -X GET '/api/v1/sessions/string/remote/agents'Example Response
{ "result": [ { "shellId": 1, "agentType": "claude", "model": "opus-4", "sessionId": "abc-123", "tokenUsage": { "input": 50000, "output": 12000, "cached": 30000, "cost": 0.42 } } ]}