Metadata-Version: 2.4
Name: litechat-py
Version: 0.2.0
Summary: Lightweight self-hosted chat UI for local and cloud LLMs, in one binary.
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.8
Project-URL: Homepage, https://github.com/erinoooo/litechat
Project-URL: Documentation, https://github.com/erinoooo/litechat/tree/main/docs
Project-URL: Changelog, https://github.com/erinoooo/litechat/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/erinoooo/litechat/issues
Keywords: llm,chat,ollama,openai,anthropic,mcp,self-hosted
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Communications :: Chat
Description-Content-Type: text/markdown

# liteChat

A lightweight, self-hosted chat UI for local and cloud LLMs. It runs as one small binary with one SQLite file: no Python, Node or database server at runtime. This package installs that binary as the `litechat` command.

![liteChat](https://raw.githubusercontent.com/erinoooo/litechat/main/docs/screenshots/chat-dark.png)

## Install and run

```sh
pipx install litechat-py      # or: uv tool install litechat-py, or pip install litechat-py
litechat
```

Or run it once without installing: `uvx --from litechat-py litechat`.

Open http://localhost:3000 and choose a password. liteChat finds AI servers running on the machine, such as Ollama, llama.cpp or LM Studio, and adds them in one click. You can also add OpenAI-compatible APIs and Anthropic.

Chats are stored in `~/.local/share/litechat` on Linux, `~/Library/Application Support/litechat` on macOS and `%LocalAppData%\litechat` on Windows. Use `-data <folder>` to store them somewhere else, and `-addr` to change the listen address (for example `-addr 127.0.0.1:8080`).

Wheels are available for Linux (x86-64, ARM64, ARMv7), macOS 12+ (Intel and Apple Silicon) and Windows (x86-64, ARM64). For other platforms, use a [release download](https://github.com/erinoooo/litechat/releases) or the Docker image.

## Features

- Streaming chat with branching: edit messages, regenerate replies, switch between versions
- Replies generate on the server, so they survive closed tabs
- Tools through MCP servers
- Images, PDF, DOCX and code attachments
- Full-text search, and optional search by meaning
- Import from ChatGPT and Open WebUI; export to JSON or Markdown

Documentation, Docker setup and source code: https://github.com/erinoooo/litechat
