POST
/
v1
/
devboxes
/
computers
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const computerView = await client.devboxes.computers.create();

  console.log(computerView.devbox);
}

main();
{
  "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
    },
    "capabilities": [
      "unknown"
    ]
  },
  "live_screen_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string | null

The name to use for the created computer.

display_dimensions
object

Customize the dimensions of the computer display.

Response

200 - application/json
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.

devbox
object
required

The underlying devbox the computer setup is running on.

live_screen_url
string
required

The http tunnel to connect and view the live screen of the computer. You can control the interactivity of the browser by adding or removing 'view_only' query parameter. view_only=1 will allow interaction and view_only=0 will disable interaction.