Skip to main content

Control your entire laptop from Telegram โ€” screenshots, shell, files, processes, power, browser automation, SSH, vision AI, TTS, scheduler, QR, speed test, file watcher, and more.

Project description

๐Ÿ–ฅ๏ธ Salim โ€” Control Your Laptop from Telegram

Type a message on your phone. Your laptop does it.
Screenshots ยท Files ยท Shell ยท Processes ยท Power ยท AI ยท Documents ยท Email

Python 3.9+ Platform MIT License AI Providers


๐Ÿค” What Is This?

Salim turns your laptop into a bot you can control from anywhere in the world using Telegram โ€” the free messaging app.

Left your laptop at home? Need to draft a report from your phone? Want to read your emails or create an Excel invoice while commuting?

Just text your bot. That's it.

You:    "create excel invoice for ABC Company"
Salim:  ๐Ÿ“Ž invoice_abc.xlsx  [sends real file to Telegram]

You:    "email read"
Salim:  ๐Ÿ“ฌ Inbox โ€” 5 emails
        [ID:12] Q3 Report โ€” from boss@company.com

You:    "write resignation letter for Ahmed, last day April 30"
Salim:  ๐Ÿ“Ž resignation_letter.docx  [ready-to-send Word file]

โšก Get Started in 3 Minutes

Step 1 โ€” Install

pip install salim

Python 3.9 or newer required.

Don't have Python? Download free from python.org. Then open Terminal and run the command above.

Step 2 โ€” Run Setup

salim setup

The wizard walks you through:

  1. Get a Telegram bot token โ€” 30 seconds (instructions shown on screen)
  2. Add your Telegram user ID โ€” so only you can control your laptop
  3. Optionally add AI keys โ€” for plain English commands (all free)

Step 3 โ€” Start

salim start

Open Telegram, find your bot, send /start โ€” you're in control.


๐Ÿค– AI Mode โ€” Just Type Naturally

With AI configured (optional but recommended โ€” free!), skip commands entirely:

What you type What happens
take a screenshot ๐Ÿ“ธ Sends screenshot
how's my RAM? ๐Ÿง  Shows memory usage
create excel invoice for Acme Corp ๐Ÿ“Ž Sends real .xlsx file
write resignation letter for Ahmed ๐Ÿ“Ž Sends formatted .docx
email read ๐Ÿ“ฌ Shows your inbox
email send to boss@co.com subject Report body Done โœ… Email sent
mute volume ๐Ÿ”‡ Mutes speakers
shut down ๐Ÿ”’ Asks confirmation, shuts down

Three free AI providers:

Provider Where to get key Speed
๐ŸŸข NVIDIA NIM build.nvidia.com Fast
๐ŸŸก Groq console.groq.com Ultra-fast
๐Ÿ”ต Z.AI z.ai Fast & 100% free

๐Ÿ“„ Office Agent โ€” Create & Edit Documents

The most powerful feature: create any professional document with one message.

Create Documents

/agent create word Q1 sales report
/agent create excel invoice for ABC Company
/agent create csv employee database
/agent create pdf company profile 2025
/agent create powerpoint project overview 6 slides

Real-World Office Documents

/agent write resignation letter for Ahmed, last day April 30
/agent create salary sheet for 15 employees for March 2025
/agent make attendance register for April 2025
/agent build purchase order for 10 laptops at $800 each
/agent write NOC letter for employee John Smith
/agent create employment certificate for Sarah Ahmed
/agent generate project budget for Phase 2 at $50,000
/agent write formal complaint letter to ABC Suppliers
/agent make meeting agenda for Monday board meeting
/agent create staff payroll sheet with deductions

Every document is:

  • Saved to your Desktop as a real file (.docx, .xlsx, .csv, .pdf, .pptx)
  • Sent directly to you in Telegram
  • Professionally formatted with headers, tables, footers
  • Filled with complete real content โ€” no [placeholder] gaps

Edit Existing Documents

/agent edit report.docx add a conclusion section
/agent edit sales.xlsx add column for Q4 targets
/agent edit data.csv delete row 3
/agent add table to report.docx
/agent replace "Manager" with "Director" in letter.docx
/agent add row Ahmed,Sales,5000 to staff.csv
/agent delete paragraph about old policy from contract.docx

Read Documents

/agent read contract.docx
/agent read budget.xlsx
/agent read employees.csv

Convert Documents

