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

Anthropic

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

Ubuntu

Deploy an Ubuntu instance
Next
Built with

Act SDK

Use Anthropic models with the Act SDK:

  • Default: claude-3-7-sonnet-20250219 (computer use beta)
  • claude-3-7-sonnet-20250219-thinking (computer use beta and extended thinking)
  • claude-3-5-sonnet-20241022 (computer use beta)
  • claude-sonnet-4-20250514 (computer use beta)
  • claude-sonnet-4-20250514-thinking (computer use beta and extended thinking)

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 Anthropic account.

Python
TypeScript
Import model
1from scrapybara.anthropic import Anthropic, UBUNTU_SYSTEM_PROMPT
2
3# Consume agent credits
4model = Anthropic()
5
6# Bring your own API key
7model = Anthropic(api_key="your_api_key")
8
9# Use extended thinking
10model = Anthropic(name="claude-3-7-sonnet-20250219-thinking")
11
12# Use Claude Sonnet 4 with extended thinking
13model = Anthropic(name="claude-sonnet-4-20250514-thinking")
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)