# Thegan Raspberry Pi Telegram Agent

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

Thegan Raspberry Pi Telegram Agent is a free AI agent skill on Agensi by Klaus Lochmann, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Klaus Lochmann](https://www.agensi.io/creators/klaus-lochmann)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/thegan-raspberry-pi-telegram-agent
- Tags: ai-agents, raspberry-pi, telegram-bot, rust, self-hosted, linux-server

## 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: "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: "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: "How do I make my agent check my web server logs every morning?"

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

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Thegan Raspberry Pi Telegram Agent skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does this skill actually do for me?

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.

### What do I need to have ready before using this?

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.

### What is the final result of using this skill?

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.

### Are there any devices or apps this won't work with?

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.

### How should I ask my agent to get started with this?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
