import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const agentDevboxCountsView = await client.agents.devboxCounts();
console.log(agentDevboxCountsView.counts);{
"counts": {},
"total_count": 123
}Returns devbox counts grouped by agent name. This endpoint efficiently aggregates devbox counts for all agents in a single request, avoiding N+1 query patterns.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const agentDevboxCountsView = await client.agents.devboxCounts();
console.log(agentDevboxCountsView.counts);{
"counts": {},
"total_count": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successfully retrieved devbox counts by agent name.
Devbox counts grouped by agent name. Used to efficiently fetch devbox counts for multiple agents in a single request.
Was this page helpful?