Open Source โ€ข MIT License

Control your AI agents
from anywhere, via Telegram

ClicLaw is a bridge that connects your CLI agents to Telegram. You don't need to install a heavy terminal app to give your PC or VPS superpowers โ€” just carry them in your pocket.

$npm install -g cliclawcopy
๐Ÿ‘ค
list all running processes and show memory usage05:10 โœ“โœ“
Telegram
cliclaw โ€ข VPS05:10
๐Ÿฆ€
cliclaw โ€” your PC / VPS

Why ClicLaw?

Real CLI power in your pocket

๐Ÿค–

Real CLI, not API

Drives actual binaries on your server โ€” no HTTP APIs, no token billing, just your subscription.

๐Ÿ“ฑ

Mobile-first control

Control your VPS from anywhere via Telegram. Works on phone, tablet, or desktop.

๐Ÿงต

Per-session Forum Topics

Each thread = one AI session with full conversation memory. Organized, parallel, persistent.

๐Ÿ”

Permission modes

Choose auto (fast), session (confirm once), or ask (confirm every action). Full control.

๐Ÿ’พ

Persistent sessions

Session IDs saved to disk. Context survives bot restarts and VPS reboots.

๐ŸŒ

Multi-agent support

๐ŸŸฃ Claude Code + ๐ŸŸข Codex today. More agents coming โ€” OpenCode, Gemini CLI, and beyond.


Get started in minutes

Self-hosted on your VPS or local machine

bash โ€” install
# Install ClicLaw globally
npm install -g cliclaw

๐Ÿ“ฑ Telegram Group Setup

  1. Create a Telegram group (or use an existing one)
  2. Enable Topics: Edit group โ†’ Topics โ†’ Enable
  3. Add your bot as admin with Manage Topics permission
  4. Send /id in the group โ€” copy the Chat ID
  5. Paste it as FORUM_GROUP_ID in your .env

See it in action

A real conversation with Claude Code on a VPS

โ—€
๐ŸŸฃ
๐ŸŸฃ Claude โ€” Session #1
cliclaw-vps โ€ข Forum Topic
๐Ÿ”๐Ÿ“žโ‹ฎ
๐Ÿ“ŒForum Topic โ€ข /new โ†’ creates a new thread per AI session
Starting simulation...
๐Ÿ“Ž
๐Ÿ˜Š
โžค

// interactive simulation โ€” you can type too


Bot commands

Available in any Forum Topic

/new
Open a new Claude session in a fresh topic
/new codex
Open a Codex session instead
/sessions
List all active sessions
/clear
Clear current session history
/status
Show bot status and detected CLIs
/id
Show the current group/chat ID
/help
Show available commands
// how it works internally
Message in forum topic
  โ†“ Resolve session by thread_id
  โ†“ Lock session (prevent concurrent calls)
  โ†“ Send "โš™๏ธ Processing..." + typing loop
  โ†“ Spawn CLI:
      claude --resume <id> -p "msg"
      codex exec resume <thread> --json "msg"
  โ†“ Process runs to completion
  โ†“ Delete "Processing..." โ†’ send HTML response
๐Ÿฆ€

Ready to take control?

Self-hosted, open source, MIT licensed.

โญ Clone on GitHub๐Ÿ“ฆ View on npm
Built by @luizfeerโ€ขMIT Licenseโ€ขnpm