Create computer

POST/v1/environments

Create a persistent computer workspace with optional GUI access, runtimes, packages, and MCP servers.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
None.
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
projectIdstringNoOptional project that owns this computer.
namestringYesHuman-readable computer name.
descriptionstringNoDescription of what this computer is used for.
environmentVariablesobject[]NoPlaintext environment variables injected into the workspace.
environmentVariables[].keystringNo
environmentVariables[].valuestringNo
secretsobject[]NoSecret values mounted into the workspace at runtime.
setupScriptsstring[]NoShell commands to run during workspace setup.
mcpServersobject[]NoMCP servers connected to the computer.
mcpServers[].namestringNoHuman-readable name.
mcpServers[].typestdio | httpNo
mcpServers[].commandstringNoFor stdio servers
mcpServers[].argsstring[]No
mcpServers[].urlstringNoFor HTTP servers
mcpServers[].bearerTokenstringNo
mcpServers[].enabledbooleanNo
internetAccessbooleanNoWhether the computer may access the public internet.
isDefaultbooleanNoMark this computer as the default for the workspace.
baseImagestringNoBase image used for the workspace container.
dockerfileExtensionsstringNoAdditional Dockerfile instructions appended to the generated base.
runtimesobjectNoRuntime versions to pin, such as Node or Python.
packagesobjectNo
packages.systemstring[]No
packages.pythonstring[]No
packages.nodestring[]No
guiEnabledbooleanNoEnable a browser-accessible desktop GUI for the computer.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

201Environment createdapplication/json
FieldTypeRequiredDescription
environmentobjectNo
environment.idstringNoUnique identifier.
environment.projectIdstringNoProject ID.
environment.namestringNoHuman-readable name.
environment.descriptionstringNoHuman-readable description.
environment.environmentVariablesobject[]No
environment.environmentVariables[].keystringNo
environment.environmentVariables[].valuestringNo
environment.secretsobject[]No
environment.setupScriptsstring[]No
environment.mcpServersobject[]No
environment.mcpServers[].namestringNoHuman-readable name.
environment.mcpServers[].typestdio | httpNo
environment.mcpServers[].commandstringNoFor stdio servers
environment.mcpServers[].argsstring[]No
environment.mcpServers[].urlstringNoFor HTTP servers
environment.mcpServers[].bearerTokenstringNo
environment.mcpServers[].enabledbooleanNo
environment.internetAccessbooleanNo
environment.isDefaultbooleanNo
environment.baseImagestringNo
environment.dockerfileExtensionsstringNo
environment.runtimesobjectNo
environment.packagesobjectNo
environment.packages.systemstring[]No
environment.packages.pythonstring[]No
environment.packages.nodestring[]No
environment.guiEnabledbooleanNo
environment.buildStatusstringNo
environment.buildErrorstringNo
environment.imageTagstringNo
environment.lastBuildAtstringNo
environment.createdAtstringNoISO 8601 timestamp.
environment.updatedAtstringNoISO 8601 timestamp.
Create computer
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow