Skip to main content

LLM Webchat logo

LLM Webchat

PyPI Tests License

A plugin for the LLM tool. When installed, running llm webchat starts a local webserver. Visiting its address in the browser lets you see conversations in your llm database and chat with supported language models.

The appearance and functionality of llm-webchat are heavily customizable: styles, frontend behavior and even the backend logic.

For more details, see the high-level architecture docs or the extension docs.

Quickstart

llm install llm-webchat
llm webchat

Screenshot

Screenshot of LLM Webchat in a browser

Configuration

LLM Webchat recognizes the following environment variables (all of which are optional):

  • LLM_WEBCHAT_CONVERSATION_IDS: a comma-separated whitelist of conversations.
  • LLM_WEBCHAT_JAVASCRIPT_PLUGINS: a comma-separated list of .js files containing frontend plugins (see the extension docs for more details).
  • LLM_WEBCHAT_STATIC_PATHS: a comma-separated list of additional file paths that should be served from /plugins.
  • LLM_WEBCHAT_HOST: the host address the server binds to. Defaults to 127.0.0.1.
  • LLM_WEBCHAT_PORT: the port the server listens on. Defaults to 8000.
  • LLM_WEBCHAT_TOOL_CHAIN_LIMIT: maximum number of chained tool responses allowed per message. Defaults to 20. Set to 0 for unlimited.

Development

Prerequisites

  • A reasonably recent version of Python with uv
  • A reasonably recent version of Node

Building and running

Build the frontend (output goes to src/llm_webchat/static/):

cd frontend
npm install
npm run build

Run the backend (serves the built frontend at /):

uv run llm-webchat

For frontend development with hot reload (proxies /api requests to the backend):

cd frontend
npm run dev

Running tests

uv run pytest
cd frontend
npm test

Metadata

Release files for llm-webchat 2.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-webchat 2.7.2
File Size Uploaded
llm_webchat-2.7.2.tar.gz 303.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-webchat 2.7.2
File Interpreter ABI Platform
llm_webchat-2.7.2-py3-none-any.whl Python 3 none any Details

Total release size: 427.9 kB

Release files / llm_webchat-2.7.2.tar.gz

Download URL llm_webchat-2.7.2.tar.gz
Size 303.7 kB
Tags Source
SHA-256 checksum
How to use checksums
17eabdc438f1b2b24940409d87e6095729e61f9c8e6318c74005d598d5d2366b
BLAKE2b-256 checksum
How to use checksums
d3918b7531d8798bd8fbec707f8e634e50502040e35a3aaa98e887fd4923b689
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Release files / llm_webchat-2.7.2-py3-none-any.whl

Download URL llm_webchat-2.7.2-py3-none-any.whl
Size 124.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a071412075255a09ffc61e47dafc2aa60b7886f1dabd3515dbb566d474adc10
BLAKE2b-256 checksum
How to use checksums
7799889feaffb5ed07988bab615b97ce0ae773c8cf31b9b85407166a14d181bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Release history Release notifications | RSS feed

This release

2.7.2 This release

2 release files

2.7.1

2 release files

2.7.0

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page