{"id":49556573,"url":"https://github.com/browser-use/browsercode","last_synced_at":"2026-05-24T06:03:11.980Z","repository":{"id":354096830,"uuid":"1216494445","full_name":"browser-use/browsercode","owner":"browser-use","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-09T01:13:06.000Z","size":211300,"stargazers_count":18,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T01:37:00.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browser-use.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-21T00:56:36.000Z","updated_at":"2026-05-09T01:15:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/browser-use/browsercode","commit_stats":null,"previous_names":["browser-use/browsercode"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/browser-use/browsercode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browser-use%2Fbrowsercode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browser-use%2Fbrowsercode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browser-use%2Fbrowsercode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browser-use%2Fbrowsercode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browser-use","download_url":"https://codeload.github.com/browser-use/browsercode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browser-use%2Fbrowsercode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32889971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-03T03:10:26.217Z","updated_at":"2026-05-24T06:03:11.973Z","avatar_url":"https://github.com/browser-use.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"static/browsercode_ascii_banner.svg\" alt=\"browsercode\" width=\"100%\"\u003e\n\n# The browser-native agent\n\n\u003cbr/\u003e\n\nA streamlined coding agent that drives real browsers through unconstrained CDP.\n\nThe unbounded power of the browser working seamlessly with your code. The agent adapts to every site at runtime and writes scripts to reuse later.\n\n\u003c!-- DEMO VIDEO HERE --\u003e\n\n## One-Line Install\n\nRun this in a terminal that supports bash:\n\n```sh\ncurl -fsSL https://bcode.sh/install | bash\n```\n\n## Usage\n\nOpen the TUI:\n\n```sh\nbcode\n```\n\nRun an agent headlessly:\n\n```sh\nbcode run \"On Google flights return all flight details from New York to SF tomorrow\"\n```\n\n### Connect an LLM\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"static/browser_harness_by_model_light.png\"\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"static/browser_harness_by_model_dark.png\"\u003e\n  \u003cimg alt=\"Performance of LLMs with BrowserCode on BU Bench V1\" src=\"static/browser_harness_by_model_light.png\" width=\"100%\"\u003e\n\u003c/picture\u003e\n\nBrowserCode supports any model you can reach with an API key, plus [every provider OpenCode supports](https://opencode.ai/docs/providers).\n\nUse `/connect` in the TUI, or set provider API keys in your environment.\n\nRecommended models from current BrowserCode evals:\n\n- Frontier: `claude-opus-4-7`, `gpt-5.5`\n- Value: `glm-5.1`, `mimo-v2.5-pro`\n- Budget: `gemini-3-flash-preview`\n\n### Connect a Browser\n\n**Let the agent connect for you.** It knows how. \n\nYou can prompt:\n\n```text\nConnect to my current tab on amazon.com and find deals for 64GB DDR5 RAM, return URLs\n```\n\nThe agent will take control of your actual browser.\n\n```text\nMake a new browser profile and QA test http://localhost:3000, fix bugs and open a PR\n```\n\nThe agent will work locally in its own browser profile.\n\n```text\nOpen a remote browser and extract every item sold on mcdonalds.com in SF\n```\n\nThe agent will control a Browser Use Cloud browser and give you a link to watch it.\n\n#### Cloud Browsers\n\n- Browser Use Cloud offers unlimited free browsers, limited to 3 concurrent sessions, with stealth, captcha solving, and proxies.\n- Just set `BROWSER_USE_API_KEY` in your environment. The agent can sign up completely autonomously; just ask it to. To upgrade further, go to [cloud.browser-use.com](https://cloud.browser-use.com).\n\n## Philosophy: do more with less\n\nBrowser ability and code-writing ability are deeply connected.\n\nWe turned browser interaction into a coding problem; the agent writes JavaScript that drives Chrome directly through CDP. Minimal abstractions. Maximal power to the agent. \n\n*BrowserCode outperforms every browser agent we have tested it against.*\n\n## Architecture\n\nBrowserCode is a fork of [OpenCode](https://github.com/anomalyco/opencode) with a vendored TypeScript port of [Browser Harness](https://github.com/browser-use/browser-harness).\n\nIt adds one core browser primitive:\n\n```text\nbrowser_execute(code)\n  -\u003e runs JavaScript in-process\n  -\u003e talks to Chrome through the DevTools Protocol\n  -\u003e keeps the browser session alive across calls\n  -\u003e returns logs, values, and screenshots to the agent\n```\n\nReusable browser scripts are written to:\n\n```text\n.bcode/agent-workspace/\n```\n\n*BrowserCode is not built by the OpenCode team and is not affiliated with OpenCode in any way.*\n\n## Telemetry\n\nBrowserCode sends anonymous usage traces to help improve the project. To opt out, set `DO_NOT_TRACK=1` in your environment.\n\n## Contributing\n\nMost upstream contributions belong in one of the projects BrowserCode builds on:\n\n- Browser automation: [browser-use/browser-harness](https://github.com/browser-use/browser-harness)\n- Core coding-agent: [anomalyco/opencode](https://github.com/anomalyco/opencode)\n\nRun from source:\n\n```sh\ngit clone https://github.com/browser-use/browsercode.git\ncd browsercode\nbun install\nbun run --cwd packages/opencode dev\n```\n\n\u003chr\u003e\n\n\u003cimg src=\"static/browsercode_ascii_readme.webp\" alt=\"browsercode ascii footer\" width=\"100%\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowser-use%2Fbrowsercode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowser-use%2Fbrowsercode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowser-use%2Fbrowsercode/lists"}