This release is a pre-release and may not be stable for production use.
LemonPie
LemonPie — A lightweight Ollama client for terminal users
LemonPie is a compact CLI for interacting with an Ollama server. It manages chat sessions and persists history locally, designed to be tiny and portable — ideal for lightweight systems and terminal users, but usable anywhere with Python and network access.
✨ Features
- Start and manage chat sessions with Ollama models
- Persist session history in your OS's standard user data directory
- Configure host, default model, and aliases via a config file in your OS's standard user config directory
- Interactive setup wizard (
lmConfig --init) for first-time configuration — verifies server reachability and lists available models for selection - Add, remove, and list models with aliases (
lmConfig) - Switch models mid‑session with confirmation
- Atomic writes for safety (tmp + replace)
- Streaming responses from Ollama for real‑time output
- Graceful handling of Ctrl‑C interrupts
📂 Project Structure
LemonPie/
├── src/
│ └── lemonpie/ # Core package namespace
│ ├── main.py # CLI session manager (entrypoints: lm, lemonpie)
│ ├── config.py # Configuration logic & I/O
│ ├── paths.py # OS-appropriate config/data directory resolution
│ ├── time_utils.py # Timestamp helpers
│ ├── cli/
│ │ ├── parser.py # Argument parsing (lm)
│ │ ├── ui.py # Terminal helpers & confirmation
│ │ └── config_cmd.py # Config manager (entrypoint: lmConfig)
│ ├── engine/
│ │ ├── models.py # Model finding & resolution
│ │ └── ollama.py # Ollama client interaction
│ └── sessions/
│ └── storage.py # Session persistence
├── tests/ # pytest suite
├── docs/
│ ├── config.example.json # Configuration template
│ └── design/ # Design docs (model-verification.md, etc.)
├── .github/workflows/ # CI & release pipelines
├── pyproject.toml # Package & build configuration
├── README.md # Project overview
├── LICENSE # GPLv3 license
└── .gitignore
⚙️ Configuration
LemonPie keeps its config file and session history in your OS's standard user directories (via platformdirs) — not in the project folder:
| OS | Config Path | Sessions Path |
|---|---|---|
| Linux | ~/.config/lemonpie/ |
~/.local/share/lemonpie/sessions/ |
| macOS | ~/Library/Application Support/lemonpie/ |
~/Library/Application Support/lemonpie/sessions/ |
| Windows | %LOCALAPPDATA%\lemonpie\ |
%LOCALAPPDATA%\lemonpie\sessions\ |
Both are overridable via environment variables — LEMONPIE_CONFIG_DIR and LEMONPIE_SESSIONS_DIR — useful for testing or running in a container.
docs/config.example.json is a template. Run lmConfig --init to set up your config interactively — it verifies server reachability, lists installed models for selection, and writes the file for you. lmConfig also auto-creates a minimal config on first use if you prefer to configure manually.
Example structure:
{
"server": "http://127.0.0.1:11434",
"default": "qwen2.5-coder:3b",
"models": [
{ "alias": "qwen", "name": "qwen2.5-coder:3b" },
{ "alias": null, "name": "qwen2.5-coder:1.5b-base" }
]
}
server: Ollama host URL
default: canonical model name (full identifier)
models: list of objects with alias (nullable) and name
🚀 Usage
lm / lemonpie
-
Start a new session
lm -n "Hello" -
Start with a specific model
lm -n -m qwen "Hello" -
Send a prompt to the current session
lm "Tell me about git add" -
List sessions
lm -l -
Print current session history
lm -p -
Switch model in current session
lm -m qwen2.5-coder:3b
lmConfig
-
First-time setup
lmConfig --init -
First-time setup (skip server verification)
lmConfig --init --force -
Manage models
lmConfig --add-model qwen qwen2.5-coder:3b
lmConfig --list-models
lmConfig --remove-model qwen
👉 Full command reference.
🗺 Roadmap
Planned features and improvements:
- Code completion (autocomplete)
- Model verification state machine
- Enhanced error handling and user feedback
- Cross‑platform packaging (apt, winget, Homebrew)
- Future schema validation for config/session files
👉 See the full roadmap for details.
📜 License
This project is licensed under the GNU General Public License v3.0 (GPLv3).You may redistribute and/or modify it under the terms of the GPL as published by the Free Software Foundation.See the license file for details.
Metadata
Release files for lemonpie-cli 0.2.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lemonpie_cli-0.2.0rc2.tar.gz | 54.6 kB | With provenance | Details for lemonpie_cli-0.2.0rc2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lemonpie_cli-0.2.0rc2-py3-none-any.whl | Python 3 | none | any | Details for lemonpie_cli-0.2.0rc2-py3-none-any.whl |
Total release size: 85.9 kB
Release files / lemonpie_cli-0.2.0rc2.tar.gz
| Download URL | lemonpie_cli-0.2.0rc2.tar.gz |
|---|---|
| Size | 54.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25ac34be9f22b0414807fc8e6060ae2a2d04f82b6737b3efe8fddb4559c31a4d
|
|
BLAKE2b-256 checksum How to use checksums |
c353732a29194926fdcd515373f04878c8dfb230b57349f31a3490bca7a0bc03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logRelease files / lemonpie_cli-0.2.0rc2-py3-none-any.whl
| Download URL | lemonpie_cli-0.2.0rc2-py3-none-any.whl |
|---|---|
| Size | 31.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6069a61f10e24cf43c10031272adbb0060b0cd20d24400884ad1cb02e4b93479
|
|
BLAKE2b-256 checksum How to use checksums |
c6381e63200c5ff374284e39d8d32d86eef0241fc99f30e135a3c7426d8ae4e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logSecurity for lemonpie-cli 0.2.0rc2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lemonpie_cli-0.2.0rc2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.