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

# init

> TypeScript SDK reference

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

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

Defined in: [src/clientApi.ts:86](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/clientApi.ts#L86)

## Parameters

### 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?

`Partial`\<\{ `attributes`: `Record`\<`string`, `any`>; `genai`: \{ `batchOptions?`: `BufferConfig`; `spanProcessor?`: `"batch"` | `"simple"` | `SpanProcessor`; }; `printCallLink`: `boolean`; `useCallsComplete`: `boolean`; `useOTelV2`: `boolean`; }>

(Optional) Weave tracing settings

## Returns

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

A promise that resolves to the initialized Weave client.

## Throws

If the initialization fails
