Mahbot(i.e. my bot) is an agentic system that automates coding, office work and design, while also providing adaptive setup for your custom integrations and workflows. Batteries included:
- One to rule them all assistant for automations, research, prototyping, and many other purposes
- Others to help him out specialized and custom agents that the assistant can delegate tasks to and remain responsive for any volume of your requests
- Work from anywhere through a Telegram bot, smooth GUI or voice control with full sync between their states, without context switches for you
- Work with anything using the custom tools & integrations that the agents can build themselves on-the-fly to serve your needs
- Tightly optimized LLM cache and device resources usage for lower costs and wider support
- Out-of-the-box without skills, plugins, AGENTS/CLAUDE/other.md files or manual configurations
OpenRouter is the default provider, and DeepSeek V4.1 Flash is the default model. A custom self-hosted OpenAI-compatible endpoint (llama.cpp, vLLM, or alike) can be configured in Settings for chat requests. Note that media generation/editing tools are currently tied to OpenRouter — so its key is still needed for them even when a custom endpoint is used for the agents. Also, should work quite well with smaller models like Qwen 3.8 27b, and local + open-source mode is the primary long-term focus.
Install and start it with one command. On unix-like systems:
curl -fsSL https://raw.githubusercontent.com/edezhic/mahbot/main/install.sh | shOn Windows (PowerShell):
irm https://raw.githubusercontent.com/edezhic/mahbot/main/install.ps1 | iexAfter the install mahbot asks you to provide one of:
- OpenRouter API key, or
- a custom OpenAI-compatible endpoint
The rest of the onboarding will be explained and done through the assistant. Further updates will be installed & applied automatically, with graceful pause&resume and very little downtime for your agents.
On a Linux host with no display manager — a server with no graphical login — the same install
registers MahBot as a system service and starts it: it runs from boot with nobody logged in,
restarts itself when it fails, and drains its agents before it stops. The unit is
/etc/systemd/system/mahbot.service, and systemctl status mahbot.service shows it. A host with
a display manager gets the login entry the product writes at its first start instead. A masked
mahbot.service gets no login entry at all: a mask is the owner's decision that the service must
not run, and the product does not register itself beside it.
MAHBOT_INSTALL_REGISTRATION=service|login asks for the other registration explicitly, and a
re-run leaves an existing working registration alone. MAHBOT_INSTALL_DRY_RUN=1 prints what the
install would do without changing anything.
Give it its credentials in one command, then work through Telegram:
mahbot config setup --provider-key sk-or-... --telegram-token 123456:ABC... --owner ./@yournameA custom OpenAI-compatible endpoint instead of OpenRouter:
mahbot config setup --provider-endpoint http://127.0.0.1:8080/v1 --provider-endpoint-key secret \
--telegram-token 123456:ABC... --owner ./@yournameA secret may be written @path to be read from a file (--provider-key @openrouter.key), so it
never lands in your shell's history. The same @ is the file form for --owner too, which is
what the ./ in ./@yourname is for.
Everything else stays reachable from the same terminal, against the running service.
mahbot config reads and writes the settings — get one whole, list them summarised, set one
by name — covering the provider and its endpoint, the manager and worker model slots, the image
and video catalogues and their per-model provider routing, web search, the Telegram bot
including its local Bot API mode, the audio switches, auto-update and start-at-login; it also
manages the accounts, their custom-tool grants and the custom roles. mahbot config reference
prints every action and every setting name in full. mahbot workspace does the same for the
managed projects: add or delete one, re-analyse it or re-detect its diagnostics commands, write
those commands and the project rules by hand, choose the active project, and turn its background
maintainer on or off. The assistant in the bot can do all of it too, and can explain anything
left to set up. A host with a display manager gets the window from the same install at login
instead, with the same service behaviour underneath: the same updates, the same pause and resume.
Mahbot treats software engineering as a managed pipeline, not a chat session: you drop a request to your assistant about any of the projects while it orchestrates other agents to clarify the details and only escalates real product decisions to you.
The best modern agentic dev practices built-in: scope analysis before and adversarial verification after every change, workspace discovery for per-role contexts, automatically detected & executed diagnostics commands, background maintenance process, and many more.
Reliability comes from orchestration and process, not based on the expectation that the current frontier model will one-shot any task.
Autonomy is achieved using the pipeline - you can request a large amount of work and agents in the pipeline will ensure that every piece is analyzed, implemented, verified and commited.
Every request/ticket has a lifecycle with redundant checks:
| Phase | What happens |
|---|---|
| → Analysis | Parallel analysts research the ticket's assumptions & scope |
| → Planning | Manager sees the analysis and refines/cancels/approved or escalates |
| → Queued | Awaits in the engineer's queue according to it's priority |
| → Development | Engineer implements the ticket (or the required fixes) |
| → Verification | Deterministic checks with code reviewers and a tester |
| → Sanitation | Audit untracked/new files in the working tree |
| → Done | Auto git commit of the ticket's title & label |
Circuit breaker pauses the work if a ticket goes through too many bounces, escalates to the manager and he handles from there.
MahBot's capabilities are also available from a terminal, so your own scripts and custom tools can use them: manage accounts, users, custom-tool grants and custom roles; list and add managed workspaces, pause or resume a pipeline, read the board or a ticket and comment on it; hand a message to any agent role; read a document with your assistant's own reader — a PDF, a Word, Excel or PowerPoint file (modern or old binary), or any other file — its full text and every image it produces written into a folder of their own; produce documents (Word, Excel, PowerPoint and PDF — creating, filling your own template, editing, merging, splitting, rotating, cropping, resizing, rendering pages, filling forms), pictures and video; edit an existing photograph deterministically — crop, resize, rotate, convert formats, adjust colour and tone, sharpen, work on layers and many more; transcribe speech and turn text into audio; drive the browser you are already logged in to; and run read-only queries against MahBot's own live stores with mahbot debug. Produced files land where you ask and nothing you already have is overwritten. Most commands work against the running product; speech, the browser and debug work on their own. Every command reports its outcome in its exit code; run mahbot -h, then <command> -h, for the operations and flags.