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)
  • Docker, to run Python (optional: without it, lobsta uses a simple calculator)

Install

pipx install lobsta

Then run lobsta. The first time, it walks you through setup:

  1. Telegram bot. Create one with @BotFather (command /newbot) and paste its token.
  2. Model. lobsta finds the model servers running on your computer, or you type the address of one (details).
  3. Web search and the Python sandbox: the defaults work without accounts or keys.

When lobsta starts, it shows a pairing code: send /pair CODE to your bot to connect your Telegram account.

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

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

lobsta sandbox clean            # remove the sandbox containers
docker rmi lobsta-sandbox:1     # remove the sandbox image (~1 GB)
pipx uninstall lobsta

Settings and conversations stay in ~/.lobsta; delete that folder to remove them too.

Documentation

License

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

Metadata

Release files for lobsta 0.3.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.3.0
File Size Uploaded Provenance Actions
lobsta-0.3.0.tar.gz 50.9 kB With provenance Details for lobsta-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 98.0 kB

Release files / lobsta-0.3.0.tar.gz

Download URL lobsta-0.3.0.tar.gz
Size 50.9 kB
Tags Source
SHA-256 checksum
How to use checksums
07a24c4978bb7804db462365f88784f2d0c60d8bb58caa41d513269d83f0aeea
BLAKE2b-256 checksum
How to use checksums
dc437c47b239717b67ed753e201fd4a7b189426a88c68c25cfff9cb6c82b28c8
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.3.0-py3-none-any.whl

Download URL lobsta-0.3.0-py3-none-any.whl
Size 47.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
846fe06b91a5097973b7bc2dbebb089e087e1b14909e1a1acb89e17a0e8feab7
BLAKE2b-256 checksum
How to use checksums
696fa8a9f0a68064c3b702dee276ad534c621f852d5fe3146de16d1f8054fb69
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.3.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.3.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