Skip to main content
Use createDevboxClient() to configure authentication, API transport, and Devbox connection defaults. The returned client provides access to Devboxes, blueprints, and images.

createDevboxClient()

Create a client that provides access to Devboxes, blueprints, and images. The client loads credentials when it first makes an authenticated request.

Example

API reference

Arguments and options

DevboxClientOptions
Options used to configure the client.

Return value

createDevboxClient() returns a DevboxClient. In examples, this object is assigned to the client variable.

DevboxClient

A DevboxClient provides APIs for working with Devboxes, blueprints, and images. It also manages the connections used to interact with Devboxes.

Example

API reference

Explore the APIs

Select an API to learn how to manage Devboxes, blueprints, or images with the client.

client.devboxes

Create, find, list, start, stop, and delete Devboxes.

client.blueprints

Create, find, list, update, and delete blueprints.

client.images

Register, find, list, inspect, optimize, and delete images.

client.close()

Close connections cached by the client when your application no longer needs them. This does not delete Devboxes, blueprints, images, or other resources.

Example

API reference

Arguments and options

This method has no arguments or options.

Return value

Returns no value. Calling close() more than once has no effect.

Authenticate with Namespace

Configure credentials for local development and automated workloads.

Create and manage Devboxes

Use the client’s Devbox resource and manage Devbox lifecycles.
Last modified on August 27, 2026