> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-sdk-testing-latest.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# init

> TypeScript SDK reference

# init

▸ **init**(`project`, `settings?`): `Promise`\<[`WeaveClient`](../classes/weaveclient)>

Initialize the Weave client, which is required for weave tracing to work.

#### Parameters

| Name        | Type           | Description                                                                                                                                                                                                                                                                                                                                                                 |
| :---------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project`   | `string`       | The W\&B project name (can be project or entity/project). If you don't specify a W\&B team (e.g., 'team/project'), your default entity is used. To find or update your default entity, refer to User Settings at [https://docs.wandb.ai/platform/app/settings-page/user-settings#default-team](https://docs.wandb.ai/platform/app/settings-page/user-settings#default-team) |
| `settings?` | `SettingsInit` | (Optional) Weave tracing settings                                                                                                                                                                                                                                                                                                                                           |

#### Returns

`Promise`\<[`WeaveClient`](../classes/weaveclient)>

A promise that resolves to the initialized Weave client.

`Throws`

If the initialization fails

#### Defined in

[clientApi.ts:90](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/clientApi.ts#L90)

***
