Anthropic

Build Scrapybara agents with Anthropic models

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)

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.

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")
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)