hiboss
v2026.2.6-rev.3
Published
Local-first daemon + CLI for routing durable envelopes between agents and chat channels (e.g., Telegram).
Downloads
1,045
Readme
Hi-Boss
Orchestrate Codex / Claude Code agents from Telegram — they don’t just work for you; they can collaborate with each other.
Highlights:
- Run on top of real providers (Codex / Claude Code) for best-in-class execution quality
- Durable “inbox/outbox” communication: agent↔human and agent↔agent (Telegram adapters ↔ local daemon ↔ agents)
- Scheduled delivery and cron jobs (durable, auditable)
Providers: Claude Code + Codex
Hi-Boss runs agent turns through the Unified Agent SDK runtime with either provider:
- Claude Code (
--provider claude) - Codex (
--provider codex)
When you run hiboss setup / hiboss agent register, Hi-Boss imports your provider auth/settings from ~/.claude/ or ~/.codex/.
You can also override the import source home:
- Setup: via the interactive wizard, or
hiboss setup --config-file <path> - Agents:
hiboss agent register|set --provider-source-home <path>
Install
Via npm:
npm i -g hibossUpgrade:
hiboss daemon stop --token <boss-token>
npm i -g hiboss@latestTip: restart the daemon after upgrading:
hiboss daemon start --token <boss-token>Dev/from source: see docs/index.md.
Setup
- Run the interactive setup wizard:
hiboss setupSetup:
- initializes local state (SQLite + per-agent homes)
- prompts for your boss name and timezone
- creates your first agent
- configures a Telegram bot + boss Telegram username for that first agent
- prints
boss-token:andagent-token:once (save them somewhere safe)
State directory:
- default:
~/hiboss/ - internal daemon files:
~/hiboss/.daemon/(db/socket/log/pid) - override the root with
HIBOSS_DIR
- Start the daemon:
hiboss daemon start --token <boss-token>Next: open Telegram and talk with your agent by messaging the bot (see the Telegram section below).
To stop the Hi-Boss service:
hiboss daemon stop --token <boss-token>Tip: most commands accept --token <token> or read HIBOSS_TOKEN when --token is omitted.
Telegram
Hi-Boss connects an agent to Telegram via a bot.
Create a Telegram bot token via @BotFather.
Bind the bot to an agent (the first agent is bound during
hiboss setup; use this for additional agents):
hiboss agent set --token <boss-token> --name <agent-name> --bind-adapter-type telegram --bind-adapter-token <telegram-bot-token>- Talk to your agent by messaging the bot in Telegram.
Boss-only Telegram commands:
/status— showhiboss agent statusfor the bound agent/new— request a session refresh for the bound agent
Agent
Manage agents via the CLI (create / update / remove), and optionally delegate admin to a trusted agent via permission-level.
Create/register a new agent:
hiboss agent register --token <boss-token> --name nex --provider codex --description "AI assistant" --workspace "$PWD"Update an agent (manual configuration):
hiboss agent set --token <boss-token> --name nex --provider codex --auto-level medium --permission-level privilegedRemove an agent:
hiboss agent delete --token <boss-token> --name nexList / status:
hiboss agent list --token <boss-token>
hiboss agent status --token <boss-token> --name nexPermission levels
Hi-Boss separates:
- Boss-marked messages (
fromBoss/[boss]in prompts) — adapter identity (e.g., your Telegram username), and - Authorization (
permission-level) — what a token is allowed to do via CLI/RPC.
Available levels: restricted, standard, privileged, boss.
Set permission level:
hiboss agent set --token <boss-token> --name <agent-name> --permission-level <level>Boss-level agent (delegate admin)
If you want an agent to be able to do Hi-Boss admin operations just by chatting with it (register agents, remove agents, rebind adapters, etc.), grant it permission-level: boss:
hiboss agent set --token <boss-token> --name <agent-name> --permission-level bossThen, as the boss/user, go to Telegram and ask that agent to perform admin tasks for you (e.g., “add an agent”, “remove an agent”, “update bindings”). If you prefer, you can always do the same operations manually with hiboss agent register|set|delete.
This is powerful: a boss-level agent token can perform any boss-privileged CLI operations. Only do this for an agent you fully trust.
Skills
Hi-Boss supports built-in, global, and provider-private skills that are synced on new sessions.
Built-in skills:
agent-browser: Browser automation helpers for capturing pages, form flows, authenticated sessions, and related browser workflows.
Add a global skill (shared across agents/providers):
mkdir -p ~/hiboss/skills/<skill-name>
# create ~/hiboss/skills/<skill-name>/SKILL.md (and optional assets/scripts)Add a provider-private skill (for one agent + provider home):
# Codex provider home
mkdir -p ~/hiboss/agents/<agent-name>/codex_home/skills/<skill-name>
# Claude provider home
mkdir -p ~/hiboss/agents/<agent-name>/claude_home/skills/<skill-name>
# then create SKILL.md inside the skill folderSkill precedence when names conflict:
- provider-private > global > built-in
After adding or editing skills, refresh the session to apply updates (/new in Telegram, or hiboss agent refresh).
Memory
Each agent has a long-term memory file at:
~/hiboss/agents/<agent-name>/internal_space/MEMORY.md(or{{HIBOSS_DIR}}/agents/<agent-name>/internal_space/MEMORY.mdwhen overridden)
Docs
docs/index.md— docs hub (specs + user guides)docs/guide/install.md— install + upgrade notesdocs/guide/telegram.md— Telegram setup and usagedocs/guide/overview.md— features overview (cron, deliver-at, etc.)docs/guide/recipes.md— cron/scheduling recipes
