Skip to content
aicoolies logo
Midscene.js logo

Midscene.js

AI-powered vision-driven UI automation for web, Android, and iOS

Midscene.js is an open-source UI automation framework from ByteDance's Web Infra team that uses vision-based AI models to understand and interact with interfaces. It replaces fragile CSS selectors with natural language descriptions, supporting web browsers via Playwright and Puppeteer, Android via ADB, and iOS via WebDriverAgent from a unified JavaScript SDK.

About Midscene.js

Midscene.js introduces a paradigm shift in UI automation by replacing traditional DOM selector approaches with vision-based AI understanding. Instead of writing brittle selectors like clicking on a specific CSS class, you describe interactions in natural language such as click the login button and the AI model visually locates and interacts with the correct element. This approach survives UI redesigns that would break conventional selectors, dramatically reducing test maintenance overhead.

The framework supports multiple platforms from a single JavaScript SDK. Web automation works through Playwright or Puppeteer integration, Android automation connects via ADB, and iOS automation uses WebDriverAgent. A Chrome Extension provides immediate in-browser experimentation without any code setup. The MCP server integration exposes Midscene actions as tools for AI agents, enabling higher-level automation orchestration through natural language.

Built by ByteDance's Web Infra team and released under the MIT license with over 8,000 GitHub stars, Midscene.js supports multiple AI backends including GPT-4o, Claude, Gemini, Qwen-VL, and ByteDance's open-source UI-TARS model for self-hosted deployments. The caching system records AI planning results so repeated test runs execute at near-native automation speeds. Production users report testing costs as low as two dollars per day.

Pricing & Platform Specs

Pricing Summary

Free and 100% open source under the MIT License by ByteDance Web Infra Dev. Midscene.js has $0 software licensing fees and no commercial software tiers. Operational costs depend exclusively on the chosen multimodal vision AI provider (e.g., pay-as-you-go token pricing for OpenAI GPT-4o, Claude 3.5 Sonnet, ByteDance Volcano Engine UI-TARS, or $0 when running self-hosted open vision models on local/private GPUs).

full pricing breakdown →

Supported Platforms

JavaScript/TypeScript, npm, Playwright/Puppeteer, Android, iOS

Explore categories, tags & use cases

AI agent framework for web browser automation

Browser Use is an open-source AI agent framework with 99K+ GitHub stars enabling LLMs to control web browsers via natural language. Y Combinator-backed, it lets agents navigate sites, fill forms, extract data, and complete multi-step tasks autonomously. Built on Playwright with vision-based element detection, multi-tab management, cookie persistence, and self-correcting actions. Supports OpenAI, Anthropic, and local models with a simple Python API for building custom browser agents.

freemiumOpen Source

AI-powered web browser automation with Playwright

Stagehand is an open-source browser-agent SDK from Browserbase that combines deterministic browser automation with AI primitives such as act(), extract(), observe(), and agent(). Instead of relying only on brittle selectors, developers can use natural-language actions, Zod-backed structured extraction, page observation, action caching, and Browserbase cloud-browser infrastructure for production web automation.

Open Source

Reliable end-to-end testing

Cross-browser E2E testing framework by Microsoft supporting Chromium, Firefox, and WebKit with one API. Features auto-waiting, tracing with timeline/screenshots/DOM snapshots, codegen for recording tests, and parallel execution. Component testing for React, Vue, Svelte. Built-in API testing, network mocking, and mobile emulation. Known for reliability and speed vs Selenium/Cypress. 70K+ GitHub stars, rapidly becoming the E2E standard.

Open Source

Side-by-Side Comparisons

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Midscene.js?

Midscene.js is an open-source UI automation framework from ByteDance's Web Infra team that uses vision-based AI models to understand and interact with interfaces. It replaces fragile CSS selectors with natural language descriptions, supporting web browsers via Playwright and Puppeteer, Android via ADB, and iOS via WebDriverAgent from a unified JavaScript SDK.

Is Midscene.js free?

Yes — Midscene.js is open source and free to use. Free and 100% open source under the MIT License by ByteDance Web Infra Dev. Midscene.js has $0 software licensing fees and no commercial software tiers. Operational costs depend exclusively on the chosen multimodal vision AI provider (e.g., pay-as-you-go token pricing for OpenAI GPT-4o, Claude 3.5 Sonnet, ByteDance Volcano Engine UI-TARS, or $0 when running self-hosted open vision models on local/private GPUs).

Is Midscene.js open source?

Yes — Midscene.js is open source.

Is Midscene.js still maintained?

Yes — Midscene.js is active. Its listing was last verified on September 6, 2026.

What are the best Midscene.js alternatives?

The first editor-selected Midscene.js alternatives are Browser Use, Stagehand, Playwright.