Skip to content
painbabaPublic

About

OpenBerry - a local agentic browser for Windows. Goal in, work done: an agent drives your real Edge/Chrome across tabs via the Chrome DevTools Protocol, logged in as you. 100% local, MIT.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

OpenBerry

Local agentic browser for Windows — an open-source Strawberry-style capability: you give a goal, an agent drives your real Edge/Chrome across tabs via Chrome DevTools Protocol (CDP), logged in as you, and does the work. 100% local, zero npm dependencies, MIT.

Goal in -> navigate -> snapshot -> click/type/extract -> screenshot -> done

Quick start

node src/cli.js --demo "test the pipeline"     # offline mock planner, proves the plumbing
node src/cli.js "summarize the top story on example.com"   # live LLM

LLM config (live mode)

Any OpenAI-compatible endpoint works (OpenAI, DeepSeek, Groq, LM Studio, a local proxy):

export OPENBERRY_LLM_KEY=<key>
export OPENBERRY_LLM_BASE=https://api.openai.com/v1   # optional
export OPENBERRY_LLM_MODEL=gpt-4o-mini                # optional

No key? --demo uses a deterministic planner so the whole pipeline runs offline.

How it works

  • src/browser.js — finds Edge/Chrome, launches it with --remote-debugging-port=9333, tab creation via PUT /json/new (CDP requires the PUT verb)
  • src/cdp.js — minimal CDP client on Node's native WebSocket: evaluate, trusted click (scrollIntoView + hover + press + release), React-safe per-character typing, screenshot, wheel scroll. 45s watchdog on every socket.
  • src/agent.js — the agent loop: LLM plans the next tool call (function-calling), the loop executes it, feeds the result back, repeats until done or step cap (12).
  • src/llm.js — OpenAI-compatible chat-completions client; mock planner fallback.
  • src/cli.js — CLI entry; writes a JSONL transcript + screenshots into sessions/<ts>/

Tools the agent can call

navigate, snapshot, click, type, extract, scroll, screenshot, done

Layout

sessions/<timestamp>/
  transcript.jsonl   every action + result
  screenshot-NNN.png  on-demand captures

Roadmap (next)

  • multi-tab orchestration (open N tabs, parallel extraction)
  • session persistence (resume a browser session)
  • presentation/metadata generators (Strawberry's slide deck feature)
  • meeting-notes capture (audio -> transcript -> summary)

About

OpenBerry - a local agentic browser for Windows. Goal in, work done: an agent drives your real Edge/Chrome across tabs via the Chrome DevTools Protocol, logged in as you. 100% local, MIT.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages