llms.py

llmspy.org · 2026-07-23 · by Long Nguyen ·generic
Lightweight OpenAI compatible CLI and server gateway for multiple LLMs

llms.py

llms.py

The self-hosted, OpenAI-compatible AI gateway for text, image & audio — a lightweight CLI, server and OSS Open WebUI alternative for Local and Cloud LLMs

View the DocsExplore the GalleryView on GitHub

July 20, 2026 \- v4 Released! →

llms.py v4 — Text, Image, Audio, Speech & Projects

530+

Models

24

Providers

3

Modalities · Text · Image · Audio

100%

Open Source & Self-Hosted

One tool, every modality

Generate Anything

From a single self-hosted gateway — chat with 530+ models, create images, and synthesize speech across 24 providers

Text & ChatA fast, private, ChatGPT-like web UI over every local & cloud LLM — with tools, MCP, skills, agents and 200+ system promptsImage GenerationCreate images via Gemini, OpenAI, OpenRouter, Chutes, Z.ai & Nvidia — right inside the chat and gallery workflowAudio & SpeechHigh-quality text-to-speech with Gemini & OpenRouter models, plus voice-to-text input via the microphone

Create → Publish → Showcase

Your Creations, in the Public Gallery

Anything you generate in llms.py can be published with one click — landing in the live showcase at ai.llmspy.org, browsable by everyone with categories, tags, ratings and infinite scroll.

  • Browse generated images & audio by category and tag
  • Play full Projects built by AI — games and apps, ready to run
  • Free & anonymous publisher account — no email required

Explore the GalleryLearn more →

ImagesAudioProjects

ai.llmspy.org Public Gallery - Images

Playable & self-contained

Projects Built by AI

Complete, self-contained apps & games — generated with llms.py and published for anyone to open and play

Space BlocksSpace BlocksSpace themed Tetris with power upsBreakoutBreakoutStunning sci-fi breakout game20482048Neon 2048 Arcade gamePac ManPac ManStunning Sci-Fi PacmanAsteroidsAsteroidsThe classic Asteroids gamePongPongSci-Fi Neon Pong

Browse all projects →

Quick Install

`pip install llms-py`

💬 Simple Chat

Ask questions directly from the command line

terminal

Copy

$ llms "What is the capital of France?"

Paris is the capital of France. It's located in the north-central part of the country and is known for its art, fashion, gastronomy, and culture. The city is home to iconic landmarks like the Eiffel Tower, the Louvre Museum, and Notre-Dame Cathedral.

Run Server

`llms --serve 8000`

Beautiful Themes

Personalize your experience with a selection ofhandcrafted themes

Nord themeMatrix themeBlue Smoke themeDark themeLight Slate themeSoft Pink themeLight Sky themeLight theme

Nord

NordMatrixBlue SmokeDark

Light SlateSoft PinkLight SkyLight

💬 ChatGPT-like Interface

Modern, fast, and privacy-focused web UI for all your local and remote LLMs

llms.py main chat interface showing conversation with AI

What's New

Latest release focused on extensibility, expanded provider support, and enhanced user experience

530+ Models from 24 ProvidersPowered by models.dev integration with automatic daily updatesExtensions SystemAdd features, providers, and customize the UI with flexible pluginsGemini File SearchRAG workflows with document stores, categories, and contextual chatCredentials AuthUsername/Password authentication with Admin UI and CLI user managementAgent ProfilesSpecialized AI agents with custom prompts, tools, themes, and Planner→Coder workflowsProjectsSecure workspace isolation that restricts AI agent filesystem access to designated project foldersTool SupportFirst-class Python function calling for LLM interactions with your environmentServer ToolsBuilt-in support for provider hosted Anthropic & OpenRouter server tools like web searchMCP SupportConnect to Model Context Protocol servers for extended tool capabilitiesSkills SupportExtend AI capabilities with specialized knowledge, workflows, and toolsAgent BrowserAI-powered browser automation with live preview, script editor, and element inspectorThemesCustomize the look and feel with built-in themes or create your ownCalculator & Run Code UIsBeautiful UIs to evaluate math and execute Python, JS, TS & C# codeMedia GalleryBrowse and manage all your generated images and audio in one placeVoice InputVoice-to-text transcription via microphone button or ALT+D keyboard shortcutImage GenerationBuilt-in support for Gemini, OpenAI, OpenRouter, Chutes, Z.ai and NvidiaAudio GenerationTTS support for Gemini 2.5 Flash/Pro Preview modelsKaTeX Math RenderingBeautiful LaTeX math typesetting for equations and formulas

