Skip to main content
Beta Feature — Browser automation is currently in beta. Please report any issues to founders@morphllm.com.
Use Morph’s optimized morph-computer-use-v0 model with browser-use Python SDK to get 10x cheaper browser automation with faster inference.

Why Use This?

You get: browser-use’s Python interface + Morph’s pricing + faster inference.

Installation

Quick Start

Morph is OpenAI-compatible, so you can use it directly with browser-use’s ChatOpenAI:

Real-World Examples

Test product search and checkout flows:
Use case: Automated regression testing for e-commerce platforms
Test complex forms and multi-step flows:
Use case: Continuous testing of lead generation forms
Test login flows and authenticated sessions:
Security note: Use test accounts only. Never use real credentials in automated tests.
Extract structured data from web pages:
Use case: Competitive pricing analysis, product monitoring

Configuration

Custom Browser Options

Control browser behavior with browser-use config:

Error Handling

Handle failures gracefully:

Advanced Usage

Parallel Testing

Run multiple tests concurrently:

Integration with Pytest

Create a test suite:

Comparison: Morph SDK vs browser-use

Choose the right tool for your use case: Use Morph SDK if: You’re building in TypeScript and want live sessions, recordings, or async task tracking Use browser-use if: You’re in Python and want the browser-use agent interface

Troubleshooting

Error: 401 Unauthorized or Invalid API keyFix:
  1. Get your API key at app.morphllm.com/settings/api-keys
  2. Set environment variable: export MORPH_API_KEY=sk-your-key
  3. Verify it’s loaded: print(os.environ.get('MORPH_API_KEY'))
Error: Browser crashes, hangs, or times outFix: Adjust browser config and max_steps
Error: Agent gives up or can’t complete the taskFix: Make task more specific and increase steps
Error: playwright._impl._errors.Error: Executable doesn't existFix: Install Playwright browsers

Next Steps

Morph SDK

Use the TypeScript SDK for live sessions and recordings

API Reference

Direct API access for custom integrations

browser-use Docs

Official browser-use documentation

Get API Key

Create your Morph API key