> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# start

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
</Tip>

[Source: node-sdk/src/anything.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/anything.ts)

Start a run for `task` and stream the agent's progress back.

Running is slow (minutes) and billable; prefer the marketplace
(`client.functions.list()`) when a ready-made function already fits.

The returned `chunks` generator holds the connection open — iterate it to
completion, or `return`/`break` out of the loop to cancel and release the
stream.

```ts theme={null}
const run = await client.anything.start({ task: 'get the weather in Paris' });
for await (const chunk of run.chunks) {
  if (chunk.type === 'text-delta') process.stdout.write(String(chunk.delta ?? ''));
}
```

Rejects with a `NotteAPIError` when the API answers with a non-2xx status.

```typescript theme={null}
NotteAnything.start(body: AnythingStartOptions): Promise<AnythingStartResult>;
```

## Parameters

<ParamField body="body" type={"AnythingStartOptions"} required />

## Returns

```typescript theme={null}
Promise<AnythingStartResult>
```

## Related types

* [AnythingStartOptions](/typescript-sdk-reference/types/anythingstartoptions)
* [AnythingStartResult](/typescript-sdk-reference/types/anythingstartresult)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.