Getting Started
Install, onboard, verify bot identity, run first commands.
This documentation explains exactly how Dexbot works, how to configure it, and how to run it safely in daily operations. It follows a practical, operator-first format so users can get started quickly and still go deep.
| You Are... | Start Here |
|---|---|
| New to Dexbot | Read Quick Start, then run npm run onboard. |
| Already installed, want daily usage | Go to Command Reference and Schedules. |
| Need repeatable workflows | Use Skills Guide and /skill commands. |
| Deploying docs/pages | Use Cloudflare Pages Deploy section. |
| Running in groups/topics | Review Security and Operations Runbook first. |
Install, onboard, verify bot identity, run first commands.
Memory model, topic scopes, Codex execution flow, skills, schedules.
Security, access controls, restart strategy, autostart, troubleshooting.
git clone https://github.com/alanayoubi/Dexbot.git
cd Dexbot
npm install
npm run onboard
npm run start
/whoami and /chatid.
TELEGRAM_BOT_TOKENALLOWED_TELEGRAM_USER_IDSALLOWED_TELEGRAM_CHAT_IDSTELEGRAM_PRIVATE_ONLY=trueTELEGRAM_GROUP_REQUIRE_MENTION=truechmod 600 .envDexbot acts as the Telegram gateway to Codex runtime, handling message ingestion, context preparation, and response delivery.
Each chat/topic can run isolated memory and scheduling scope to avoid cross-project contamination.
Working memory per turn, session memory per scope, and canonical long-term memory files with index/retrieval support.
Dexbot can execute shell commands and file operations through Codex capabilities, governed by your runtime configuration.
/skill list
/skill paths
/skill show sales-pages
/skill create | |
/skill run |
/skill delete
$sales-pages <task>.<skills-root>/<skill-name>/SKILL.md/schedule add daily 09:00 | Send my morning report with priorities and blockers.
/schedule add heartbeat 13:30 | Check in and ask what to focus on now.
/schedule list
/schedule run 3
/schedule pause 3
/schedule resume 3
/schedule remove 3
tz=Area/City.Dexbot handles images, documents, videos, voice notes, and audio files directly from chat.
Use YouTube/audio pipeline for transcription outputs and reports saved under data/transcripts.
npm run yt:transcribe -- "https://www.youtube.com/watch?v=VIDEO_ID"
CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID.npx wrangler pages deploy deploy/dexbot --project-name dexbot --branch main
Always enforce allowlists for users and optionally chat ids.
Keep tokens in .env only, never commit, rotate if exposed.
Run high-access modes only on isolated machines.
/memory for scope sanity./schedule list to verify active jobs./restart first./whoami and /chatid.Yes. Dexbot is open source. You bring your own Codex login and API/provider usage costs where applicable.
Yes. It runs on your own machine, which gives you direct control of environment, data, and automation.
Yes, with proper allowlists and mention requirements. Topic scoping keeps context isolated.
Yes. Add skills, schedules, scripts, and deployment workflows based on your operating model.