Dictator
Telegram's AI agent for Mac — living in its own Linux VM.
Dictator runs an AI agent (Hermes Agent) inside an isolated Linux virtual machine on your Mac and connects it to Telegram for macOS, where it appears as the pinned AI Assistant chat. It reads and acts in Telegram within the permissions you set, builds widgets, games and add-ons with Loom, and touches your Mac only when you allow it.
An assistant that lives inside your Telegram
Everything below comes straight from the project's own documentation in the TelegramMessenger/Dictator repository.
01Acts in Telegram for you
The agent reads and searches your chats and can act on them — sending, reacting, pinning and more — governed action-by-action by the permissions you set. Out of the box, reading and searching are allowed; everything that writes asks you first.
02Builds widgets, games & add-ons
Ask for weather, a chart, a tracker or a game and the agent builds an interactive widget that appears right in the AI Assistant chat, written in Telegram's Loom language and drawn natively.
Ask for something bigger — “make me a panel that shows unread mentions from work chats” — and it builds an add-on, tests it on a sample account, shows you a preview and applies it live after one confirmation. It can even rearrange Telegram's own screens. Every change can be undone.
03Remembers — deeply
A shared memory holds facts about you across every chat, searched by meaning as well as words. The
built-in Deep Memory plugin runs Hindsight (MIT-licensed) inside the VM — PostgreSQL with
pgvector and fully local embeddings — turning conversations into dated facts, entities and
observations it can reason across. Manage it from chat with /remember, /recall and /forget.
04Works as a team
Custom agents are named specialists, each with its own memory. Any agent can ask another
(ask_agent), consult several in parallel, or hand one a whole job in the background while
you keep chatting — the report lands in the AI Assistant chat when it's done. Long-running jobs with
other people are tracked as missions, and every message to a contact waits for your approval.
05Learns from its own tool calls
The harness watches every turn through its proxy. Calls that worked become shortcuts; failures
become lessons — a fix when a later call gets past the error, a pitfall when the same error
repeats. Lessons that stop helping are retired. Check in any time with /tools learned.
06Reachable from your phone
An optional remote-control bot (off by default) lets you reach Dictator from your phone through a Telegram bot you create with @BotFather. Only your paired account, in its private chat with the bot, is heard — everyone and everything else is silently ignored. Voice notes are transcribed by the Whisper plugin, on the Mac and in the bot alike.
Three pieces, one hard boundary
The agent never runs on your Mac directly. It lives in a Debian 13 virtual machine, and the only roads between it and the outside are guarded by the Dictator app on the host.
Telegram for macOS
- Pinned AI Assistant chat (text + voice)
- Permission sheet when pairing
- Fixed rules enforced here, on the host
0600 · signed
server only⇄
Dictator.app
- Pairing, provider key, status
- Action queue + Telegram & Mac policies
- LLM proxy — adds the real key from Keychain
- Approved Mac scripts via osascript
:8642 agent API
:8080 proxy⇄
Linux VM · Debian 13
- Hermes Agent — memory, skills, tools
- opencode working in ~/work
- Placeholder model key only
- Optional NAT — or no network device at all
Powerful, but it asks first
Every Telegram action is set to Allow, Ask or Never — and some rules sit in Telegram itself, where no setting can change them. Try the defaults:
Allowed by default. Reading and searching run without asking — that's the agent's basic working material.
- ✕Secret chats: never. Secret chats and service notifications (777000) are never available to the agent — no setting changes this.
- ✕Blocked chats are refused, and loosening any security rule — Full Access, auto-approval, unblocking, a higher limit — must be approved on the Mac itself.
- ✓Secrets never travel through chat. Keys are pasted into the app on the Mac, stored in the Keychain, and stripped from model requests by the proxy.
- ✓Mac scripts are fixed. The agent only supplies values, which are validated and passed as arguments — never as code. Each script is Allow, Ask me or Never.
- ✓Everything is journaled. Every request is written to the activity log (journal.log), visible under Settings → Activity.
- ✓Lockdown stays yours. Even the outside setup agent (dictator CLI / MCP) can't read messages, turn Lockdown off, or approve the Telegram connection for you.
Get it running
Dictator is currently built from source inside a Telegram for macOS checkout. First-time VM setup takes about 5–7 minutes on a good connection; Home shows each step as it goes.
Open Dictator
It starts preparing the agent's private Linux VM in the background right away. Toolbox and Deep Memory finish installing behind the scenes.
Press Connect
In the “Set up your agent” card, press Connect. Telegram comes to the front and asks you to allow Dictator — that approval is always yours to give.
Choose a model
Sign in with your ChatGPT plan (the recommended, key-free option), paste an API key, or pick a model that runs on this Mac. The default model is anthropic/claude-sonnet-5.5.
Find the AI Assistant
When the computer is ready the agent starts on its own. The AI Assistant chat appears, pinned at the top of Telegram's chat list.
Make it yours
Home suggests plugins picked for the apps on your Mac — Xcode, Blender, your browser, your files. None are needed to start chatting. Install Whisper if you want voice messages.
git clone git@gitlab.com:overtake/telegrammacos.git
cd telegrammacos
git submodule update --init -- packages/Loom submodules/telegram-ios
git submodule update --init --recursive -- tools/agent-harness
tools/agent-harness/build.sh # builds bin/Dictator.app and bin/agent-harness
cp -R tools/agent-harness/bin/Dictator.app /Applications/
open /Applications/Dictator.app
One catch, straight from the docs: Telegram only talks to a harness signed as org.telegram.agent-harness by the Telegram team — a self-signed build runs, but can't pair. Use a Telegram-team-signed build, or a Telegram Debug build with the requirement changed to your own team. Full instructions: docs/setup.md.
Drive it from chat, or from the terminal
Everything the app window does can also be done from the AI Assistant chat — messages starting with
/ go straight to the harness, no AI model involved. Security-loosening changes still need
approval on the Mac.
| Command | What it does |
|---|---|
| /commands | List every chat command. |
| /new · /reset | Start a fresh conversation with the agent. |
| /remember · /recall · /forget | Save, search and erase the shared memory — /memory manages it, /memory clear confirm wipes it. |
| /permissions | Telegram permissions and blocked chats; /permissions full on|off toggles Full Access (Mac approval required). |
| /approvals ask|auto | Whether the agent's VM terminal commands need your approval. |
| /secrets add NAME | Register a secret — the value itself is typed on the Mac, never in chat. |
| /ask | Put a question to one of your custom agents. |
| /tools learned | Show learned lessons, shortcuts and per-tool stats; on, off and reset variants included. |
| /restart | Restart the agent / check status, model and VM. |
| /tool <service>/<tool> {json} | Call any harness tool directly. |
The end-user setup tool ships inside the app at Dictator.app/Contents/Helpers/dictator. You can even ask Claude Code, ChatGPT or Codex to “set up Dictator” — they follow its guide and stop at the steps that need you. It also serves the same steps as MCP tools via dictator mcp.
dictator guide # the playbook: step order, what needs you, what it must never do
dictator doctor [--json] # every setup step: done, in progress, or what's missing
dictator setup provision # set up the agent's computer, retry a failure, start the agent
dictator setup chatgpt # opens the ChatGPT sign-in; you sign in
dictator setup connect # Telegram asks to connect; you click Allow
dictator setup plugins install whisper
dictator launch # open Dictator and wait until it answers
| Command | Effect |
|---|---|
| agent-harness run [--fresh] | Run without the app (Ctrl-C stops). Mac scripts that ask are declined — there's no UI. |
| agent-harness status | Provisioning, key, config and socket path. |
| agent-harness ask <chat> <text> | Talk to the agent through the same socket the client uses. |
| agent-harness provision [--force] | Build or rebuild the VM image; the old snapshot is kept until the new one succeeds. |
| agent-harness permissions | Telegram policy: full-access on|off, set <action> allow|confirm|deny, block @chat. |
| agent-harness memory list | The shared memory about you, same as the app's Memory page; memory forget <id> removes an entry. |
| agent-harness eval | Live checks against the running agent in throwaway, read-only evaluation chats. |
| agent-harness reset | Wipe the agent disk and chat sessions. |
The logo — and the mascot that isn't
Dictator's internal project name is Teleharness, and its icon set lives in the repo's App/Icons folder. Two characters show up there; only one of them is the logo.
The smiling paper plane
Telegram's paper plane drawn as a face — two oval eyes and a smile — on a light-blue rounded square. It's what Info.plist and build.sh compile from App/Teleharness.icon for macOS. This is the logo.
The mascot
A blue-and-white 3D cube with little feet and a paper plane perched on its head. It ships in the same icon folder (alongside deep-blue, pastel, dark, orbit and ribbon variants) as a character asset — fun, but it's not the app icon.
Straight answers
Is this Dictator's official website?
No — and neither is there one anywhere else yet. Dictator has no official website and no official X/Twitter account. Announcements have come only from Pavel Durov (@durov) and Telegram (@telegram), and the code lives in the GitHub repo. A promo page also appeared on Telegram's macOS beta site, macos-beta.telegram.org.
This page is an unofficial fan site run by @DictatorAI_ on X. Everything factual here is sourced from the public repository linked above.
What do I need to run it?
An Apple silicon Mac on macOS 14 or later, Telegram for macOS, and a build of Dictator signed by the Telegram team (self-signed builds run but can't pair with Telegram). For the model, you can sign in with a ChatGPT plan, use your own API key, or run a model locally on the Mac.
Can the agent read my secret chats?
Never. Secret chats and service notifications are hard-excluded in Telegram itself — no permission setting, Full Access included, can open them to the agent. Blocked chats are refused too.
Where does my API key live?
In the macOS Keychain, on the host. The VM only ever holds a placeholder key; Dictator's proxy adds the real key to model calls as they leave. Secrets you register are likewise typed into the app on the Mac — never through the chat — and are stripped from model requests.
Can it control my Mac?
Only through fixed, pre-written Mac scripts (Reminders, Notes, Calendar and the like). The agent supplies values — validated and passed as arguments, never as code — and each script is set to Allow, Ask me or Never. The first time an asking script runs, macOS itself prompts you.
What is Hermes Agent? And Hindsight?
Hermes Agent is the open-source agent framework by Nous Research that runs inside Dictator's VM. Hindsight is an MIT-licensed, open-source memory engine; Dictator's Deep Memory plugin runs it locally inside the VM so the agent can build dated facts and observations from your conversations.
How new is this project?
Very. The public repository was created on 1 December 2026 and is under active development — as of 3 December 2026 it shows 94 stars, 6 forks and 16 commits, with no tagged releases yet. The app icon still wears its red BETA ribbon in the source tree.