> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stagehand.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrations

> Connect Stagehand to your agents, frameworks, and application workflows.

Use Stagehand to bring browser automation into the tools you already use. Connect an agent to a browser so it can work across websites, or call Stagehand from an application to automate a specific workflow.

The guides below cover setup, configuration, and working examples. Choose an integration based on what you want to connect.

## Agent Frameworks

Build browser capabilities into your own agent using the framework of your choice. The [Agent Frameworks overview](/v4/integrations/agent-frameworks/overview) explains the shared tools and how to connect them to your framework's agent loop.

<CardGroup cols={2}>
  <Card title="Claude Toolset" icon="https://mintcdn.com/stagehand/wGixboNeawvp2bRX/images/integrations/claude-code.svg?fit=max&auto=format&n=wGixboNeawvp2bRX&q=85&s=d65a5bc0dfac90c2fbe478b79a0ac818" href="/v4/integrations/agent-frameworks/claude-cua-toolset-quickstart" width="24" height="24" data-path="images/integrations/claude-code.svg">
    Give Claude browser tools through the Anthropic SDK with the Stagehand driver.
  </Card>

  <Card title="Eve by Vercel" icon="https://mintcdn.com/stagehand/wGixboNeawvp2bRX/images/integrations/eve.svg?fit=max&auto=format&n=wGixboNeawvp2bRX&q=85&s=78729caf013e2896c405fe6698571f99" href="/v4/integrations/agent-frameworks/eve" width="64" height="64" data-path="images/integrations/eve.svg">
    Give Vercel's framework for building durable agents native Stagehand tools.
  </Card>

  <Card title="Deep Agents" icon="https://mintcdn.com/stagehand/wGixboNeawvp2bRX/images/integrations/deep-agents.svg?fit=max&auto=format&n=wGixboNeawvp2bRX&q=85&s=1faf1664d682f5b8835872df827b7b19" href="/v4/integrations/agent-frameworks/deep-agents" width="64" height="64" data-path="images/integrations/deep-agents.svg">
    Run locally over MCP or deploy native tools with Managed Deep Agents.
  </Card>

  <Card title="CrewAI" icon="https://mintcdn.com/stagehand/iRPpx9wJXm1u6P9r/images/integrations/crewai.svg?fit=max&auto=format&n=iRPpx9wJXm1u6P9r&q=85&s=a67a913fd30b9fa8ae1dda7e52dc4353" href="/v4/integrations/agent-frameworks/crewai" width="48" height="48" data-path="images/integrations/crewai.svg">
    Connect a Python CrewAI agent over MCP/stdio.
  </Card>

  <Card title="Mastra" icon="https://mintcdn.com/stagehand/iRPpx9wJXm1u6P9r/images/integrations/mastra.svg?fit=max&auto=format&n=iRPpx9wJXm1u6P9r&q=85&s=2b85ce745fc87f2eced19c6cf1c47121" href="/v4/integrations/agent-frameworks/mastra" width="40" height="40" data-path="images/integrations/mastra.svg">
    Connect a Mastra agent over MCP/stdio.
  </Card>

  <Card title="Vercel AI SDK" icon="https://mintcdn.com/stagehand/wGixboNeawvp2bRX/images/integrations/vercel-ai-sdk.svg?fit=max&auto=format&n=wGixboNeawvp2bRX&q=85&s=26b319be49dbbc949d23469a5ddea442" href="/v4/integrations/agent-frameworks/vercel-ai-sdk" width="256" height="222" data-path="images/integrations/vercel-ai-sdk.svg">
    Use Stagehand tools in a Vercel AI SDK tool loop over MCP/stdio.
  </Card>
</CardGroup>

## CLI Agents

Give a coding agent browser tools for tasks such as checking a running application or gathering information from the web. The [CLI Agents overview](/v4/integrations/cli-agents/overview) explains how to connect browser tools through the MCP adapter or native extensions.

<CardGroup cols={2}>
  <Card title="Claude Code" icon="https://mintcdn.com/stagehand/wGixboNeawvp2bRX/images/integrations/claude-code.svg?fit=max&auto=format&n=wGixboNeawvp2bRX&q=85&s=d65a5bc0dfac90c2fbe478b79a0ac818" href="/v4/integrations/cli-agents/claude-code" width="24" height="24" data-path="images/integrations/claude-code.svg">
    Give a Claude Code agent persistent Stagehand browser tools over MCP/stdio.
  </Card>

  <Card title="Codex" icon="https://mintcdn.com/stagehand/wGixboNeawvp2bRX/images/integrations/codex.svg?fit=max&auto=format&n=wGixboNeawvp2bRX&q=85&s=35abdb71595d8b5ce65e5046aaf7249a" href="/v4/integrations/cli-agents/codex" width="24" height="24" data-path="images/integrations/codex.svg">
    Give a Codex agent persistent Stagehand browser tools over MCP/stdio.
  </Card>

  <Card title="fx" icon="https://mintcdn.com/stagehand/FPX_47rN602ZItbv/images/integrations/fx.png?fit=max&auto=format&n=FPX_47rN602ZItbv&q=85&s=3377204a7c816527f76b4a6dffc201f9" href="/v4/integrations/cli-agents/fx" width="320" height="320" data-path="images/integrations/fx.png">
    Give the fx coding agent persistent Stagehand browser tools over MCP/stdio.
  </Card>

  <Card title="Pi" icon="https://mintcdn.com/stagehand/wGixboNeawvp2bRX/images/integrations/pi.svg?fit=max&auto=format&n=wGixboNeawvp2bRX&q=85&s=43367a307d1f7dc2f850efa34560c445" href="/v4/integrations/cli-agents/pi" width="800" height="800" data-path="images/integrations/pi.svg">
    Give the Pi coding agent native Stagehand browser tools registered directly by an extension.
  </Card>
</CardGroup>

## Applications

Use Stagehand directly from your application or script to automate a service's browser workflow. Your code controls the sequence of steps and can combine browser interactions with tools exposed by the page through [WebMCP](/v4/basics/webmcp).

<CardGroup cols={2}>
  <Card title="Stripe" icon="credit-card" href="/v4/integrations/applications/stripe">
    Fill Stripe Checkout through WebMCP tools and submit payment with Stagehand.
  </Card>
</CardGroup>

## Build your own integration

Use the [Stagehand SDK](/v4/first-steps/quickstart) to add browser automation to your application. Combine [Act](/v4/basics/act), [Extract](/v4/basics/extract), and [Observe](/v4/basics/observe) with direct [page interactions](/v4/reference/page) to navigate, interact, and return structured data.

For pages that publish their own tools, use [WebMCP](/v4/basics/webmcp) to discover and invoke them. Choose a local browser or a Browserbase session in [browser configuration](/v4/configuration/browser).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.