llms.py
Lightweight OpenAI compatible CLI, server gateway and OSS Open WebUI alternative for Local and Cloud LLMs
Quick Install
pip install llms-pyš¬ Simple Chat
Ask questions directly from the command line
Run Server
llms --serve 8000š¬ ChatGPT-like Interface
Modern, fast, and privacy-focused web UI for all your local and remote LLMs
What's New in v3
Major release focused on extensibility, expanded provider support, and enhanced user experience
Powered by models.dev integration with automatic daily updates
Add features, providers, and customize the UI with flexible plugins
RAG workflows with document stores, categories, and contextual chat
First-class Python function calling for LLM interactions with your environment
Connect to Model Context Protocol servers for extended tool capabilities
Extend AI capabilities with specialized knowledge, workflows, and tools
Beautiful UIs to evaluate math and execute Python, JS, TS & C# code
Browse and manage all your generated images and audio in one place
Built-in support for Gemini, OpenAI, OpenRouter, Chutes, Z.ai and Nvidia
TTS support for Gemini 2.5 Flash/Pro Preview models
Beautiful LaTeX math typesetting for equations and formulas
Powerful Model Selector
Smart search, advanced filtering, sorting, and favorites system
Learn more āGemini File Search & RAG
Build knowledge bases with document stores and contextual AI chat
Learn more āRun Code UI
Execute Python, JavaScript, TypeScript, and C# code with syntax highlighting
Learn more āImage & Audio Generation
Seamless media generation through UI and CLI
Runtime Provider Management
Enable or disable providers on the fly without configuration changes
Learn more āReady to Get Started?
Install llms.py and start chatting with 530+ AI models in minutes