import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: 'My Bearer Token',
});
const computerView = await client.devboxes.computers.retrieve('id');
console.log(computerView.devbox);
{
"devbox": {
"id": "<string>",
"name": "<string>",
"status": "provisioning",
"create_time_ms": 123,
"end_time_ms": 123,
"blueprint_id": "<string>",
"snapshot_id": "<string>",
"metadata": {},
"failure_reason": "out_of_memory",
"shutdown_reason": "api_shutdown",
"launch_parameters": {
"launch_commands": [
"<string>"
],
"resource_size_request": "X_SMALL",
"keep_alive_time_seconds": 123,
"available_ports": [
123
],
"after_idle": {
"idle_time_seconds": 123,
"on_idle": "shutdown"
},
"custom_cpu_cores": 123,
"custom_gb_memory": 123,
"custom_disk_size": 123,
"architecture": "x86_64",
"user_parameters": {
"username": "<string>",
"uid": 123
},
"required_services": [
"<string>"
]
},
"capabilities": [
"unknown"
],
"state_transitions": [
{
"status": "provisioning",
"transition_time_ms": {}
}
]
},
"live_screen_url": "<string>"
}
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: 'My Bearer Token',
});
const computerView = await client.devboxes.computers.retrieve('id');
console.log(computerView.devbox);
{
"devbox": {
"id": "<string>",
"name": "<string>",
"status": "provisioning",
"create_time_ms": 123,
"end_time_ms": 123,
"blueprint_id": "<string>",
"snapshot_id": "<string>",
"metadata": {},
"failure_reason": "out_of_memory",
"shutdown_reason": "api_shutdown",
"launch_parameters": {
"launch_commands": [
"<string>"
],
"resource_size_request": "X_SMALL",
"keep_alive_time_seconds": 123,
"available_ports": [
123
],
"after_idle": {
"idle_time_seconds": 123,
"on_idle": "shutdown"
},
"custom_cpu_cores": 123,
"custom_gb_memory": 123,
"custom_disk_size": 123,
"architecture": "x86_64",
"user_parameters": {
"username": "<string>",
"uid": 123
},
"required_services": [
"<string>"
]
},
"capabilities": [
"unknown"
],
"state_transitions": [
{
"status": "provisioning",
"transition_time_ms": {}
}
]
},
"live_screen_url": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The Computer ID
OK
A Computer represents an implementation of Anthropic Computer usage on top of Devboxes. It includes the tunnel to the live screen and the underlying DevboxView.
Was this page helpful?