For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordDashboard
DocumentationAPI ReferenceCookbook
DocumentationAPI ReferenceCookbook
  • Get Started
    • Introduction
    • Quickstart
    • Best Practices
  • Guides
    • Act SDK
    • Auth States
    • Conversations
    • Tools
  • Providers
    • OpenAI
    • Anthropic
  • Instances
    • Ubuntu
    • Browser
    • Windows
  • Resources
    • Starter Templates
    • Cursor Rules
    • Cookbook
Logo
DiscordDashboard
On this page
  • Act SDK
Providers

OpenAI

Build Scrapybara agents with OpenAI models
Was this page helpful?
Previous

Anthropic

Build Scrapybara agents with Anthropic models
Next
Built with

Act SDK

Use OpenAI models with the Act SDK:

  • Default: computer-use-preview (computer use beta)

Consume agent credits or bring your own API key. Without an API key, each step consumes 1 agent credit. With your own API key, model charges are billed directly to your OpenAI account.

Python
TypeScript
Import model
1from scrapybara.openai import OpenAI, UBUNTU_SYSTEM_PROMPT
2
3# Consume agent credits
4model = OpenAI()
5
6# Bring your own API key
7model = OpenAI(api_key="your_api_key")
Take action
1from scrapybara import Scrapybara
2from scrapybara.tools import BashTool, ComputerTool, EditTool
3
4client = Scrapybara()
5instance = client.start_ubuntu()
6
7client.act(
8 tools=[
9 BashTool(instance),
10 ComputerTool(instance),
11 EditTool(instance),
12 ],
13 model=model,
14 system=UBUNTU_SYSTEM_PROMPT,
15 prompt="Research Scrapybara",
16)