Skip to main content

Function: createWorkspaceClient()

Function: createWorkspaceClient()

function createWorkspaceClient(opts: WorkspaceClientOptions): WorkspaceClient;

Construct an AppKit workspace client.

Auth resolution:

  • If opts.token is set, uses PAT credentials.
  • Otherwise walks the SDK default auth chain (env vars + ~/.databrickscfg).

Host resolution:

  • Explicit opts.host → use it.
  • Otherwise resolved by the SDK from DATABRICKS_HOST / profile.

Parameters

ParameterType
optsWorkspaceClientOptions

Returns

WorkspaceClient

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs