Official documentation website for llms.py - a lightweight OpenAI compatible CLI and server gateway for multiple LLMs.
llms.py is a super lightweight CLI tool and OpenAI-compatible server that acts as a configurable gateway over multiple Large Language Model (LLM) providers. It supports text, image, and audio generation, allowing you to seamlessly mix and match local models with premium cloud LLMs.
The documentation is organized into four main sections:
- Installation
- Quick Start
- API Keys
- Configuration
- Web UI
- Multi-Modal Support
- Server Mode
- Analytics & Metrics
- CLI Usage
- Use Cases
- Docker Deployment
- GitHub OAuth Setup
- Troubleshooting
- Providers
- API Reference
- Changelog
.
├── docs/ # Original markdown files
├── src/
│ └── content/
│ └── docs/
│ ├── index.mdx # Home page
│ ├── getting-started/
│ ├── features/
│ ├── guides/
│ └── reference/
├── astro.config.mjs # Starlight configuration
└── CONVERSION_SUMMARY.md # Detailed conversion notes
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
This site is automatically deployed to GitHub Pages when changes are pushed to the main branch.
To enable GitHub Pages deployment for the first time:
- Go to your repository settings on GitHub
- Navigate to Settings → Pages
- Under Source, select GitHub Actions
- Push to the
mainbranch or manually trigger the workflow from the Actions tab
The site will be deployed to https://llmspy.org (or your configured custom domain).
You can also manually trigger a deployment:
- Go to the Actions tab in your GitHub repository
- Select the Deploy to GitHub Pages workflow
- Click Run workflow
The documentation was converted from three original markdown files:
docs/intro.md- Introduction and overviewdocs/guide.md- Comprehensive usage guidedocs/ui.md- Web UI documentation
These were reorganized into 18 focused documentation pages for better navigation and discoverability.
- llms.py GitHub: github.com/ServiceStack/llms
- PyPI Package: pypi.org/project/llms-py
- Starlight Docs: starlight.astro.build
Documentation content is licensed under the same license as llms.py.
Check out Starlight’s docs, read the Astro documentation, or jump into the Astro Discord server.