/agent convert report.docx to pdf
/agent convert data.xlsx to csv

๐Ÿ“ง Email Integration

Send, read, reply to, and search real emails from Telegram.

First-Time Setup

/agent email setup

Follow the on-screen instructions. Works with Gmail, Outlook, Yahoo, and any IMAP/SMTP provider.

Read Inbox

/agent email read
/agent email read 20

Send Email

/agent email send to boss@co.com subject Monthly Report body Please see the attached report
/agent email send to hr@co.com subject Leave Request body I need 3 days leave from April 5

Send Email with Attachment

/agent email send to ceo@co.com subject Q1 Results body See report attach report.xlsx

Search Emails

/agent email search invoice
/agent email search from Ahmed

Reply to Email

/agent email reply to 42 Thank you, I will review and get back to you by Friday

(Get email ID numbers from /agent email read)


๐Ÿšจ Smart Alert System

Get notified when your laptop needs attention โ€” with optional call/video prompt buttons.

/alert add cpu > 80
/alert add ram > 90
/alert add battery < 20
/alert add disk < 5
/alert add temp > 85
/alert add process nginx

Call/Video Alerts

Add --call or --video to any alert for urgent notifications with tap-to-call buttons:

/alert add cpu > 95 --call
/alert add battery < 10 --video
/alert add process nginx --call

When the alert fires, you get an urgent message with a button to immediately open a voice or video call.

Alert Commands

Command What it does
/alert list Show all active alerts
/alert del <id> Remove an alert
/alert clear Remove all alerts
/alert test Test with live metrics

๐Ÿ“ฑ All Commands

๐Ÿ–ฅ๏ธ System Info

Command What it does
/info Full overview: OS, CPU, RAM, disk, battery, uptime
/cpu Per-core CPU usage with visual bar chart
/mem RAM and swap usage
/disk All drives with used/free space
/battery Charge level, plugged in or not
/network IP addresses, connection speed
/top Live resource monitor (updates 5 times)

โš™๏ธ Processes

Command What it does
/ps [name] List running programs
/kill <pid> Stop a process by ID
/top See what's using most CPU/RAM

๐Ÿ’ป Shell

Command What it does
/run <command> Run any terminal command
/runbg <command> Run in background, notify when done
/env View environment variables
/cron <seconds> <cmd> Repeat a command on schedule

๐Ÿ“‚ Files

Command What it does
/ls [path] List files in a directory
/find <name> Search files by name
/cat <file> Read a file's contents
/rm <path> Delete file (asks confirmation)
/mv <from> <to> Move or rename
/cp <from> <to> Copy a file
/download <path> Send file from laptop to Telegram
/upload Save Telegram file to laptop
/zip <path> Create zip archive

๐Ÿ“ธ Screen & Input

Command What it does
/screenshot Take and send screenshot
/type <text> Type text via keyboard
/key <shortcut> Press keyboard shortcut
/click <x> <y> Click mouse at coordinates
/open <app> Open an app, file, or URL

๐Ÿ“„ Document Writer (quick mode)

Command What it does
/doc resume for <name> Professional CV/resume (.docx)
/doc cover letter for <position> Cover letter (.docx)
/doc invoice for <client> Invoice with auto-totals (.xlsx)
/doc budget tracker for <month> Monthly budget (.xlsx)
/doc salary sheet Payroll sheet (.xlsx)

๐Ÿค– Autonomous Agent

Command What it does
/agent <task> Run any complex task
/agenthelp Full guide with all examples
/agentstop Stop running task
/agentstatus Check if task is running
/agentlog See last task details

๐Ÿ”‹ Power

Command What it does
/shutdown Shut down (asks confirmation)
/restart Restart
/sleep Put to sleep
/lock Lock screen

๐Ÿ”’ Security โ€” Only You Can Control It

  • User whitelist โ€” Only approved Telegram accounts can send commands
  • Silent rejection โ€” Strangers get zero response
  • Confirmation dialogs โ€” Dangerous actions require tap-to-confirm
  • Audit log โ€” Every command logged with timestamp
  • Secure storage โ€” Credentials stored locally with strict permissions (chmod 600)

Adding trusted users

salim adduser

Or add IDs directly to ~/.salim/config.env:

SALIM_ALLOWED_IDS=111222333,444555666

Find your Telegram user ID: Message @userinfobot and send /start.


