Skip to content
Browserbase
    • Primitives
      • BrowsersCloud browsers for your agent to use the web
      • AgentsScale fully managed browser agents with simple prompts
      • SearchFind relevant websites from a single query
      • FetchRetrieve web data as agent-ready HTML, JSON, or markdown
      • RuntimeScalable, sandboxed environments for agent deployments
      • IdentityAuthenticate your agent to navigate the web like a human
      • ModelsUse any model with a single API key
      • ObservabilityUnified debugging your agent across replays, logs, and prompts
    • Open Source
      • Browse CLIGive your agent browsing skills with a single command
      • StagehandThe most popular AI browser automation framework
    • Use Cases
      • Browser Agents
      • Automated Testing
      • Workflow Automation
      • Web Data Extraction
      All use cases
    • Industries
      • AI & Agent Platforms
      • Healthcare
      • Fintech
      • GTM
      • Legal
    • Resources
      • Blog
      • Customers
      • Enterprise
      • Templates
  • Pricing
  • Docs
  • Log in
Log in
Sign up
Get a demo

Cache browser automation actions

Reduce cost and latency by caching browser automation actions across runs

Cache browser automation actions demo

Works with

TypeScriptTypeScriptPythonPythonStagehandStagehand

Built by

Browserbase

Support

support@browserbase.com

Resources

Browserbase docsStagehand websiteStagehand docs
Copy prompt to run with your AI agent
npx create-browser-app --template basic-caching
uvx create-browser-app --template basic-caching

Send this template to your email, or view it on your desktop for the source code.

Cache browser automation actions to reduce cost and latency

Speed up repeated browser automation workflows by caching action results and reusing them across runs. The first run executes actions normally (with LLM calls), while subsequent runs reuse cached results for near-instant execution and $0 additional LLM cost. Perfect for workflows that run the same steps repeatedly, like checkout flows, form submissions, or data extraction pipelines.

Steps

  1. Run the workflow once without caching to establish a baseline
  2. Enable caching and set a cache directory to persist action results across runs
  3. Repeat the same workflow to populate the cache (first cached run)
  4. Run the script again to demonstrate cache hits (0 LLM calls, faster execution)
  5. Inspect the cache directory to see cached action entries

Most Popular Templates

Extract SEC filing data

Search SEC EDGAR by company name, ticker, or CIK and extract recent filing metadata including 10-K, 10-Q, and 8-K reports.

Extract SEC filing data

AI job application automation with Exa

Automatically discover jobs and apply at scale using AI-powered company search and intelligent job application agents.

AI job application automation with Exa

PDF scraping and data extraction with Reducto

Automate downloading PDFs from websites and extract structured data using AI-powered document parsing.

PDF scraping and data extraction with Reducto
Browserbase

Primitives

  • Browsers
  • Web APIs
  • Runtime
  • Identity
  • Model Gateway
  • Observability
  • Stagehand
  • MCP

Industries

  • AI
  • Healthcare
  • GTM
  • Tax
  • Legal

Developers

  • Docs
  • Templates
  • APIs & SDKs
  • Changelog
  • Status
  • Github

Company

  • Careers
  • Customers
  • Partner with Us
  • Trust & Security

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service