Create a Devbox.
Create a Devbox and begin the boot process. The Devbox will initially launch in the ‘provisioning’ state while Runloop allocates the necessary infrastructure. It will transition to the ‘initializing’ state while the booted Devbox runs any Runloop or user defined set up scripts. Finally, the Devbox will transition to the ‘running’ state when it is ready for use.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
(Optional) A user specified name to give the Devbox.
(Optional) Environment variables used to configure your Devbox.
(Optional) Map of paths and file contents to write before setup..
(Optional) When specified, the Devbox will run this script as its main executable. The devbox lifecycle will be bound to entrypoint, shutting down when the process is complete.
Blueprint ID to use for the Devbox. If none set, the Devbox will be created with the default Runloop Devbox image. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.
Name of Blueprint to use for the Devbox. When set, this will load the latest successfully built Blueprint with the given name. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.
Parameters to configure the resources and launch time behavior of the Devbox.
Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID, Blueprint name) should be specified.
Reference to prebuilt Blueprint to create the Devbox from. Should not be used together with (Snapshot ID, Blueprint ID, or Blueprint name).
User defined metadata to attach to the devbox for organization.
A list of code mounts to be included in the Devbox.
Response
A Devbox represents a virtual development environment. It is an isolated sandbox that can be given to agents and used to run arbitrary code such as AI generated code.
The ID of the Devbox.
The current status of the Devbox.
provisioning
, initializing
, running
, suspending
, suspended
, resuming
, failure
, shutdown
Creation time of the Devbox (Unix timestamp milliseconds).
The user defined Devbox metadata.
The launch parameters used to create the Devbox.
A list of capability groups this devbox has access to. This allows devboxes to be compatible with certain tools sets like computer usage APIs.
unknown
, computer_usage
, browser_usage
, language_server
The name of the Devbox.
The time the Devbox finished execution (Unix timestamp milliseconds). Present if the Devbox is in a terminal state.
The Blueprint ID used in creation of the Devbox, if the devbox was created from a Blueprint.
The Snapshot ID used in creation of the Devbox, if the devbox was created from a Snapshot.
The failure reason if the Devbox failed, if the Devbox has a 'failure' status.
out_of_memory
, out_of_disk
, execution_failed
The shutdown reason if the Devbox shutdown, if the Devbox has a 'shutdown' status.
api_shutdown
, keep_alive_timeout
, entrypoint_exit
, idle
, lambda_lifecycle
Was this page helpful?