๐Ÿ› ๏ธ CLI Commands

salim setup      # Run setup wizard
salim start      # Start your bot
salim start -v   # Start with detailed logging
salim status     # Check configuration
salim logs       # View command history
salim adduser    # Add authorized user
salim stop       # Stop the bot

๐Ÿ”ง Configuration

Settings saved in ~/.salim/config.env:

SALIM_BOT_TOKEN=1234567890:ABCdef...
SALIM_ALLOWED_IDS=123456789
SALIM_DOWNLOAD_DIR=/Users/you/Downloads
SALIM_UPLOAD_DIR=/Users/you/Desktop
SALIM_MAX_FILE_MB=50
SALIM_LOG_COMMANDS=true

# AI keys (optional โ€” all free)
SALIM_NVIDIA_API_KEY=nvapi-...
SALIM_GROQ_API_KEY=gsk_...
SALIM_ZAI_API_KEY=...

๐Ÿš€ Auto-Start at Boot

macOS

<!-- ~/Library/LaunchAgents/com.salim.plist -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>             <string>com.salim</string>
  <key>ProgramArguments</key>  <array><string>/usr/local/bin/salim</string><string>start</string></array>
  <key>RunAtLoad</key>         <true/>
  <key>KeepAlive</key>         <true/>
</dict>
</plist>
launchctl load ~/Library/LaunchAgents/com.salim.plist

Linux (systemd)

# /etc/systemd/system/salim.service
[Unit]
Description=Salim Laptop Control Bot
After=network.target

[Service]
Type=simple
User=youruser
ExecStart=/usr/local/bin/salim start
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
sudo systemctl enable --now salim

Windows (Task Scheduler)

$action  = New-ScheduledTaskAction -Execute "salim" -Argument "start"
$trigger = New-ScheduledTaskTrigger -AtLogOn
Register-ScheduledTask -TaskName "Salim" -Action $action -Trigger $trigger -RunLevel Highest

๐Ÿ“ฆ Optional Packages

pip install pyautogui Pillow pyperclip aiofiles reportlab python-docx openpyxl python-pptx
Package What it unlocks
pyautogui Screenshots, mouse/keyboard control
Pillow Screenshot compression
pyperclip Clipboard read/write
python-docx Word document creation and editing
openpyxl Excel file creation and editing
python-pptx PowerPoint creation
reportlab PDF generation

โ“ Common Questions

Do I need technical knowledge? Not at all. Run pip install salim then salim setup โ€” the wizard explains everything.

Is it safe? Yes. Only your approved Telegram accounts can send commands. All others are ignored.

Does it work on Windows? Yes โ€” macOS, Linux, and Windows are all supported.

Do I need to pay for AI? No. All three AI providers (NVIDIA NIM, Groq, Z.AI) have free tiers. Z.AI has no stated limits.

What document types can it create? Word (.docx), Excel (.xlsx), CSV (.csv), PDF (.pdf), and PowerPoint (.pptx). All real files with professional formatting.

Can it send emails? Yes โ€” read, send, reply, and search real emails via IMAP/SMTP. Works with Gmail, Outlook, Yahoo, and more.


๐Ÿ“„ License

MIT โ€” free to use, modify, and share. See LICENSE.


Made with โค๏ธ โ€” Control your world from your pocket.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

salim-2.0.3.tar.gz (179.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

salim-2.0.3-py3-none-any.whl (196.9 kB view details)

Uploaded Python 3

File details

Details for the file salim-2.0.3.tar.gz.

File metadata

  • Download URL: salim-2.0.3.tar.gz
  • Upload date:
  • Size: 179.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for salim-2.0.3.tar.gz
Algorithm Hash digest
SHA256 18d6f651e8efa7a29e3a0876ac0018b5e913e71d7ba95d754f4c5f7c7f10cb9d
MD5 516716f398734d8be0fc16784ea87e3b
BLAKE2b-256 7857abc68709a2e71b99643458a76ee9c73897721ee63c8ea253ceea872814b0

See more details on using hashes here.

File details

Details for the file salim-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: salim-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 196.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for salim-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b393b545a7780e271a6fb462d170416470fffdb6dd84cfa696532cdc7613a07a
MD5 6445d35e0bf12caf04fef1aeb4b3342b
BLAKE2b-256 2a6204b06ee45d939be8e7b3d794e25562ce2447ad2c780eb6ed2aa98ae6971d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page