Skip to main content

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 eval shows 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:

  1. 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.
  2. 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.
  3. Python sandbox. lobsta downloads it (~1 GB, once) if Podman is installed.

Web search works without an account or key (Exa); lobsta config changes it.

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. 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

License

MIT. Inspired by Hermes Agent and Pi; no code copied.

Metadata

Release files for lobsta 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lobsta 0.4.0
File Size Uploaded Provenance Actions
lobsta-0.4.0.tar.gz 60.6 kB With provenance Details for lobsta-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lobsta 0.4.0
File Interpreter ABI Platform Actions
lobsta-0.4.0-py3-none-any.whl Python 3 none any Details for lobsta-0.4.0-py3-none-any.whl

Total release size: 114.9 kB

Release files / lobsta-0.4.0.tar.gz

Download URL lobsta-0.4.0.tar.gz
Size 60.6 kB
Tags Source
SHA-256 checksum
How to use checksums
34c95c73a0ec52defeb794062d099a68f8b2a280f6f94f8ff49a91e448c23553
BLAKE2b-256 checksum
How to use checksums
caaa955b092a8ebeb72d558a43d2146d77b0fb2bbd71c68dafd244f331cecaa2
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 5, 2026.

Transparency log

Release files / lobsta-0.4.0-py3-none-any.whl

Download URL lobsta-0.4.0-py3-none-any.whl
Size 54.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94e14d233f977bff5be5567454bac01b3f4dbf4dc81cd5cad17d189729ff82ad
BLAKE2b-256 checksum
How to use checksums
4c34083e491ef877b396ebdd8c4be50952b960231dbd94c977abcdd0c3ba9c42
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 5, 2026.

Transparency log

Security for lobsta 0.4.0

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.

Select from 2 files

Attestation for lobsta-0.4.0.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 5, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page