lobsta
A private AI assistant on Telegram, running on your own model.
lobsta connects a Telegram bot to a model on your computer (llama.cpp, vLLM, SGLang, LM Studio, Ollama) or to an OpenAI-compatible cloud API. Message it from anywhere: it answers with your model, searches the web, reads pages, and runs Python for exact calculations, files and charts.
- Private. Your model on your machine. Nothing is opened to the internet, and only your Telegram account can use the bot.
- Simple. One command runs it; Ctrl+C stops it. Settings and conversations are plain files.
- Checked.
lobsta evalshows that your model works with it, in a few minutes.
Requirements
- Linux, or Windows with WSL2 (guide)
- Python 3.11 or newer, and pipx (Ubuntu:
sudo apt install pipx && pipx ensurepath) - A model server (how to start and connect one)
- Podman, to run Python (optional: without it, lobsta uses a simple calculator)
Install
curl -fsSL https://raw.githubusercontent.com/nochinsky/lobsta/main/install.sh | sh
It installs what's missing (Python 3.11+, pipx and Podman, with sudo), then lobsta, then
starts setup. Read it first if you like: the same URL without | sh. By hand, the same is
sudo apt install pipx podman, then pipx install lobsta, then lobsta.
Setup walks you through:
- Telegram. Create a bot with @BotFather (command
/newbot) and paste its token. Then press Start in the bot's chat: lobsta asks whether that's you, and from then on only your account can use the bot. - Model. Pick one of the model servers running on your computer, or type the address of one (details). lobsta asks the server for the context length and whether the model reads images.
- Web search. lobsta searches with Exa. It works without a key, but the free tier is rate-limited; paste a free key from Exa to avoid that, or press Enter to skip.
- Python sandbox. lobsta downloads it (~1 GB, once) if Podman is installed.
lobsta runs while its terminal window is open. To keep it running after closing the window,
start it in tmux.
Use
Write to the bot as you would to any assistant: answers appear as they're written, with headings, tables and math. Keep your Telegram app up to date to see them that way. While it works you see what it's doing: its searches, the pages it reads, and what it's thinking. You can send photos and files too. Research questions ("compare…", "find out…") take a minute or two: it searches several sources and cites them.
| In Telegram | |
|---|---|
/new |
Start a new conversation |
/sessions |
Continue an earlier conversation |
/model |
Switch model |
/stop |
Stop the current answer (or tap Stop under it) |
/status |
Model, server and conversation |
| On your computer | |
|---|---|
lobsta |
Run the bot |
lobsta setup |
Add a model, or start over |
lobsta doctor |
Check everything and explain how to fix problems |
lobsta eval |
Check that a model works with lobsta |
lobsta config |
Edit the settings |
Update
lobsta checks for a new version once a day and says so when it starts, in lobsta doctor
and in /status. It never updates itself; to update:
pipx upgrade lobsta
Then stop lobsta (Ctrl+C) and start it again. Your settings and conversations are kept. If
lobsta then says the sandbox image is missing, run lobsta sandbox build. What changed is in
the changelog.
Uninstall
curl -fsSL https://raw.githubusercontent.com/nochinsky/lobsta/main/uninstall.sh | sh
It removes lobsta, its sandbox containers and image, then asks before deleting ~/.lobsta
(settings, bot token, paired accounts, conversations). Podman and pipx stay installed. The Telegram bot itself stays too: delete it with /deletebot to
@BotFather.
Documentation
- Models and servers: start a server, connect it, check it
- Configuration: every setting
- Windows (WSL2)
- Privacy and security
- How it works, for developers
- Changelog
License
MIT. Inspired by Hermes Agent and Pi; no code copied.
Metadata
Release files for lobsta 0.5.2
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 |
|---|---|---|---|---|
| lobsta-0.5.2.tar.gz | 63.4 kB | With provenance | Details for lobsta-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lobsta-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for lobsta-0.5.2-py3-none-any.whl |
Total release size: 118.8 kB
Release files / lobsta-0.5.2.tar.gz
| Download URL | lobsta-0.5.2.tar.gz |
|---|---|
| Size | 63.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba61109bff90c080df11e0dae9e6297aabd32631b6a5344e08228a46f98226da
|
|
BLAKE2b-256 checksum How to use checksums |
48650ebb0b3a2313461fb930d8529368e09a7dcd7ce2d19a8329a04e5eceb0c0
|
| 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 Dec 6, 2026.
Transparency logRelease files / lobsta-0.5.2-py3-none-any.whl
| Download URL | lobsta-0.5.2-py3-none-any.whl |
|---|---|
| Size | 55.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66e6fa79a808986d4891f70537c9499c7eda84f17cf585135d6e9f93e735b496
|
|
BLAKE2b-256 checksum How to use checksums |
962bd6aff163ea9c2c85223477406af874ff50f51cbd80d07c669e15cb9d51b8
|
| 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 Dec 6, 2026.
Transparency logSecurity for lobsta 0.5.2
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 lobsta-0.5.2.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 Dec 6, 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.