List Environments
GET
/anthropic/v1/environments◐ PartialOfficial Claude documentation ↗
Request parameters
include_archivedbooleanoptionalquery: Whether to include archived records.
limitnumberoptionalquery: Maximum number of items per page.
pagestringoptionalquery: Pagination cursor taken from the previous response's next_page.
Returns
200
Supports tenant-owned cloud environments, configuration updates and soft archival; built-ins are read-only. Lists accept limit, page and include_archived. Limited networking applies at sandbox creation; package installation failure terminates the session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. self_hosted, scope and cross-session package caching are not supported.
Errors follow the Claude Managed Agents format — see error codes
Request
curl
curl https://api.deepraxis.com/anthropic/v1/environments \
-H "x-api-key: $PRAXIS_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: managed-agents-2026-04-01"Python
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.deepraxis.com/anthropic",
api_key="$PRAXIS_API_KEY",
)
# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.list()
print(result)TypeScript
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.deepraxis.com/anthropic",
apiKey: "$PRAXIS_API_KEY",
});
// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.list();
console.log(result);Response 200
{
"data": [
{
"type": "environment",
"id": "light",
"name": "轻型",
"description": "平台默认的轻型沙箱。",
"config": {
"type": "cloud",
"networking": {
"type": "limited",
"allowed_hosts": [],
"allow_mcp_servers": true,
"allow_package_managers": false
},
"packages": {
"type": "packages",
"apt": [],
"pip": [],
"npm": [],
"cargo": [],
"gem": [],
"go": []
}
},
"metadata": {},
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"archived_at": null
},
{
"type": "environment",
"id": "node22",
"name": "Node.js 22",
"description": "Platform built-in Node.js 22 sandbox.",
"config": {
"type": "cloud",
"networking": {
"type": "unrestricted"
},
"packages": {
"type": "packages",
"apt": [],
"pip": [],
"npm": [],
"cargo": [],
"gem": [],
"go": []
}
},
"metadata": {},
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"archived_at": null
}
],
"next_page": null
}Response
HTTP 200
Successful response
application/json
| Name | Type | Description |
|---|---|---|
| data | array<object> | |
| data[].id | string | Environment identifier (e.g., 'env_...') |
| data[].archived_at | null | string | RFC 3339 timestamp when environment was archived, or null if not archived |
| data[].config | object | Environment configuration (either Anthropic Cloud or self-hosted) |
| data[].created_at | string | RFC 3339 timestamp when environment was created |
| data[].description | null | string | User-provided description for the environment; null when unset |
| data[].metadata | object | User-provided metadata key-value pairs |
| data[].name | string | Human-readable name for the environment |
| data[].type | string | The type of object (always 'environment') |
| data[].updated_at | string | RFC 3339 timestamp when environment was last updated |
| data[].scope | string | The visibility scope for this environment. 'organization' means visible to all accounts. 'account' means visible only to the owning account. |
| next_page | string | null |