Works with the AI Agents you already use

    Thegan Raspberry Pi Telegram Agent

    by Klaus Lochmann

    1

    Run a private, always-on AI assistant on your Raspberry Pi that you control entirely through a Telegram bot.

    Free

    Security scanned

    What it does

    • Installs a tiny assistant that uses almost no memory on your hardware
    • Configures a Telegram bot so you can chat with your server from your phone
    • Sets up a background service that stays running after your machine reboots
    • Connects your bot to model providers like OpenAI or Anthropic using your own keys
    • Enables your assistant to read files and logs directly on your local machine

    Who it's for

    Raspberry Pi and home server hobbyists

    Run an always-on assistant on your own hardware that you control through Telegram.

    Try asking: “Help me install thegan on my Raspberry Pi 4.”

    Privacy-focused users who want a self-hosted agent

    Keep your files and logs on your own machine without opening any risky network ports.

    Try asking: “Set up a private Telegram bot to manage my home server.”

    Small business owners with a Linux NAS or VPS

    Monitor your server logs and run system tasks via chat without needing a dashboard.

    Try asking: “How do I make my agent check my web server logs every morning?”

    Thegan Raspberry Pi Telegram Agent

    Thegan Raspberry Pi Telegram Agent

    Example session with this skill installed

    I have a Raspberry Pi 5. Can you help me install thegan so I can control it from Telegram?

    • Read your context and instructions
    • Compiled the thegan raspberry pi

    I will help you set up your own self-hosted assistant on your Raspberry Pi 5. We will do this in a few clear steps to make sure everything stays private and secure.

    Step 1: Check your hardware
    First, please open the terminal on your Raspberry Pi and type these commands. Tell me what you see:
    uname -s; uname -m
    systemctl --user --version

    Step 2: Install the program
    Once we confirm your version of Linux is ready, I will give you a command to download and install the assistant. It will place the file in your local bin folder where it belongs.

    Step 3: Create your Telegram bot

    1. Open the Telegram app and search for @BotFather.
    2. Send the message /newbot.
    3. Pick a name for your bot (like "My Home Pi").
    4. BotFather will give you a

    Token.

    Do not paste it here yet. I will tell you where to save it safely on your Pi later so it doesn't leak into our chat history.

    Step 4: Secure access
    We will find your numeric Telegram ID using @userinfobot so that only you can talk to your assistant. This keeps strangers from running commands on your machine.

    Shall we start with Step 1? Go ahead and run those first two commands on your Pi.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    If you have a Raspberry Pi or an old Linux laptop sitting in a drawer, this skill turns it into a dedicated assistant you can talk to on Telegram. It helps you set up a tool called Thegan, which is a tiny program that stays running even after you turn off your screen or log out.

    How it works

    1. You ask your AI agent to help you install the helper program on your Linux machine or Raspberry Pi.
    2. Your AI agent walks you through creating a private bot on Telegram and getting your secret keys ready.
    3. You follow the steps to save your settings in a hidden folder on your machine so only you can access them.
    4. Your AI agent shows you how to start the service so it stays awake 24/7 and responds whenever you message it.

    Frameworks & tools

    This skill uses a program called Thegan, which is a small file built with Rust. It works with Linux systemd to keep the service running and uses the Telegram app as your remote control.

    Why this beats prompting it yourself

    Setting up a self-hosted bot normally requires knowing complex server commands and how to handle security tokens. This skill handles the technical setup step by step, ensures you don't accidentally leak your private keys in chat logs, and configures the "heartbeat" of the service so it doesn't crash when you close your laptop.

    Use cases

    • Check how much disk space is left on your home server by asking Telegram.
    • Send a file to your bot and ask it to summarize the text for you.
    • Tell your bot to watch a specific system log and report any errors it finds.
    • Run long-running tasks in the background that keep going even if you go offline.

    Known limitations

    This skill only works on Linux machines like a Raspberry Pi or a VPS. It does not work on Windows and cannot set up the permanent background service on macOS.

    Installs Thegan, a static Rust binary, via a shell script. Configures systemd user units for persistence and handles environment variables in ~/.config/thegan/env. Supports OpenRouter, OpenAI, Anthropic, and Google/Gemini providers. Uses Telegram long polling for outbound-only communication, requiring no inbound ports or port forwarding.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    • Free with an Agensi account

    Accounts
    TelegramKlauslochmann

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files

    Allowed Hosts

    thegan.klauslochmann.com
    api.telegram.org
    Listed1 day ago

    What's inside

    Creator

    Klaus Lochmann

    Klaus Lochmann

    Frequently Asked Questions

    This skill turns your Linux machine or Raspberry Pi into a private assistant that you control through the Telegram app. It allows you to check system logs, manage files, and run long background tasks on your own hardware without needing to open any ports or use complex cloud setups.

    You need a machine running Linux, such as a Raspberry Pi or an old laptop, and a Telegram account. You will also need a model provider key from a service like OpenRouter, OpenAI, Anthropic, or Google to power the assistant's brain.

    The skill configures a tiny program on your computer that stays active 24/7, even after you log out. It also helps you create your own private Telegram bot so you can talk to your computer from your phone or desktop at any time.

    This skill is specifically for Linux systems and cannot set up the permanent background service on Windows or macOS. It also only works through the Telegram app and does not support other chat platforms or web dashboards.

    You can start by telling your agent that you want to install the helper program on your Raspberry Pi or Linux box. You can also ask for help creating a new Telegram bot or setting up a service that stays running after you close your laptop.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free