Get a machine
get_machineRetrieve a machine’s state, connection details (SSH, browser apps, API endpoint), remaining time, keep-running status, and costs without exposing keys.
Instructions
One machine: its state, how to connect (SSH command, browser apps, API or endpoint address), time left, keep-running status and costs. Never its keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| machine_id | Yes | e.g. cnx-7f3a9c |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | e.g. cnx-7f3a9c | |
| app | Yes | ||
| gpu | Yes | ||
| label | Yes | ||
| model | No | ||
| state | Yes | requested | provisioning | running | stopping | terminated | failed | |
| region | No | ||
| billing | No | ||
| project | No | ||
| gpu_count | Yes | ||
| end_reason | No | ||
| expires_at | Yes | ||
| charged_usd | Yes | ||
| launched_by | No | ||
| ssh_command | Yes | While running, if the machine has an SSH key | |
| api_base_url | No | Model API / Voice Agent machines: their API address | |
| browser_apps | No | Apps to open from the dashboard's Open button while running | |
| endpoint_url | No | Your own server on the machine's port 8000 | |
| refunded_usd | Yes | ||
| renew_failed | No | ||
| endpoint_name | No | ||
| cost_so_far_usd | Yes | What it costs if it ended now | |
| next_renewal_at | No | ||
| startup_progress | No | ||
| time_left_minutes | Yes | ||
| keep_running_hours | Yes | Renews this many hours at a time; null = off | |
| price_per_hour_usd | Yes | For the whole machine (all its GPUs) |