Model Selector

Smart search, advanced filtering, sorting, and favorites over 530 models from 24 providers

Learn more →

Model Selector with search and filtering

Credentials Auth

Built-in Username/Password authentication with a Sign In page, Admin Web UI and CLI for user managing accounts, roles, and account locking

Learn more →

Sign In Page

Manage Users

Create User

My Account

Lock User

Agent Profiles & Projects

Configure specialized AI agents with custom prompts, tools, and themes — and scope their filesystem access to secure project workspaces

Agent Profiles →Projects →

Ubi Personal Assistant Agent Profile

Projects Editor

Agent Profile Selector

Planner Agent Profile

Coder Agent Profile

Projects Menu

Sci-Fi Space Game — Main Menu built by Coder agent

Sci-Fi Space Game — Gameplay built by Coder agent

Gemini File Search & RAG

Build knowledge bases with document stores and contextual AI chat

Learn more →

Document Upload with Categories

Filestore Management

Bidirectional Sync

Search All Documents

Search by Category

Gemini RAG chat with document context

Tools & Function Calling

First-class Python function calling for LLM interactions

Learn more →

Tools Page

Tool Selector UI

File System Tools

Time Tools

Tool Call Example

Python Code Execution Tool

JavaScript Code Execution Tool

C# Code Execution Tool

Server Tools

Built-in support for provider-hosted OpenRouter & Anthropic server tools like web search, web fetch & code execution

Learn more →

Server Tools Selector Tab

Configure Server Tool

MCP Support

Extend LLM capabilities with Model Context Protocol servers

Learn more →

MCP Servers with registered tools

Gemini image generation via MCP

Add MCP Server

Execute MCP Tools

Tool Execution Results

Interactive HTML results from MCP tools

Skills Support

Extend AI capabilities with specialized knowledge, workflows, and tools

Learn more →

Skills Selector

Manage Skills

Create New Skills with Skill Creator

Installing New Skills

Edit Skills

Agent Browser

An integrated workspace for building and running automated browser scripts with AI assistance, live previews, and an interactive element inspector

Learn more →

Agent Browser Overview

Browser URL Navigation

Browser Dialog Interaction

AI Script Generation

Generated Browser Script

Run Browser Script

Calculator UI

Beautiful interface for evaluating Python math expressions

Learn more →

Calculator UI with Python math support

Run Code UI

Execute Python, JavaScript, TypeScript, and C# code with syntax highlighting

Learn more →

PythonJavaScriptTypeScriptC#

Run Python Code with syntax highlighting

KaTeX Math Typesetting

Beautiful rendering of LaTeX math expressions

Learn more →

Popular math expressions

Basic math expressions

Image & Audio Generation

Seamless media generation through UI and CLI

Image Generation →Audio Generation →

Image Generation with aspect ratio selection

Audio Generation with TTS

Media Gallery

Beautiful UI to browse all your generated images and audio

Learn more →

Portrait Images Gallery

Square Images Gallery

Landscape Images Gallery

Audio Generations Gallery

System Prompts Library

200+ curated system prompts for every use case

Learn more →

System Prompts Library

Runtime Provider Management

Enable or disable providers on the fly without configuration changes

Learn more →

Provider management interface

Ready to Get Started?

Install llms.py and start chatting with 530+ AI models in minutes

View DocumentationView on GitHub

llmspy.org · 76 images · 37 links

Comments (0)

No comments yet