Remote Control

TelegramBot

A Telegram bot that connects to your running Plexon instance. Send text, photos, documents, and voice notes; get formatted answers, images, and files back; manage sessions; and let your workflows ping you. All from your phone.

Plexon AI Botonline

Refactor the auth middleware to use JWT tokens

readFilemiddleware/auth.go

editFilemiddleware/auth.go

I've refactored the auth middleware to use JWT. The changes include a new validateJWT() function and updated all route guards.

What's wrong with this UI?

I can see two issues: the button spacing is inconsistent (12px vs 8px), and the text color has low contrast on the light background...

Message...

Your AI, in Your Pocket

The Telegram bot connects directly to your running Plexon AI instance. Every message you send through Telegram is processed by the same AI with full access to your codebase, tools, and active session. Responses stream in real time with tool execution status visible inline.

  • Send text messages and images for AI analysis
  • Real-time streaming: responses appear as they generate
  • Bidirectional sync: messages show in both Telegram and desktop
  • Message queue: messages queue when busy, auto-processed in order
  • Authorization by chat ID or Telegram username

Bot Commands

/newCreate a new AI session
/switchList & switch between sessions
/modeSwitch AI mode (Code, Ask, Auto...)
/statusView bot uptime & session info
/usageToken usage & cost tracking
/stopCancel current AI execution
Telegram Bot Settings

Telegram Bot Settings

Configure the Telegram bot directly from Settings → Integrations. Toggle it on, paste your BotFather API token, and optionally restrict access to specific Telegram usernames. The chat ID is auto-discovered the first time you message the bot.

  • One toggle to enable/disable the bot
  • API token from BotFather: paste and go
  • Optional username allowlist for security
  • Chat ID auto-discovery on first message
  • Bot status visible in the Settings panel

Ngrok Tunnel: Preview from Any Device

Plexon AI has a built-in ngrok tunnel tool that exposes your local development server to the internet with a single AI command. Ask the AI to build a website, then tell it to "start a tunnel on port 3000" and you'll get a public URL you can open on your phone, tablet, or share with a colleague. Combined with the Telegram bot, you can direct the AI from your phone, ask it to build and serve a page, then preview the result in your mobile browser, all without touching your desktop.

  • Built-in plexon_ngrok_tunnel MCP tool. No setup required
  • Auto-installs ngrok if not present on your system
  • Start, stop, and list active tunnels via AI commands
  • Supports multiple simultaneous tunnels with named sessions
  • Regional selection (US, EU, AP, AU, SA, JP, IN)
  • Static subdomains for paid ngrok accounts
  • Telegram + Ngrok workflow: direct AI from phone, preview on mobile

Quick Setup

Get your Telegram bot running in under a minute. The entire setup happens through Telegram's BotFather. No server configuration needed.

  1. 1Open Telegram and search for @BotFatherSend /newbot and follow the prompts to name your bot
  2. 2Copy the API token BotFather gives youPaste it below in Settings → Integrations → Telegram Bot
  3. 3Start a chat with your new botSend any message and your chat ID will be auto-discovered
  4. 4Start chatting!Messages appear in both Telegram and the desktop UI simultaneously

Telegram Bot Capabilities

Image Analysis

Send photos for the AI to analyze: debug UI issues, extract text from screenshots, or get feedback on designs.

Tool Monitoring

See tool execution status and errors in real-time as the AI works on your codebase remotely.

Locked to you

The first person to message the bot is pinned by numeric user ID, and everyone else is turned away. Set allowed and owner IDs explicitly when you want to.

Documents and files

Send a PDF, CSV, or spreadsheet and the AI reads it. Files it generates come back as Telegram documents, not just images.

Rich replies

Answers render with bold, inline code, code blocks, and clickable links. The slash menu and quick-action keyboard are one tap away.

Workflow alerts

Your automations can message you on Telegram: a workflow step, a completion notice, or a reply to a Telegram-triggered run.

Ngrok tunnels

Expose local servers to the internet via AI commands. Preview your dev site on mobile while directing the AI from Telegram.

Session management

Create, switch, and manage AI sessions from Telegram. Full /new, /switch, /mode, /status, /usage commands.

Voice in and out

Send a voice note and the bot transcribes it, then answers. Turn on /voice to hear spoken replies. Add a speech key to enable it.