Skip to the page

SpecStream for OpenAI computer use

SpecStream is the live web data engine for teams and agents. The Responses API returns clicks and keystrokes. Playwright runs them in a SpecStream browser session over its connect_url, for $0.10 an hour charged by the second.

What you get

A full loop to copy
One Python file opens the session, runs each batch of actions in order, returns a screenshot with previous_response_id, and closes the session.
The current computer tool
The script sends tools=[{"type": "computer"}] and reads the actions array. The guide lists what changed from computer-use-preview.
You pay for the time alone
Driven over connect_url, clicks and keystrokes add no charge. A 5 minute session is under 1 cent of browser time.

Set it up

  1. Run pip install openai playwright httpx on Python 3.10 or newer.
  2. Create a SpecStream key with a spending limit and set SPECSTREAM_API_KEY and OPENAI_API_KEY.
  3. Save the guide's agent.py and run python agent.py.

The full setup guide has every step, with what to do if something doesn’t arrive.

Live web data, in OpenAI computer use.

Ask in your own words for companies, places, people, filings or anything else the web lists.