> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-cursor-proxy-indicator-and-text-6cda.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream Task Progress

> Stream agent steps in real time as the task executes.

Use the streaming interface to get each step as it happens — useful for progress indicators, logging, or building real-time UIs.

<CodeGroup>
  ```python Python theme={null}
  from browser_use_sdk import AsyncBrowserUse

  client = AsyncBrowserUse()
  async for step in client.run("Find the cheapest flight from NYC to London on Google Flights"):
      print(f"Step {step.number}: {step.next_goal}")
  ```

  ```typescript TypeScript theme={null}
  import { BrowserUse } from "browser-use-sdk";

  const client = new BrowserUse();
  for await (const step of client.run("Find the cheapest flight from NYC to London on Google Flights")) {
    console.log(`Step ${step.number}: ${step.nextGoal}`);
  }
  ```
</CodeGroup>

<Tip>
  The same `run()` method returns either a final result or an async iterator depending on how you call it. No separate streaming API needed.
</Tip>
