Skip to content

Releases

2.1.0

Choose a tag to compare

@psychofict psychofict released this 16 Oct 02:43

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+K palette 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-suggestions shows starter prompts on an empty thread.
  • BrowserLLMWidget.ask(text) returns a Promise of the answer, on() and off() listen for ready, open, close, message and error, config() changes more settings live, and destroy() 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-accent to keep a colour of your own.

Server

  • /assets serves the UI's fonts, without a key like the pages that use them.
  • /api/gallery takes offset and answers has_more.
  • Images made through /v1/images/* keep a record beside them (<image>.json: brief, kind, prompt sent, model, size), returned by /api/gallery as record and deleted with the image.
  • /api/status lists each provider's last 40 requests as recent.

Client

  • A fallback server for chat: BROWSER_LLM_FALLBACK_API (with _KEY and _MODEL, default
    gemini-browser). browser-llm ask, client.ask() and the MCP ask tool retry once there
    when the first server is unreachable, answers 429 or 5xx, or returns nothing. Images and
    design do not fall back. The MCP health tool 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/delete lists those under already_gone instead of failed, 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

Choose a tag to compare

@psychofict psychofict released this 14 Oct 08:16

A reorganized, installable package with one command, and a tighter scope.

Upgrading from 0.x

  • Files moved: the code is now the browser_llm package; scripts are in scripts/, service templates in deploy/systemd/, and the guides in docs/. The top-level gen_asset.py, design.py, client.py, serve.sh, mcp.sh and healthcheck.sh stay 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 | version replaces running the scripts. python -m browser_llm is the same. The browser-llm console script used to start the server directly; it now takes a subcommand, so browser-llm serve is the old behaviour.
  • Renamed settings: BROWSER_LLM_IMAGE_DIR replaces GEMINI_IMAGE_DIR and IMAGE_DIR, BROWSER_LLM_PUBLIC_URL replaces GEMINI_PUBLIC_URL, and BROWSER_LLM_API replaces GEMINI_API. The old names still work and the server logs which one it found.
  • Forwarding between installs is removed: REMOTE_PROVIDERS and REMOTE_API_KEY are gone, and a server that still sets REMOTE_PROVIDERS logs that it is ignored. Another machine now calls this API directly with BROWSER_LLM_API_KEY (see Configuration).
  • The original single-prompt prototype, gemini_bot.py, is removed.
  • Imports: from client import ask still works from the checkout; new code should use from browser_llm.client import ask.

Added

  • A .env file beside the checkout, read on start; the real environment wins over it. .env.example lists 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.whl installs the package with the dashboard and widget: pip install browser_llm_api-2.0.0-py3-none-any.whl, then browser-llm --help.
  • browser_llm_api-2.0.0.tar.gz is the Python source archive. The full checkout, with scripts/, the systemd templates, the desktop app and the docs, is the tag's source code archive below, or git 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

Choose a tag to compare

@psychofict psychofict released this 08 Jul 03:30

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 fenced blocks (not flattened Python/Run toolbar text), with buffered streaming for correctness.
  • Installable — pip install -e . provides a browser-llm command; clone-and-run via serve.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).