Repository navigation
Releases
2.1.0
A new dashboard and widget. Nothing to change when upgrading, except one widget default (below).
Dashboard
- A new layout: a rail with Chat, Studio, Gallery and Server, a chat list beside the conversation (a drawer on a phone, where the rail becomes a tab bar), and an address per view. One design in both themes, with Geist shipped inside the package.
Ctrl+Kpalette over every chat and command, and keyboard shortcuts listed under?.- Chat: edit and resend a message, the model that answered and the time it took under each answer, a waiting state that says what is happening, Try again on a failed turn, wrap and copy on code cards, and an image viewer.
- Studio: kinds as cards, shapes with their proportions, a frame that counts while an image is made, results kept in this browser, and buttons to download, reuse as a reference, send to a chat or reuse the brief. The site's image counter shows under Generate when the server has read it.
- Gallery: grouped by day, loads more as you scroll, opens in the viewer with the brief and model, deletes from the viewer.
- Server: a status headline, a chart of each provider's last 40 request times, and a widget builder with a live preview that writes the snippet.
Widget
- The same design, with an animated bubble and panel, a larger size you can switch to, copy per answer, an image viewer, an unread dot and Retry on a failed turn.
data-suggestionsshows starter prompts on an empty thread.BrowserLLMWidget.ask(text)returns a Promise of the answer,on()andoff()listen forready,open,close,messageanderror,config()changes more settings live, anddestroy()removes the widget.- The default accent is now the brand lavender in both themes; it used to be black on light pages and white on dark ones. Set
data-accentto keep a colour of your own.
Server
/assetsserves the UI's fonts, without a key like the pages that use them./api/gallerytakesoffsetand answershas_more.- Images made through
/v1/images/*keep a record beside them (<image>.json: brief, kind, prompt sent, model, size), returned by/api/galleryasrecordand deleted with the image. /api/statuslists each provider's last 40 requests asrecent.
Client
- A fallback server for chat:
BROWSER_LLM_FALLBACK_API(with_KEYand_MODEL, default
gemini-browser).browser-llm ask,client.ask()and the MCPasktool retry once there
when the first server is unreachable, answers 429 or 5xx, or returns nothing. Images and
design do not fall back. The MCPhealthtool reports the fallback server too.
Fixed
- A link in an answer can no longer carry a
javascript:address, in the dashboard or the widget. Answers are model output, and the dashboard's origin is trusted with the history and delete endpoints. - Narrowing the window to phone width no longer saves the chat list as hidden for the desktop.
- The Server view no longer runs off the right edge of a phone screen.
- A reset during an answer no longer lets the cut-off answer land in the widget's new thread.
- Deleting a chat whose account conversation was already gone no longer reports that the server kept it:
/api/conversations/deletelists those underalready_goneinstead offailed, and the dashboard says they were already gone.
CI is still unavailable on the repository's account, so the checks in Releasing were run by hand for this release.
Checks for this release: GitHub Actions is not available on this repository, so the steps in Releasing were run by hand: 281 unit tests pass at this tag, and the wheel installs and reports 2.1.0. The live image check was not run.
2.0.0
A reorganized, installable package with one command, and a tighter scope.
Upgrading from 0.x
- Files moved: the code is now the
browser_llmpackage; scripts are inscripts/, service templates indeploy/systemd/, and the guides indocs/. The top-levelgen_asset.py,design.py,client.py,serve.sh,mcp.shandhealthcheck.shstay as forwarding files, so a service, MCP config or script that calls them by path keeps working. New installs should use the new paths. - One command:
browser-llm serve | login | ask | image | design | mcp | health | versionreplaces running the scripts.python -m browser_llmis the same. Thebrowser-llmconsole script used to start the server directly; it now takes a subcommand, sobrowser-llm serveis the old behaviour. - Renamed settings:
BROWSER_LLM_IMAGE_DIRreplacesGEMINI_IMAGE_DIRandIMAGE_DIR,BROWSER_LLM_PUBLIC_URLreplacesGEMINI_PUBLIC_URL, andBROWSER_LLM_APIreplacesGEMINI_API. The old names still work and the server logs which one it found. - Forwarding between installs is removed:
REMOTE_PROVIDERSandREMOTE_API_KEYare gone, and a server that still setsREMOTE_PROVIDERSlogs that it is ignored. Another machine now calls this API directly withBROWSER_LLM_API_KEY(see Configuration). - The original single-prompt prototype,
gemini_bot.py, is removed. - Imports:
from client import askstill works from the checkout; new code should usefrom browser_llm.client import ask.
Added
- A
.envfile beside the checkout, read on start; the real environment wins over it..env.examplelists every setting. BROWSER_LLM_PREWARM=0, which starts no browser until a request needs one.browser-llm health, a one-screen summary of the running server.- A wheel and source archive that install the package with the dashboard and widget inside it.
- Docs reorganized into task pages, plus this changelog, a contributor guide, a release checklist, and issue and pull-request templates.
Changed
- Pillow is a core dependency, since design sets and measured colours need it.
~in the image folder setting is expanded wherever it comes from.
Files
browser_llm_api-2.0.0-py3-none-any.whlinstalls the package with the dashboard and widget:pip install browser_llm_api-2.0.0-py3-none-any.whl, thenbrowser-llm --help.browser_llm_api-2.0.0.tar.gzis the Python source archive. The full checkout, withscripts/, the systemd templates, the desktop app and the docs, is the tag's source code archive below, orgit clone.
How this release was checked
GitHub Actions is locked on this account for billing, so CI did not run. The same steps were run by hand on the tagged code: ruff clean; 248 unit tests passing; the wheel built, installed into a clean environment and ran browser-llm version; an MCP handshake listed all seven tools. It was also checked live on a signed-in install: a text answer, an image made in ChatGPT's Create image mode, the MCP server through its forwarding file, and the watchdog through its forwarding file.
v0.1.0 — first release
First tagged release of browser-llm-api — an OpenAI-compatible API (chat + image generation) backed by an automated Chrome session. No API key: it drives a logged-in web session for Gemini (gemini-browser) and ChatGPT (chatgpt-browser), selected per request via the OpenAI model field.
Highlights
- OpenAI-compatible endpoints —
/v1/chat/completions(streaming + non-streaming),/v1/images/generations,/v1/models. - Mini web UI at
/— streaming chat, image generation, gallery, and a Status tab with live per-provider telemetry (requests, errors, avg/last latency, recycle countdown). - Embeddable chat widget (
/widget.js) — a Shadow-DOM-isolated floating chat bubble any page can add with one<script>tag; live demo at/demo. - CodeMirror-aware ChatGPT extraction — code answers come back as proper
fencedblocks (not flattenedPython/Runtoolbar text), with buffered streaming for correctness. - Installable —
pip install -e .provides abrowser-llmcommand; clone-and-run viaserve.sh/ systemd (install-service.sh) also supported.
Requirements
Google Chrome + Python 3.12. Chrome runs non-headless (real display, or Xvfb on a headless box). See the README.
⚠️ Disclaimer: this automates logged-in sessions on third-party sites that have no official API for this use. It may violate those services' Terms of Service and is inherently fragile (a site UI change can break extraction). For personal/experimental use, at your own risk. No warranty (MIT).