跪拜 Guibai
← All articles
Frontend · Open Source · Agent

Skyvern: 23k Stars for a Browser Agent That Stops Caring About Selectors

By 狂师 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

UI automation's maintenance burden comes from selector breakage, and Skyvern shifts that burden to an LLM, which re-reads the page after every site redesign, so scripts survive changes that would otherwise turn a thousand cases red. The cost is an API bill per step, a license that restricts closed-source derivatives, and no built-in bypass for Cloudflare or captchas.

Summary

Skyvern abandons the selector-first model of traditional UI automation. Instead of hardcoding XPath or CSS paths, the agent looks at a live page: it injects JavaScript to number every interactive element, takes a full-page screenshot, pairs that with a DOM-derived element list, and hands the whole thing to an LLM. The model picks an element ID and an action, and Playwright executes it. Redesigns and relocated buttons no longer break the suite as long as the functionality still exists.

Deployment runs through pip for the API-only service or Docker for the full UI. Both need at least one LLM API key (OpenAI, Anthropic, Gemini, or any OpenAI-compatible endpoint) and the .env ENABLE_* switches are off by default. The project ships two engines: the v1 six-step loop that calls the model each step, and taskv3, a persistent-session, tool-calling variant that cuts prompt overhead. Known pitfalls hit Windows native installs, dependency conflicts at version 1.0.31, and the pip package's lack of a web UI.

Production readiness depends on the use case. The AGPL-3.0 license forces source disclosure for hosted modifications, anti-bot measures stay exclusive to the cloud version, and every loop step is a multimodal API call, so a complex task can run tens of thousands of tokens. The official WebBench score of 64.4% accuracy is a self-reported figure, not a promise for every site.

Takeaways
— Skyvern's core loop injects JS to number interactive elements, parses HTML plus screenshot, extracts an ID-tagged element list, asks an LLM for the next action, executes via querySelector and Playwright, then repeats until the model outputs COMPLETE.
— Element addressing uses IDs chosen by the LLM rather than LLM-generated XPath, a deliberate move to avoid hallucinated locators.
— The decision prompt's first line declares that all page content is data, never instructions, as a prompt-injection defense.
— Two engines coexist: v1 calls the LLM independently on each step and is auditable; taskv3 uses a persistent session with tools like observe/execute/finish to cut prompt token overhead.
— pip install skyvern[server] gives only the API service on port 8000; Docker compose runs Postgres, API, and a web UI reachable at localhost:8080.
— The .env file requires at least one LLM API key, and each provider has an ENABLE_* switch that defaults to false; filling a key without flipping the switch does nothing.
— Version 1.0.31 has a pip install bug (ResolutionImpossible from litellm/fastmcp conflict); fix by upgrading to 1.0.32+ or using uv pip install.
— Skyvern is AGPL-3.0 licensed; anti-bot features like Cloudflare handling exist only in the cloud-hosted version.
— Official WebBench accuracy is 64.4% for self-tested tasks, with WRITE tasks (form fill, login, download) ranking first; the human-supervised reference line sits at 76.5%.
— Each step in the loop is a multimodal LLM call, so a multi-step task can consume tens of thousands of tokens; budget the API bill before scaling to thousands of sites.
Conclusions

Having the LLM pick from a finite list of element IDs instead of generating XPath is a practical way to eliminate the highest hallucination source in UI automation; it turns the model's job into multiple choice, where it is far stronger.

Treating web content as untrusted data in the decision prompt is a necessary security boundary for any browser agent that will crawl the open internet; its placement at the very first line suggests the team has hit real prompt injection in the wild.

The coexistence of v1 and v3 engines reflects a real tension: v1's step-by-step flow is easier to debug and audit, but v3's persistent session slashes repeated-prompt overhead, so teams must choose between observability and token cost.

Skyvern's 23k stars are far below browser-use's 121k, but its feature set—visual task templates, execution records, workflow UI—targets someone who wants a finished tool rather than an Agent SDK to hack on.

The self-reported WebBench number of 64.4% includes WRITE-heavy tasks where the project ranks first, yet without independent benchmarking it should be treated as indicative, not a universal success rate.

From the discussion

ID-based element addressing over model-written XPath anchors the exchange. One account validates it from direct experience: model-generated XPaths routinely target non-existent nodes, and a candidate list plus ID was the fix that held. That same comment opens the open question of whether Skyvern's validator feedback returns a plain failure sentence or structured page-difference data for the next loop. A separate remark notes prior work on the same interaction elements used for weight annotation, and one comment simply praises the article's Star section as solidly written.

— Model-written XPath selects unstable targets; a candidate list plus per-step ID addressing is the design that holds up in practice.
— Whether Skyvern's validator feeds back a bare failure reason or structured page-difference data into the next step remains unanswered.
— ID-based interaction-element handling has prior precedent, previously applied to weight annotation rather than agent action selection.
Featured comments
badhope

Using ID for element addressing and not letting the model write XPath directly — that design is critical. We stepped on this ourselves with UI Agent before: XPaths generated by the model often pointed at nodes that didn't exist, and it only got stable after we switched to a candidate list + ID. A question: how does Skyvern feed Validator feedback back into the next step? Does it just return a failure-reason sentence, or does it include structured page differences?

wenps

I also wrote that interactive-element thing, but back then it was used for annotating weights.

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