Cache Browser Automation Actions

Reduce cost and latency by caching browser automation actions across runs

Cache Browser Automation Actions demo
TypeScript
Source code
npx create-browser-app --template basic-caching
uvx create-browser-app --template basic-caching

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