Control your entire laptop from Telegram โ AI agent, weather, calendar, web search, git, reminders, crypto/stocks, backups, translation, network scanner, daily digest, and more.
Project description
๐ค Salim v12 โ Your AI-Powered Laptop Assistant on Telegram
Control your entire laptop, run autonomous tasks, and automate your digital life โ all through Telegram.
No cloud. No subscriptions. 100% yours.
โจ What Salim Can Do
| Category | Capability |
|---|---|
| ๐ฅ๏ธ System | Screenshots, process control, power (shutdown/sleep/lock), disk info |
| ๐ Shell | Run any terminal command, live output streaming |
| ๐ Files | Browse, upload, download, search, watch for changes |
| ๐ง AI | Natural language understanding, chat memory, vision (describe images) |
| ๐ Documents | Create DOCX, XLSX, PDF, PPTX, CSV โ receive real files in Telegram |
| ๐ง Email | Send, read, reply, search via SMTP/IMAP โ no third-party app |
| ๐ค Agent | Autonomous multi-step task execution โ "create an invoice and email it" |
| ๐ Weather | Real-time forecasts, 7-day outlook (Open-Meteo, free, no API key) |
| ๐ Calendar | Google Calendar + local calendar, add/view/search events |
| ๐ Web | Fetch pages, DuckDuckGo search, news, YouTube summaries |
| ๐ Git | Full git control โ status, commit, push, pull, clone, branch |
| ๐ Digest | Morning briefing: weather + calendar + email + news + system health |
| ๐ Translate | 30+ languages via LibreTranslate (free, open-source) |
| ๐ Network | Port scanner, network devices, ping, DNS, traceroute, WHOIS |
| โฐ Reminders | Natural language: "remind me to call John in 2 hours" |
| ๐ฐ Finance | Stocks, crypto, forex in real-time (Yahoo Finance + CoinGecko, free) |
| ๐พ Backup | rsync/tar encrypted file backups, scheduled recurring |
| ๐ Transcript | JSONL session logs, searchable audit trail, token usage stats |
| ๐ Alerts | CPU/RAM/disk/temp thresholds with call/video Telegram buttons |
| ๐๏ธ Voice | Send a voice message โ Salim transcribes and executes |
| ๐ท Camera | Webcam snapshots, motion detection alerts |
| ๐ฅ๏ธ Stream | Live screen stream to Telegram |
| ๐ SSH | Remote control other machines from the same bot |
| ๐ Browser | Playwright browser automation, screenshots, form filling |
| ๐๏ธ Notes | Quick note-taking, searchable |
| โฑ๏ธ Scheduler | Cron-style task scheduler |
| ๐พ Memory | Persistent user memory across sessions |
| ๐ Skills | Dynamic plugin system โ install community skills |
๐ Quick Start
pip install salim
salim setup # enter bot token + allowed user ID
salim # start the bot
All dependencies install automatically. You'll be running in under 2 minutes.
๐ฆ Installation & Auto-Install
Salim installs all required libraries automatically on first run:
pip install salim # installs everything
salim setup # one-time config wizard
salim # start
# Force reinstall all deps
python -m salim._post_install --force
# Install with optional extras
pip install salim[gcal] # Google Calendar OAuth
pip install salim[youtube] # YouTube video summarizer (yt-dlp)
pip install salim[all] # everything
If any optional library fails to install (e.g., PyAudio on certain systems), Salim logs a warning and continues โ no crash. Every feature degrades gracefully.
System tools (detected and hinted, not silently broken):
ffmpegโ for audio conversionnmapโ for full network scanningrsyncโ for file backups (falls back to tar)gitโ for git commands
๐ Weather
Real-time weather powered by Open-Meteo โ completely free, no API key.
/weather โ weather at your saved location
/weather London โ weather for any city
/weather London 5 โ 5-day forecast
/weather set Dubai โ save your default city
Shows: condition, temperature, feels-like, humidity, wind speed, precipitation, sunrise/sunset.
๐ Calendar
Works with Google Calendar (optional OAuth) or a built-in local calendar with no setup.
/cal โ today's events
/cal tomorrow โ tomorrow's events
/cal week โ this week's events
/cal add Meeting with Alex tomorrow 3pm
/cal add Dentist April 15 10am 1h
/cal search project
/cal delete <id>
/cal setup โ Google Calendar OAuth guide
No Google account needed โ local calendar works out of the box.
๐ Web Search & Fetch
DuckDuckGo search, webpage reader, news aggregator, YouTube summarizer โ no API keys.
/websearch latest AI news
/webnews Bitcoin
/web https://example.com โ fetch + extract content
/web summary https://example.com โ AI-powered page summary
/webread https://example.com โ full readable text as file
/yt https://youtube.com/watch?v= โ video info + AI summary
๐ Git Control
Full git operations from your phone.
/git โ status of current repo
/git log 20 โ last 20 commits
/git diff โ uncommitted changes
/git pull โ pull from remote
/git push โ push to remote
/git commit Fixed bug in auth module
/git checkout feature/new-ui
/git clone https://github.com/user/repo
/git branch โ list all branches
/git repos โ find git repos on this machine
/git cd ~/Projects/myapp โ set working repository
๐ Daily Digest
One command gives you everything you need to start the day.
/digest โ full morning briefing now
/digest schedule 7:30 โ auto-send every morning at 7:30am
/digest stop โ cancel scheduled digest
The digest includes:
- ๐ Weather at your location
- ๐ Calendar events for today
- ๐ง Unread email count + important senders
- ๐ฐ Top news headlines
- ๐ป System health (CPU, RAM, disk, battery)
- ๐ Greeting based on time of day
๐ Translation
Translate between 30+ languages using LibreTranslate โ free, open-source, self-hostable.
/translate Hello world to Arabic
/translate Bonjour monde โ auto-detect โ English
/tl ar How are you? โ shorthand: /tl <lang> <text>
/tl zh Good morning everyone
/translate sethost http://localhost:5000 โ use your own instance
Supported: English, Arabic, French, German, Spanish, Italian, Portuguese, Russian, Chinese, Japanese, Korean, Hindi, Urdu, Turkish, Persian, Hebrew, and 20+ more.
Falls back to AI translation if no LibreTranslate instance is reachable.
๐ Network & SysMon
/ports โ open ports on this machine
/portscan 192.168.1.1 โ scan ports on any host
/netdevices โ find all devices on local network (nmap/ARP)
/myip โ local IP + public IP
/ping google.com
/dns openai.com
/traceroute 8.8.8.8
/whois github.com
Requires nmap for full network scan (sudo apt install nmap or brew install nmap). Falls back to ARP table without it.
โฐ Reminders
Natural language reminder system โ no date format to learn.
/remind me to call John in 2 hours
/remind take medicine every day at 8am
/remind standup meeting tomorrow at 9am
/remind backup server every week
/remind gym in 30 minutes
/reminders โ list all reminders
/remdel <id> โ delete a reminder
/remclear โ clear all reminders
Recurring reminders survive restarts. All reminders fire even when you're away from keyboard.
๐ฐ Stocks, Crypto & Forex
Real-time prices from Yahoo Finance and CoinGecko โ both free, no API key.
/price AAPL โ Apple stock price
/price BTC ETH SOL โ multiple crypto prices
/price AAPL MSFT GOOGL โ multiple stocks
/market โ S&P 500, Dow, NASDAQ, FTSE, Nikkei, Gold, Oil
/fx USD to AED โ exchange rate
/fx 1000 SAR to USD โ currency conversion
/fx 500 EUR to GBP
Shows: price, 24h change %, market cap (crypto), exchange.
๐พ Backup
File backups using rsync (incremental, fast) with tar.gz fallback.
/backup now ~/Documents
/backup now ~/Projects to /Volumes/ExternalDrive
/backup schedule ~/Documents daily 2am
/backup schedule ~/Projects weekly
/backup list โ scheduled backups
/backup status โ last backup results
/backup cancel <id> โ cancel a schedule
๐ Session Transcript
Every AI conversation is automatically saved as replayable JSONL, inspired by OpenClaw's architecture.
/transcript โ today's turns
/transcript stats โ 30-day token usage + cost estimate
/transcript search meeting โ search past conversations
/transcript export โ download full JSONL log
/transcript clear โ wipe today's log
๐ค Autonomous Agent
The most powerful feature. Give Salim a complex task and it figures out all the steps.
/agent create a professional invoice for ABC Corp 5000 USD and email it to billing@abc.com
/agent summarize all PDFs in my Downloads folder and create an Excel report
/agent fetch the homepage of anthropic.com and write a one-page summary as a Word doc
/agent check my email, find anything from my boss, and draft a reply
/agentstop โ stop running agent
/agentstatus โ check if agent is running
/agentlog โ see last agent run steps
/agenthelp โ full guide
๐ Document Creation
All documents are real files โ no placeholders, no mocks.
/agent create a resignation letter for [company]
/agent make an Excel salary sheet for 10 employees
/agent create a PowerPoint pitch deck with 5 slides about AI trends
/agent convert report.docx to PDF
Files are automatically sent to your Telegram chat.
๐ง Email
Full SMTP/IMAP email integration. Works with Gmail, Outlook, Yahoo, or any email provider.
# Setup (one time)
/agent email setup
# Send email
/agent email send to boss@company.com subject Monthly Report body Done. attach report.xlsx
# Read inbox
/agent email read 10
/agent email search invoice
# Reply
/agent email reply to ID123 body Thanks, will review by Friday.
๐ Alert System
Automatic monitoring with escalating notifications.
/alert cpu 80 โ alert when CPU > 80%
/alert ram 90 โ alert when RAM > 90%
/alert disk 95 โ alert when disk > 95%
/alert temp 75 โ alert when CPU temp > 75ยฐC
/alert process chrome โ alert if process stops
/alerts โ list active alerts
/alertstop <id> โ stop an alert
Alert messages include inline buttons:
- ๐ Call Now โ opens a Telegram voice call
- ๐น Video Call Now โ opens a Telegram video call
- โ Acknowledge โ marks alert as seen
Use --call or --video flags: /alert cpu 90 --call
๐ฅ๏ธ System Control
/screenshot โ take screenshot
/screen โ start live screen stream
/screenstream stop
/ps โ running processes
/kill <pid> โ kill a process
/top โ CPU/RAM usage
/shutdown โ shutdown PC
/restart โ restart PC
/sleep โ sleep mode
/lock โ lock screen
๐ Shell
/shell ls -la ~/Desktop
/shell git log --oneline -20
/shell df -h
/shell python3 script.py
/run python3 script.py โ alias
๐ Files
/ls โ list current directory
/cd ~/Desktop โ change directory
/find *.pdf โ find files by pattern
/upload โ send a file to your PC
/download ~/file.pdf โ download a file from your PC
/watch ~/Downloads โ watch a folder for changes
๐ SSH
/ssh_add myserver โ register a remote host
/ssh myserver ls -la โ run command on remote
/ssh_upload myserver local.txt /remote/path/
/ssh_download myserver /remote/file.txt
๐๏ธ Voice Messages
Send a voice message โ Salim transcribes it (Whisper, offline) โ executes the command.
๐ท Camera
/camera โ take webcam snapshot
/camera 5 โ take 5 photos
/motion โ start motion detection alerts
/motionstop โ stop motion detection
๐ Browser Automation
/browse https://example.com โ open page, take screenshot
/browse click "Sign In"
/browse type username admin
/browse screenshot
/browse pdf โ save page as PDF
๐ Intrusion Detection
/guard on โ enable intrusion detection
/guard off โ disable
/guard status โ current status
Triggers when unauthorized users message the bot.
๐ Notes
/note Buy groceries
/note Meeting notes: discussed Q4 targets
/notes โ list all notes
/notedel 3 โ delete note #3
โฑ๏ธ Scheduler
/at 2pm /screenshot โ run command at specific time
/every 30m /ps โ run every 30 minutes
/jobs โ list scheduled jobs
/jobcancel <id> โ cancel a job
๐ Skills (Plugins)
/skills โ list installed skills
/skilladd https://... โ install community skill
Skills are Python files you drop in ~/.salim/skills/. Each skill adds new /commands.
โ๏ธ Configuration
Stored in ~/.salim/config.enc (encrypted).
salim setup # full wizard
salim config show # view current settings
salim config set key value # update a value
Key settings:
bot_tokenโ your Telegram bot token (from @BotFather)allowed_usersโ comma-separated Telegram user IDsai_api_keyโ NVIDIA NIM / OpenAI compatible key for AI featuresai_modelโ model to use (default: meta/llama-3.1-70b-instruct)
๐ง Advanced
Run as a background service:
# systemd (Linux)
salim install-service
systemctl --user start salim
# launchd (macOS)
salim install-service
launchctl start salim
Update:
pip install --upgrade salim
# All new deps install automatically on next start
Logs:
salim --verbose # verbose mode
~/.salim/logs/ # log files
/transcript stats # AI usage stats from inside Telegram
๐ All Commands
| Command | Description |
|---|---|
/start |
Welcome message |
/help |
Full command list |
| System | |
/screenshot |
Take a screenshot |
/screen |
Live screen stream |
/ps |
Running processes |
/kill <pid> |
Kill a process |
/top |
CPU/RAM monitor |
/sysinfo |
System information |
| Shell | |
/shell <cmd> |
Run terminal command |
/run <cmd> |
Alias for shell |
| Files | |
/ls |
List directory |
/cd <path> |
Change directory |
/find <pattern> |
Find files |
/watch <path> |
Watch for changes |
| Power | |
/shutdown |
Shutdown PC |
/restart |
Restart PC |
/sleep |
Sleep mode |
/lock |
Lock screen |
| AI & Agent | |
/agent <task> |
Autonomous task |
/agentstop |
Stop agent |
/agentlog |
Last agent log |
/agenthelp |
Agent guide |
| Weather | |
/weather [city] [days] |
Weather forecast |
| Calendar | |
/cal [today/week/add] |
Calendar |
| Web | |
/websearch <query> |
Web search |
/webnews <topic> |
News on topic |
/web <url> |
Fetch webpage |
/yt <url> |
YouTube summary |
| Git | |
/git <subcommand> |
Git control |
| Digest | |
/digest |
Morning briefing |
| Translation | |
/translate <text> to <lang> |
Translate |
/tl <lang> <text> |
Quick translate |
| Network | |
/ports |
Open ports |
/netdevices |
LAN devices |
/myip |
Local + public IP |
/ping <host> |
Ping |
/dns <domain> |
DNS lookup |
/traceroute <host> |
Traceroute |
/whois <domain> |
WHOIS |
| Reminders | |
/remind <text> |
Set reminder |
/reminders |
List reminders |
/remdel <id> |
Delete reminder |
| Finance | |
/price <symbol> |
Stock/crypto price |
/market |
Market overview |
/fx <from> to <to> |
Currency rate |
| Backup | |
/backup now <path> |
Backup now |
/backup schedule |
Schedule backup |
| Transcript | |
/transcript |
View session log |
/transcript stats |
Token usage |
/transcript export |
Download JSONL |
| Alerts | |
/alert <type> <threshold> |
Set alert |
/alerts |
List alerts |
| Notes | |
/note <text> |
Add note |
/notes |
List notes |
| Scheduler | |
/at <time> <cmd> |
Run at time |
/every <interval> <cmd> |
Recurring |
/jobs |
Scheduled jobs |
| SSH | |
/ssh_add <host> |
Register host |
/ssh <host> <cmd> |
Run remote cmd |
| Browser | |
/browse <url> |
Browser control |
| Voice/Camera | |
/camera |
Webcam snapshot |
/tts <text> |
Text-to-speech |
| QR | |
/qr <text> |
Generate QR code |
| Skills | |
/skills |
List plugins |
/skilladd <url> |
Install plugin |
๐ What's New in v12
11 new capability modules, all real implementations:
- ๐ Weather โ Open-Meteo (free, no key), real forecasts, 7-day outlook, saves default city
- ๐ Calendar โ Google Calendar OAuth + local calendar fallback, natural language date parsing
- ๐ Web โ DuckDuckGo HTML search (no API key), full page reader, AI summaries, YouTube info
- ๐ Git โ Full git control, auto-finds repos, clone to Desktop, branch/commit/push/pull
- ๐ Daily Digest โ Automated morning briefing combining 5 data sources
- ๐ Translation โ LibreTranslate (self-hostable), 30+ languages, AI fallback
- ๐ Network/SysMon โ Port scanner, LAN device discovery (nmap/ARP), DNS, ping, traceroute, WHOIS
- โฐ Reminders โ Natural language parsing, recurring reminders, survive restarts
- ๐ฐ Finance โ Yahoo Finance + CoinGecko (both free), stocks/crypto/forex, market overview
- ๐พ Backup โ rsync incremental backups with tar.gz fallback, scheduled recurring
- ๐ Transcripts โ JSONL session audit log (OpenClaw-inspired), searchable, token stats
Auto-install: all new dependencies install automatically on pip install --upgrade salim.
๐๏ธ Architecture
~/.salim/
โโโ config.enc # encrypted config
โโโ memory.json # persistent user memory
โโโ alerts.json # active alert monitors
โโโ reminders.json # pending reminders
โโโ transcripts/ # JSONL session logs (per user per day)
โ โโโ session_<uid>_<date>.jsonl
โโโ backups/ # local file backups
โโโ calendar/ # calendar data + Google OAuth token
โโโ skills/ # installed skill plugins
โโโ logs/ # application logs
โโโ agent/ # agent run logs
Every component stores its state in ~/.salim/. Nothing goes to the cloud without your explicit configuration.
๐ Security
- All config stored encrypted on disk (Fernet symmetric encryption)
- Allowlist only โ only your Telegram user IDs can control the bot
- Intrusion detection โ unauthorized attempts trigger instant alerts
- SSH keys stored encrypted, never plaintext
- Email credentials stored with
chmod 600(owner-read-only)
๐ License
MIT โ free to use, modify, and distribute.
Built with โค๏ธ using Python, python-telegram-bot, and 100% free/open-source tools.
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
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
File details
Details for the file salim-2.0.4.tar.gz.
File metadata
- Download URL: salim-2.0.4.tar.gz
- Upload date:
- Size: 249.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b083a4afd009a15fe3143ecc236fd4a18e95918f793d15f3da6647c6d0311a9
|
|
| MD5 |
fd8e9cfa980f61922f44dacdeebc7b6e
|
|
| BLAKE2b-256 |
42693de15d7ef1b4fdbca11e5f5e26fba5b7cb8c7338059285d6726a07cdad22
|
File details
Details for the file salim-2.0.4-py3-none-any.whl.
File metadata
- Download URL: salim-2.0.4-py3-none-any.whl
- Upload date:
- Size: 255.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4680ea4a1824b758ef5e5e12b763cd525fdc5f75e335c2d2088084ec0529b0a9
|
|
| MD5 |
fdf7d2b269e238eebb4a9f9d1a40a9ab
|
|
| BLAKE2b-256 |
9ed8d191de6d21e9d7f960bebeb36b25bb6ef331b9248e3e3b04a9979ff23999
|