Telegram bot for chatting with your folder using Claude AI
Project description
Folderbot
A Telegram bot that lets you chat with your folder using Claude AI.
Features
- Pre-loaded context: Configure which files to include via glob patterns
- Persistent sessions: Conversation history stored in SQLite
- Auto-logging: All conversations logged to markdown files
- Access control: Whitelist specific Telegram user IDs
Installation
pip install folderbot
Or install from source:
git clone https://github.com/jcardona/folderbot
cd folderbot
pip install -e .
Configuration
Create folderbot/config.yaml:
telegram_token: "YOUR_TELEGRAM_BOT_TOKEN"
anthropic_api_key: "YOUR_ANTHROPIC_API_KEY"
allowed_user_ids:
- 123456789 # Your Telegram user ID
root_folder: /path/to/your/folder
read_rules:
include:
- "**/*.md"
- "**/*.txt"
exclude:
- "**/docs/**"
- ".git/**"
auto_log_folder: logs/
Get your Telegram user ID from @userinfobot.
Usage
Run directly
folderbot
# or
python -m folderbot
Run as systemd service
systemctl --user enable folderbot
systemctl --user start folderbot
Commands
/start- Initialize bot/clear- Clear conversation history/new- Start new topic/status- Show session info/files- List files in context
Development
pip install -e ".[dev]"
pytest
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
folderbot-0.1.4.tar.gz
(15.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
folderbot-0.1.4-py3-none-any.whl
(14.1 kB
view details)
File details
Details for the file folderbot-0.1.4.tar.gz.
File metadata
- Download URL: folderbot-0.1.4.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
448ef5f332eda58b77e2bf49d7b274d23668caafce77a97bcfc2ce34db5ecf5d
|
|
| MD5 |
aaf84e5cb4b9b5d4d40de38272e0c877
|
|
| BLAKE2b-256 |
ca3b37350311e467f11394246fac78145589ab697f4e1185efc7c27b818f4fc8
|
File details
Details for the file folderbot-0.1.4-py3-none-any.whl.
File metadata
- Download URL: folderbot-0.1.4-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ce28e8f0ef6cba2e3b08cab464852cb85d4a9531e9a86534dc6a55eed43d3c9
|
|
| MD5 |
db42a99fcf75315bd76b19c8bca2dedc
|
|
| BLAKE2b-256 |
7f3325b53d81658d09c128ac76d8313812bcb702bb03d0b00971ca6d3ff2680c
|