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

# Get started

<Tip>
  STOP. Do not read past this section until you have read and followed [/quickstart.md](/quickstart.md).

  Goal: produce a reliable SDK automation script. The intended authoring flow is generate then edit, not write browser automation from scratch.

  Do not hand-write SDK code with element IDs, selectors, or form fields from memory. Element IDs, selectors, and field mappings must come from a live `observe()` call, CLI `notte page observe` output, or generated workflow code. Guessed browser targets fail on real pages.

  Use the Notte skill and CLI to inspect the live site, validate actions/selectors, handle auth/session state, and export workflow code with `notte sessions workflow-code` before using SDK docs or SDK code.

  SDK reference pages are for understanding, running, or editing generated workflow code. They are not the starting point for manually authoring the initial browser automation. SDK-first code is guesswork on real-world pages with dynamic selectors, auth state, CAPTCHAs, and anti-bot behavior.
</Tip>

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

## Create Agent

Use [NotteClient.Agent](/typescript-sdk-reference/client/agent) to create this object from your configured client.

```typescript theme={null}
client.Agent(options: AgentConstructor): Agent;
```

<ParamField body="options" type={"AgentConstructor"} required />

## Related types

* [AgentConstructor](/typescript-sdk-reference/types/agentconstructor)

## Usage

* [run](/typescript-sdk-reference/agent/run): Run agent task (blocking) - mirrors Python run method behavior This is the main method that mirrors the Python SDK's run method
* [start](/typescript-sdk-reference/agent/start): Start an agent task (non-blocking) - mirrors Python start method
* [stop](/typescript-sdk-reference/agent/stop): Stop the agent - mirrors Python stop method
* [status](/typescript-sdk-reference/agent/status): Get agent status - mirrors Python status method

<Accordion title="Direct constructor reference">
  ```typescript theme={null}
  new Agent(client: NotteClient, options: AgentConstructor): Agent;
  ```

  <ParamField body="client" type={"NotteClient"} required />

  <ParamField body="options" type={"AgentConstructor"} required />

  ## Related types

  * [AgentConstructor](/typescript-sdk-reference/types/agentconstructor)
</Accordion>

<Accordion title="Properties">
  ### agentId

  ```typescript theme={null}
  agentId: string
  ```

  Get agent ID - mirrors Python agent\_id property

  ### sessionId

  ```typescript theme={null}
  sessionId: string
  ```

  Get session ID - mirrors Python session\_id property
</Accordion>
