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

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.1
File Size Uploaded Provenance Actions
lobsta-0.3.1.tar.gz 51.7 kB With provenance Details for lobsta-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 99.2 kB

Release files / lobsta-0.3.1.tar.gz

Download URL lobsta-0.3.1.tar.gz
Size 51.7 kB
Tags Source
SHA-256 checksum
How to use checksums
99618a54c826e9bc406cd1d48a335b9799e851eee2d3c252f24fc3174eff3f2f
BLAKE2b-256 checksum
How to use checksums
548169b6e907687cb1a2484996c3f935b025337cd7aeb9cecec93aa01be542a1
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.1-py3-none-any.whl

Download URL lobsta-0.3.1-py3-none-any.whl
Size 47.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
481f0fd684a854fd653f568bdceb9f20d142469f4ac89f8000d845edded5e3a5
BLAKE2b-256 checksum
How to use checksums
119e2cbf40a18ed48da1957bde653cd3eafe51d8c227decc6acb62487d0bd48d
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.1

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