列出电脑
GET
/agent/v1/computers● 支持请求参数
limitinteger可选query: 每页返回的最大项目数:正整数,最多 100,默认 20;会话资源的默认值和最大值均为 1000。更大值返回 400。
pagestring可选query: 不透明分页游标:原样传入上一响应的 next_page 值。第一页省略。来自不同查询或格式错误的游标返回 400。
返回
200
Praxis 超集:MA 只有会话级临时容器与 memory_stores,没有可长期存续、可浏览的整台电脑。归档后文件仍可读,但不能用于新会话。environment_id 是可空配方引用;电脑在首次使用时启动,sandbox_id 为 SDK 可用的公开 ID。分页包含归档电脑。
错误按 Anthropic 错误格式返回(type / message / request_id),参见 错误码
请求示例
curl
curl https://api.deepraxis.com/agent/v1/computers \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
import requests
opts = dict(
base_url="https://api.deepraxis.com/agent",
api_key="$PRAXIS_API_KEY",
)
# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.get(
f"{opts['base_url']}/v1/computers",
headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())TypeScript
const opts = {
baseURL: "https://api.deepraxis.com/agent",
apiKey: "$PRAXIS_API_KEY",
};
// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/computers`, {
headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());响应示例 200
{
"data": [
{
"type": "computer",
"id": "cmp_580649e66b34488d82275236e407edb1",
"name": "my-computer",
"environment_id": null,
"status": "active",
"created_at": "2026-10-23T21:19:18.705Z",
"updated_at": "2026-10-23T21:19:18.705Z",
"archived_at": null,
"sandbox_id": null,
"machine_state": "not_started"
}
],
"next_page": null
}响应
HTTP 200
Computer result
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| data | array<object> | Items of this page, in the order requested by the call. |
| data[].type | string | Always computer. A computer. |
| data[].id | string | Computer id (cmp_...), the computer_id of computer calls. |
| data[].name | string | Display name of the computer, 1 to 255 characters. |
| data[].sandbox_id | string | null | Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created. |
| data[].machine_state | string | not_started means the machine has not been created; first use provisions it. provisioned means a machine has been created, whether running or paused. |
| data[].environment_id | string | null | Environment recipe the computer was created with; null when none. |
| data[].status | string | active computers can be used by new sessions; archived ones keep their files readable but cannot start new sessions. |
| data[].created_at | string | RFC 3339 time at which the computer was created. |
| data[].updated_at | string | RFC 3339 time at which the computer was last modified. |
| data[].archived_at | string | null | RFC 3339 time at which the computer was archived; null while active. |
| has_more | boolean | Whether more items exist beyond this page. |
| next_page | string | null | Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page. |