Skip to content

v0.1.0 — first release

Choose a tag to compare

@psychofict psychofict released this 08 Jul 03:30
· 61 commits to master since this 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 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).