# Function: getWorkspaceClient()

```ts
function getWorkspaceClient(config: Partial<LakebasePoolConfig>): Promise<WorkspaceClient>;

```

Get workspace client from config or SDK default auth chain

## Parameters[​](#parameters "Direct link to Parameters")

| Parameter | Type                                                                                       |
| --------- | ------------------------------------------------------------------------------------------ |
| `config`  | `Partial`<[`LakebasePoolConfig`](/appkit/docs/api/appkit/Interface.LakebasePoolConfig.md)> |

## Returns[​](#returns "Direct link to Returns")

`Promise`<`WorkspaceClient`>
