██████╗██╗ █████╗ ██╗ ██╗██████╗ ███████╗
██╔════╝██║ ██╔══██╗██║ ██║██╔══██╗██╔════╝
██║ ██║ ███████║██║ ██║██║ ██║█████╗
██║ ██║ ██╔══██║██║ ██║██║ ██║██╔══╝
╚██████╗███████╗██║ ██║╚██████╔╝██████╔╝███████╗
╚═════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚══════╝
██████╗██╗ █████╗ ██╗ ██╗
██╔════╝██║ ██╔══██╗██║ ██║
██║ ██║ ███████║██║ █╗ ██║
██║ ██║ ██╔══██║██║███╗██║
╚██████╗███████╗██║ ██║╚███╔███╔╝
╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝
Your Claude Code CLI, delivered to your phone via Telegram.
ClaudeClaw is not a chatbot wrapper. It spawns the actual claude CLI on your Mac or Linux machine and pipes the result back to your Telegram chat. Everything that works in your terminal — your skills, your tools, your context — works from your phone.
Follow these steps in order. The whole thing takes about 5 minutes.
| Requirement | Notes |
|---|---|
| Node.js 20+ | Check: node --version. Download at nodejs.org |
| Git | Check: git --version. If you've never used git, also run the two commands below |
| Claude Code CLI | Install: npm i -g @anthropic-ai/claude-code |
| Claude account | Log in: claude login (free, Pro, or Max plan) |
| Telegram account | Any existing account works |
First time using git? Run these two commands first (use your own name and email):
git config --global user.name "Your Name"
git config --global user.email "you@example.com"Without this, git operations will fail with a confusing error about missing identity.
macOS users: After starting ClaudeClaw for the first time, your Mac may show "Node wants to access..." permission dialogs. You need to click Allow on each one or the bot will silently hang. Keep an eye on your Mac screen during the first run.
Which Claude plan works best? ClaudeClaw runs the claude CLI, so any plan works (Free, Pro, Max). However, complex multi-step tasks (building skills, debugging code, multi-agent work) perform significantly better on Opus. If you're on the Free or Pro plan and Claude struggles with a task, the model matters. Sonnet is fast but often can't handle the kind of agentic work ClaudeClaw enables. Max ($100 or $200) with Opus is the recommended experience.
New to the terminal? Download Warp — it's a modern terminal with AI built in. If you hit any OS-level issues during setup (permissions, missing tools, PATH problems), type /agent in Warp and describe what went wrong. It will walk you through fixing it. This alone will save you hours of Googling.
That's it for hard requirements. Everything else (voice, video, WhatsApp) is optional and the setup wizard will ask about them.
You need a bot token from Telegram. This is what ClaudeClaw uses to send and receive messages.
- Open Telegram and search for @BotFather
- Send
/newbot - Follow the prompts — give it a name and a username (e.g.
MyAssistantBot) - Copy the token BotFather gives you — it looks like
1234567890:AAFxxxxxxx
Keep this token handy for the next step.
git clone https://github.com/earlyaidopters/claudeclaw.git
cd claudeclaw
npm installnpm run setupThe wizard walks you through everything interactively:
- Checks your environment (Node, Claude CLI, builds if needed)
- Asks which features you want — voice input, voice output, video analysis, WhatsApp
- Offers to clone other Claw projects for inspiration (NanoClaw, OpenClaw, TinyClaw)
- Opens your editor to personalize
CLAUDE.md - Lists the skills you'll want to install and where to get them
- Prompts for API keys only for the features you selected
- Installs a background service (launchd on macOS, systemd on Linux, PM2 on Windows)
Prefer to let Claude handle it? After cloning,
cdinto the repo, runclaude, and paste:I just cloned ClaudeClaw. Please read README.md and set me up completely — install deps, configure .env, help me get any API keys I need, and set up the background service for my OS.
Your chat ID locks the bot to you — no one else can use it.
- Start the bot:
npm start - Open Telegram and message your bot
- Send
/chatid - The bot replies with a number — that's your chat ID
- Add it to
.env:ALLOWED_CHAT_ID=your_number_here - Restart: stop the bot (Ctrl+C) and run
npm startagain
The setup wizard does this step automatically if you run
npm run setupbefore starting.
With the bot running, send any message. Try:
What can you do?
or
Check my calendar for today
or just start talking. Claude Code is running on your machine — it has access to your files, the web, and every skill you've installed.
You probably want ClaudeClaw running automatically, not manually in a terminal.
macOS — the setup wizard installs a launchd agent. Or manually:
# After running npm run setup, it's already installed.
# Logs:
tail -f /tmp/claudeclaw.logLinux — the setup wizard installs a systemd user service:
systemctl --user status claudeclaw
journalctl --user -u claudeclaw -fWindows — use WSL2 (recommended) and follow the Linux steps, or:
npm install -g pm2
pm2 start dist/index.js --name claudeclaw
pm2 save && pm2 startupnpm run statusOutput looks like:
✓ Node v22.3.0
✓ Claude CLI 1.0.12
✓ Bot token: @YourBotName
✓ Chat ID: 1234567890
✓ Voice STT: Groq (configured)
⚠ Voice TTS: not configured
✓ Service: running (PID 12345)
✓ Memory DB: 47 memories stored
─────────────────
All systems go.
When a new version is released, update in 4 commands:
cd claudeclaw # go to your ClaudeClaw directory
git pull # pull the latest code
npm install # install any new dependencies
npm run build # recompile TypeScriptThen restart the bot (Ctrl+C and npm start, or restart the background service).
Do not point Claude at the GitHub URL to read updates. Claude works with local files, so you need the repo cloned on your machine. git pull is how you stay current.
Upgrading from V1? If you heavily customized V1, start fresh with V2 and copy over your .env and any CLAUDE.md customizations. If you kept V1 mostly stock, git pull will work.
With just TELEGRAM_BOT_TOKEN and ALLOWED_CHAT_ID:
| Feature | Works? | Notes |
|---|---|---|
| Text messaging | ✅ | Full Claude Code, all tools |
| Photos | ✅ | Claude reads and analyzes them |
| Documents | ✅ | PDF, code, text — anything Claude Code can open |
| SQLite memory | ✅ | Auto-initialized on first run, nothing to configure |
| Session persistence | ✅ | Context carries across every message |
| Scheduled tasks | ✅ | Ask Claude to run anything on a cron schedule |
| All your skills | ✅ | Every skill in ~/.claude/skills/ auto-loads |
WhatsApp (/wa) |
✅ | No API key, but needs the wa-daemon running |
| Voice input | ❌ | Needs GROQ_API_KEY |
| Voice output (macOS) | ✅ | Uses say + ffmpeg locally — no API key needed |
| Voice output (cloud) | ❌ | ElevenLabs or Gradium API key for higher quality |
| Video analysis | ❌ | Needs GOOGLE_API_KEY + gemini-api-dev skill |
Get it: @BotFather → /newbot — free, instant.
What it does: Transcribes your voice notes using Whisper before passing them to Claude.
Get it: console.groq.com — free tier, no card needed.
Model: whisper-large-v3
| Alternative | Cost | Notes |
|---|---|---|
| Groq (default) | Free | Fastest to set up |
| OpenAI Whisper | ~$0.006/min | Swap transcribeAudio() in src/voice.ts |
| AssemblyAI | Free tier | More features |
| Local Whisper.cpp | Free | No API, runs on your Mac — needs code change |
What it does: Converts Claude's responses to audio in your cloned voice.
Get it: elevenlabs.io → clone your voice under "Voice Lab" → copy the Voice ID string.
Model: eleven_turbo_v2_5
Tuning: Edit src/voice.ts if the cloned voice sounds off:
stability: 0.5 (higher = more consistent but robotic)
similarity_boost: 0.75 (higher = closer to you but can distort)
| Provider | Cost | Notes |
|---|---|---|
| ElevenLabs (primary) | Free tier + paid | Best cloning quality |
| Gradium AI (built-in alternative) | Free tier (45k credits/mo) | Add GRADIUM_API_KEY + GRADIUM_VOICE_ID to .env |
| macOS say + ffmpeg (built-in fallback) | Free | No API key — works offline. Set TTS_VOICE in .env to change voice |
| OpenAI TTS | ~$0.015/1k chars | Good quality, no cloning — needs code change |
| Google Cloud TTS | Free tier | More robotic — needs code change |
The TTS cascade tries ElevenLabs first, falls back to Gradium, then to macOS say. Configure whichever providers you want — even just the local fallback works fine.
What it does: Analyzes videos you send using Gemini. Also handles images, audio, function calling, structured output, and code execution via the gemini-api-dev skill.
Get it: aistudio.google.com → "Get API key" — free tier.
Skill to install: The gemini-api-dev skill is published by Google at:
- Skill docs: github.com/google-gemini/gemini-skills/.../gemini-api-dev/SKILL.md
- Repo: github.com/google-gemini/gemini-skills
- Install: copy the
gemini-api-devfolder into~/.claude/skills/
The skill reads GOOGLE_API_KEY from the environment automatically.
What it does: Bypasses your Max subscription and uses pay-per-token billing instead.
When to use it: Server deployments, or if you want zero ambiguity about billing. The Max plan assumes "ordinary individual usage" — an always-on bot can hit limits faster than expected.
Get it: console.anthropic.com
ClaudeClaw ships with bundled Gmail and Google Calendar skills that work great out of the box. This is an optional alternative if you want broader Google Workspace access from a single tool.
Google released an official CLI that covers Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and every other Workspace API in one tool. It's dynamically built from Google Discovery Service and includes 40+ agent skills out of the box.
Repo: github.com/googleworkspace/cli
What's a CLI, and how is it different from a skill or MCP?
There are three ways Claude can interact with external services. They all achieve similar things, but work differently under the hood:
| What it is | How Claude uses it | |
|---|---|---|
| CLI (Command Line Interface) | A program you install on your machine that runs commands in the terminal. Think of it like a text-based app. | Claude runs terminal commands like workspace drive list or workspace gmail send through the Bash tool. It's the same as if you typed those commands yourself. |
| Skill | A markdown file (.md) that teaches Claude how to do something specific, usually by combining CLI commands, API calls, or code into a workflow. |
Claude reads the skill file and follows its instructions. ClaudeClaw's bundled Gmail skill, for example, tells Claude which Python scripts to run and how to format the output. |
| MCP (Model Context Protocol) | A server that runs in the background and gives Claude access to tools directly, without going through the terminal. | Claude calls MCP tools natively, like calling a function. No terminal commands needed. It's the most seamless option but requires a running MCP server. |
In short: a CLI is a tool you run in the terminal, a skill is a set of instructions that tells Claude how to use tools, and an MCP is a live server that gives Claude direct access to tools. They can all do similar things, just with different tradeoffs in setup and flexibility.
What it gives you beyond the bundled skills:
- Google Drive (upload, download, search, share)
- Sheets and Docs (read, write, create)
- Chat (send messages, manage spaces)
- Admin (user management, org units)
- Every other Workspace API, auto-discovered
When to use it: If you want your assistant to interact with Google Workspace services beyond email and calendar, or if you prefer a single unified CLI over individual skills.
Setup: Follow the install instructions in the repo, then reference it in your CLAUDE.md so your assistant knows it's available.
Sending a voice note transcribes it and executes it as a command. The reply comes back as text by default — not audio.
To get a voice reply back from a specific voice note, say one of these anywhere in your message:
"respond with voice" "respond via voice" "respond in voice"
"send me a voice note" "send a voice back" "voice reply"
"reply with voice" "reply via voice"
To toggle voice replies on permanently for all messages, send /voice. Send it again to turn it off. Resets on restart.
Voice output uses a cascade of TTS providers. If the first one fails, it tries the next:
- ElevenLabs (primary) — best quality, voice cloning
- Gradium AI (alternative) — free tier with 45k credits/month
- macOS
say+ ffmpeg (local fallback) — no API key needed, works offline on Mac
If all TTS providers fail, it falls back to text automatically.
Voice note sent
↓
.oga file downloaded → renamed .ogg (Groq requires this)
↓
Groq Whisper → transcribed text
↓
Check for voice-back trigger phrases
├── found → Claude runs → TTS cascade → audio reply
│ (ElevenLabs → Gradium → macOS say)
└── not found → Claude runs → text reply
Send a photo with or without a caption. Caption becomes the instruction. No caption — Claude describes what it sees.
Any file Claude Code can open: PDFs, code, markdown, CSV, plain text. Caption is the instruction.
ClaudeClaw downloads the video to workspace/uploads/ and tells Claude to analyze it with the gemini-api-dev skill. Without GOOGLE_API_KEY, Claude receives the file path but can't understand the content. Telegram caps downloads at 20MB.
Ask Claude to create a file (PDF, spreadsheet, image, text) and send it to you. Claude creates the file on your machine, includes a [SEND_FILE:/path] marker in its response, and the bot sends it as a Telegram attachment. Works with any file type up to 50MB.
"Write a haiku about AI and send it to me as a text file"
"Create a PDF summary of my meeting notes and send it"
"Generate a chart of monthly revenue and send the image"
Claude can also send photos inline using [SEND_PHOTO:/path], and attach captions via [SEND_FILE:/path|caption text]. Multiple files in a single response are sent in order. If a file doesn't exist, you get an error message instead of a crash.
Claude Code sessions carry full context across messages. Reference something from earlier — Claude knows. Send /newchat to start fresh.
Every skill in ~/.claude/skills/ loads on every session. Call them directly (/gmail check inbox) or describe what you want — Claude routes automatically if you've listed the skill in CLAUDE.md.
Everyday commands:
| Command | What it does |
|---|---|
/help |
List all available commands |
/stop |
Cancel the current agent query mid-execution — works from Telegram and the dashboard |
/model |
Switch Claude model for this chat. /model haiku for speed, /model sonnet for balance, /model opus (default) for full power. Resets on restart |
/voice |
Toggle voice replies on/off for all messages. When off, voice notes still get transcribed and executed — replies just come back as text |
/newchat |
Wipe the Claude Code session and start fresh. Use when context gets stale or the conversation window is filling up |
/respin |
Pull the last 20 conversation turns back into a fresh session. Run this right after /newchat to keep recent context without the full token weight |
/memory |
Show what the bot remembers about you (recent memories from SQLite) |
/forget |
Clear the session ID only. Memories stay and decay naturally over time |
Integrations:
| Command | What it does |
|---|---|
/wa |
Open the WhatsApp interface — shows recent chats, pick one to read and reply |
/slack |
Open the Slack interface — same flow as WhatsApp |
/dashboard |
Get a clickable link to the live web dashboard |
Setup (one-time):
| Command | What it does |
|---|---|
/start |
First message to the bot — confirms it's running |
/chatid |
Shows your Telegram chat ID for the ALLOWED_CHAT_ID setting in .env |
All commands are registered in Telegram's command menu, so you get autocomplete when you type /.
Any other /command (like /todo, /gmail, /calendar) passes through to Claude and routes to whatever matching skill you have installed.
Context windows fill up over long conversations. When things start feeling off or Claude starts missing context:
- Send
/newchatto start a completely fresh session - Send
/respinimmediately after
/respin pulls the last 20 conversation turns from the database and feeds them back into the new session as context. Claude sees what you discussed recently without carrying the full token weight of the old session. It's like a soft restart.
The pulled-in turns are marked as historical context (not new messages), so Claude treats them as background rather than active conversation.
Send /slack to enter Slack mode. It works like the WhatsApp interface:
/slack list recent conversations (unread first)
1 open conversation #1, show last 15 messages
r <text> reply to the open conversation
r 2 <text> quick-reply to conversation #2 without opening it
Type anything that isn't a number or r <text> to exit Slack mode and return to normal Claude.
A live web page that shows you everything happening inside your assistant: what tasks are scheduled, what it remembers, how much you're spending, and whether it's healthy. You open it from Telegram with one tap.
When you start ClaudeClaw, a small web page starts running alongside the bot. It reads directly from the same database the bot uses and shows you the data in real time.
Here's what happens when you use it:
- You send
/dashboardin Telegram — the bot replies with a clickable link - You tap the link — a web page opens in your browser with four live panels
- The page updates itself every 60 seconds — no need to refresh manually
By default, this web page only works on the same computer running the bot. If you want to open it from your phone while you're out, you can add a free tunnel (explained below).
Nothing leaves your machine. The dashboard reads your local database and shows it to you. No data is sent to any cloud service.
| Panel | What it shows you |
|---|---|
| Scheduled Tasks | Every task you've set up. Shows whether it's running or paused, when it will run next (with a live countdown), and what happened last time it ran. Tap to expand details. Pause, resume, or delete tasks directly from the dashboard. |
| Memory Landscape | How many things your assistant remembers, broken down by type. Tap the numbers to browse individual memories. Shows which memories are fading (used less often) and which ones come up the most. Includes a chart of how many new memories were created over the past month. |
| System Health | A visual meter showing how full the conversation window is (green = plenty of room, yellow = getting full, red = almost out). Also shows how long the current session has been running, whether Telegram, WhatsApp and Slack are connected, and the bot's username. |
| Tokens & Cost | How much you've spent today and all-time. A chart showing daily costs over the past month. A donut chart showing how efficiently the system is using cached data (higher = cheaper). |
The dashboard also has a live chat overlay — a floating chat button that opens a real-time conversation panel. You can send messages to Claude directly from the dashboard and see responses stream in via SSE (Server-Sent Events). It shows tool progress in real time (e.g. "Reading file", "Running command") and has a stop button to abort queries mid-execution. Messages sent from the dashboard are also relayed to your Telegram chat.
On your phone it's a single scrollable page. On a computer it splits into two columns automatically.
Open your terminal and paste this command:
node -e "console.log(require('crypto').randomBytes(24).toString('hex'))"It prints a long random string like a3f8c2d1e5b794... — this is your dashboard password. Copy it. You'll need it in the next step.
Open the .env file in your ClaudeClaw folder. (This is the same file where your Telegram token and other keys live. Open it with any text editor — TextEdit on Mac, Notepad on Windows, or whatever your terminal editor is.)
Add this line:
DASHBOARD_TOKEN=paste_the_long_string_here
That's the only setting you need. There are two optional ones you can ignore for now:
DASHBOARD_PORT=3141 # the dashboard uses port 3141 by default — only change this if something else on your computer already uses that port
DASHBOARD_URL= # leave this blank for now — you only fill this in if you set up phone access (Step 5 below)
Save the file.
npm run build
npm startYou should see a log line that says Dashboard server running. If you don't, double-check that DASHBOARD_TOKEN is in your .env.
The easiest way: send /dashboard to your bot in Telegram. It replies with a clickable link. Tap it. Done.
Or open your browser and go to:
http://localhost:3141/?token=YOUR_TOKEN&chatId=YOUR_CHAT_ID
Replace YOUR_TOKEN with the password from Step 1, and YOUR_CHAT_ID with the ALLOWED_CHAT_ID from your .env.
You're done. The dashboard now works on the machine running the bot.
If that's all you need, stop here. The next step is only if you want to access the dashboard from your phone while away from home.
Right now the dashboard only works when you're on the same computer. To open it from your phone (or anywhere), you need a "tunnel" — a free service that securely connects your computer to the internet without opening any ports.
Option A: Quick tunnel (free, takes 2 minutes, but the link changes every time you restart)
Best for trying it out:
# Install the tunnel tool (Mac)
brew install cloudflare/cloudflare/cloudflared
# On Linux, use: curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o /usr/local/bin/cloudflared && chmod +x /usr/local/bin/cloudflaredStart the tunnel:
cloudflared tunnel --url http://localhost:3141It prints a URL like https://something-random.trycloudflare.com. Copy that URL, open your .env file, and set:
DASHBOARD_URL=https://something-random.trycloudflare.com
Restart the bot (npm run build && npm start). Now when you send /dashboard in Telegram, the link works from your phone.
Downside: The URL changes every time you restart the tunnel. You'll need to update .env each time.
Option B: Permanent URL (free, but you need to buy a cheap domain for $5-12/year)
This gives you a URL that never changes — like https://dash.mysite.com. You need a domain registered through Cloudflare. Go to dash.cloudflare.com → Domain Registration → Register Domain. Cheapest options: .work, .xyz, .site (around $5-12/year).
Once you have a domain, run these commands one at a time:
# 1. Install the tunnel tool (skip if you already did this)
brew install cloudflare/cloudflare/cloudflared
# 2. Log in to Cloudflare (this opens your browser — pick your domain when asked)
cloudflared tunnel login
# 3. Create a tunnel (remember the ID it prints — you'll need it)
cloudflared tunnel create claudeclaw
# 4. Connect your domain to the tunnel (replace with your actual domain)
cloudflared tunnel route dns claudeclaw dash.yourdomain.comNow you need to create a config file. Open your terminal and paste:
nano ~/.cloudflared/config.ymlThis opens a text editor in the terminal. Paste the following (replace the two placeholder values with what the tunnel create command printed):
tunnel: YOUR_TUNNEL_ID
credentials-file: /Users/yourname/.cloudflared/YOUR_TUNNEL_ID.json
ingress:
- hostname: dash.yourdomain.com
service: http://localhost:3141
- service: http_status:404Save and exit (in nano: press Ctrl+X, then Y, then Enter).
Start the tunnel:
cloudflared tunnel run claudeclawUpdate your .env:
DASHBOARD_URL=https://dash.yourdomain.com
Restart the bot. Your permanent dashboard URL is now live.
First time? The secure certificate can take 1-5 minutes to activate on a brand new domain. If your browser shows an error page, wait a couple minutes and refresh.
To make the tunnel start automatically when your computer boots:
brew services start cloudflaredMoving to a new machine later? Copy two files from the old machine: ~/.cloudflared/config.yml and the .json credentials file next to it. Run cloudflared tunnel run claudeclaw on the new machine. Same URL, no changes needed.
- The dashboard link contains your password. Treat it like you'd treat a password. Don't screenshot the address bar and post it somewhere. The dashboard can only show data (nobody can change or delete anything through it), but your task details and memory content would be visible.
- If the bot stops, the dashboard stops. They run together. Restart the bot and the dashboard comes back automatically.
- Quick tunnel links are temporary. If you used Option A and restart the tunnel tool, you get a new URL and the old one stops working. Option B (permanent URL) doesn't have this problem.
- For extra security: Cloudflare Access (free for up to 50 users) can add a login page in front of the dashboard, so even if someone finds the URL they'd need to authenticate. This is optional — the token alone is fine for personal use.
Dashboard API reference (for developers)
All endpoints require ?token=YOUR_TOKEN. Per-user endpoints also need &chatId=YOUR_CHAT_ID.
| Endpoint | Returns |
|---|---|
GET / |
Dashboard HTML page |
GET /api/tasks |
All scheduled tasks |
GET /api/memories?chatId= |
Memory stats, fading list, top accessed, timeline |
GET /api/memories/list?chatId=§or=&limit=&offset= |
Paginated memory drill-down |
GET /api/health?chatId= |
Context gauge, session stats, connections |
GET /api/tokens?chatId= |
Cost stats, 30-day timeline, cache rate |
GET /api/info |
Bot name, username, PID |
GET /api/chat/stream |
SSE stream for real-time chat events (user messages, assistant responses, tool progress) |
GET /api/chat/history?chatId=&limit=&beforeId= |
Paginated conversation history |
POST /api/chat/send |
Send a message from the dashboard ({"message": "..."}) |
POST /api/chat/abort |
Abort the current agent query |
Requires a Slack User OAuth Token. This connects to your workspace so ClaudeClaw can read and send messages on your behalf.
- Go to api.slack.com/apps
- Click the green Create New App button (top right)
- In the popup, choose From scratch (not "From an app manifest")
- Fill in:
- App Name: anything you want (e.g.
ClaudeClaw) - Pick a workspace: select the Slack workspace you want to connect
- App Name: anything you want (e.g.
- Click Create App
You'll land on the Basic Information page for your new app.
This is the critical step. You need to add permissions so the app can read and send messages as you.
-
In the left sidebar, click OAuth & Permissions
-
Scroll down past "OAuth Tokens for Your Workspace" until you see the Scopes section
-
You'll see two subsections: Bot Token Scopes and User Token Scopes
-
Ignore Bot Token Scopes entirely. Click Add an OAuth Scope under User Token Scopes
-
Add each of these scopes one at a time (click Add an OAuth Scope, type the name, select it):
Scope Description channels:historyView messages and other content in public channels channels:readView basic information about public channels in a workspace chat:writeSend messages on a user's behalf groups:historyView messages and other content in private channels groups:readView basic information about private channels im:historyView messages and other content in direct messages im:readView basic information about direct messages mpim:historyView messages and other content in group direct messages mpim:readView basic information about group direct messages search:readSearch a workspace's content users:readView people in a workspace After adding all 11, your User Token Scopes section should show all of them listed.
- Scroll back up to the top of the OAuth & Permissions page
- Under OAuth Tokens for Your Workspace, click Install to Workspace
- Slack will show a permissions screen listing everything the app can do
- Click Allow
- You'll be redirected back to the OAuth & Permissions page
- You'll now see a User OAuth Token field with a token that starts with
xoxp- - Click Copy to copy the token
- Open your
.envfile in the ClaudeClaw project directory - Add the token:
SLACK_USER_TOKEN=xoxp-your-token-here - Restart ClaudeClaw
Send /slack in your Telegram chat. You should see a numbered list of your recent Slack conversations with unread counts.
If you get "Slack not connected", double-check:
- The token starts with
xoxp-(notxoxb-which is a bot token) - The
.envfile has no extra spaces around the=sign - You restarted ClaudeClaw after adding the token
ClaudeClaw ships with a Slack CLI at dist/slack-cli.js and a matching skill in skills/slack/. To use Slack via natural language from any Claude Code session:
cp -r skills/slack ~/.claude/skills/slackThen just say "check my slack" or "message Jane on slack saying hey" and Claude handles the rest.
cd /path/to/claudeclaw
node dist/slack-cli.js list # List conversations with unread counts
node dist/slack-cli.js list --limit 10 # Limit results
node dist/slack-cli.js read <channel_id> # Read messages from a conversation
node dist/slack-cli.js send <channel_id> "message" # Send a message
node dist/slack-cli.js send <channel_id> "reply" --thread-ts 1234.5678 # Thread reply
node dist/slack-cli.js search "jane" # Find conversations by nameNo API key needed. Uses your existing WhatsApp account via Linked Devices.
npx tsx scripts/wa-daemon.tsA QR code prints. Open WhatsApp → Settings → Linked Devices → scan within 30 seconds. Session saves to store/waweb/ — you only scan once.
/wa list 5 most recent chats (unread first)
1 open chat #1, show last 10 messages
r <text> reply to the open chat
r 2 <text> quick-reply to chat #2 without opening it
When someone messages you on WhatsApp:
📱 John Smith — new message
/wa to view & reply
No content is forwarded automatically. You pull it on demand.
Messages you send via the bot go into a wa_outbox SQLite table. The daemon's outbox poller (every 3 seconds) picks them up and delivers them. If the daemon is temporarily down, messages queue and deliver when it comes back.
ClaudeClaw has three layers of context working simultaneously, all automatic, nothing to configure.
Every time you send a message, Claude Code resumes the same session using a stored session ID. This means Claude carries your full conversation history — tool use, reasoning, prior decisions — across messages without you re-sending anything. It's the same as if you never left the terminal.
Use /newchat to start a completely fresh session when you want a clean slate.
Every meaningful message is saved to SQLite with a salience score and automatically recalled on relevant future messages. This works across /newchat resets — it's persistent, not session-bound.
How saving works:
| Message type | Sector | Decay rate |
|---|---|---|
Contains: my, I am, I prefer, remember, always, never |
semantic |
Slow — long-lived |
Any other message over 20 chars (not a /command) |
episodic |
Faster |
How salience works:
- Every memory starts at
1.0 - Each time a memory is retrieved and used:
+0.1(capped at5.0) - Every day, all memories older than 24 hours:
× 0.98(2% decay) - When salience drops below
0.1: automatically deleted
Things you mention often survive longer. Things you only said once fade away.
Before every message you send, two searches run in parallel:
- FTS5 keyword search — matches your message text against all stored memories, returns top 3
- Recency fallback — the 5 most recently accessed memories
The results are deduplicated and prepended to your message as a block Claude sees:
[Memory context]
- you prefer short bullet replies over long paragraphs (semantic)
- working on the YouTube channel rebrand this week (episodic)
- always send Telegram updates for heavy tasks (semantic)
[End memory context]
Claude uses this to answer without you re-explaining context every time.
/memory show the most recent memories stored for this chat
/forget clear the current session (memories keep decaying naturally)
Memory behavior is controlled by two files you can edit:
src/memory.ts — controls what gets saved and when:
const SEMANTIC_SIGNALS = /\b(my|i am|i'm|i prefer|remember|always|never)\b/i;Add words to this regex to make more things save as long-lived semantic memories.
src/db.ts — controls decay constants:
db.prepare('UPDATE memories SET salience = salience * 0.98 WHERE ...') // decay rate
db.prepare('DELETE FROM memories WHERE salience < 0.1') // deletion thresholdPrompts you can send Claude to manage memory:
"Remember that I always want responses in bullet points"
→ Saved as semantic memory (high salience, slow decay)
"Remember my Obsidian vault is at ~/Documents/Notes"
→ Saved as semantic memory
"What do you remember about me?"
→ Claude searches memories and summarizes
"Forget everything we've talked about today"
→ Tell Claude to run: DELETE FROM memories WHERE created_at > strftime('%s','now','-1 day')
"Show me all my stored memories"
→ Claude runs: SELECT content, sector, salience FROM memories ORDER BY salience DESC
You can also ask Claude to manually insert a high-salience memory about anything:
"Remember permanently that I run a YouTube channel about AI and my timezone is EST"
Claude will insert it directly into the memories table with high salience.
Tell Claude what you want, in plain language:
Every Monday at 9am, summarize AI news from the past week and send it to me
Every weekday at 8am, check my calendar and inbox and give me a briefing
Every 4 hours, check for new emails from clients and flag anything urgent
Claude creates and manages tasks via the built-in CLI. Manage them directly too:
node dist/schedule-cli.js list
node dist/schedule-cli.js create "summarize AI news" "0 9 * * 1"
node dist/schedule-cli.js pause <id>
node dist/schedule-cli.js delete <id>| Cron pattern | Meaning |
|---|---|
0 9 * * 1 |
Every Monday at 9am |
0 8 * * 1-5 |
Every weekday at 8am |
0 9 1 * * |
First of the month at 9am |
0 */4 * * * |
Every 4 hours |
0 7 * * * |
Every day at 7am |
ClaudeClaw ships with SQLite and creates everything automatically on first run. No migrations, no setup, no external database server. File lives at store/claudeclaw.db.
Schema:
sessions -- Claude Code session IDs, one per chat
memories -- Conversation memory with FTS5 search and salience decay
memories_fts -- Virtual FTS5 table, auto-synced via triggers
scheduled_tasks -- Cron-scheduled autonomous tasks
wa_message_map -- Maps Telegram message IDs to WhatsApp chats
wa_outbox -- Queued outgoing WhatsApp messages
wa_messages -- Incoming WhatsApp message history
slack_messages -- Slack message history
conversation_log -- Full conversation turns (used by /respin)Inspect it directly:
sqlite3 store/claudeclaw.db
SELECT * FROM memories ORDER BY accessed_at DESC LIMIT 10;
SELECT * FROM scheduled_tasks;
SELECT * FROM sessions;
SELECT * FROM wa_outbox WHERE sent_at IS NULL;CLAUDE.md is loaded into every Claude Code session. It's the personality and context file — the main thing to edit to make ClaudeClaw yours.
The sections that matter most:
Personality rules — Be specific. "No em dashes, ever" and "don't narrate what you're about to do, just do it" change behavior on every single message.
Who you are — What you do, your projects, your context. The more specific, the less you have to explain per message.
Your environment — File paths Claude should be able to reach without being told: your Obsidian vault, project directories, anything you reference regularly.
Skills table — Maps skill names to trigger phrases. This teaches Claude to invoke them automatically when you describe a task.
Message format — How responses should look in Telegram: tight and scannable, summary-first for long outputs, how to handle task lists.
The startup banner is in banner.txt at the project root. Replace it with anything or leave it empty. It's read fresh on every start.
ClaudeClaw auto-loads every skill in ~/.claude/skills/. Install a skill by copying its folder there.
ClaudeClaw ships with ready-to-use skills in the skills/ directory. Copy any of these to activate them:
# Gmail — read, triage, reply, send, create filters
cp -r skills/gmail ~/.claude/skills/gmail
# Google Calendar — schedule meetings, check availability, send invites
cp -r skills/google-calendar ~/.claude/skills/google-calendar
# Slack — list conversations, read messages, send replies
cp -r skills/slack ~/.claude/skills/slackGmail + Calendar require Google OAuth credentials. See .env.example for the variables and each skill's SKILL.md for one-time setup instructions (create a Google Cloud project, enable the API, download credentials, run auth once).
Slack requires a User OAuth Token. See the Slack setup section above for step-by-step instructions.
todo— read tasks from Obsidian or text filesagent-browser— browse the web, fill forms, scrape datamaestro— run multiple tasks in parallel with sub-agents
For video analysis:
gemini-api-dev— published by Google, handles video/image/audio/text- Docs: github.com/google-gemini/gemini-skills/.../gemini-api-dev/SKILL.md
- Install: copy the
gemini-api-devfolder to~/.claude/skills/
Browse more: github.com/anthropics/claude-code
| Variable | Required | Description |
|---|---|---|
TELEGRAM_BOT_TOKEN |
Yes | From @BotFather |
ALLOWED_CHAT_ID |
Yes | Your chat ID — send /chatid to get it |
ANTHROPIC_API_KEY |
No | Pay-per-token instead of Max subscription |
GROQ_API_KEY |
No | Voice input — console.groq.com |
ELEVENLABS_API_KEY |
No | Voice output — elevenlabs.io |
ELEVENLABS_VOICE_ID |
No | Your ElevenLabs voice ID string |
GOOGLE_API_KEY |
No | Gemini — aistudio.google.com |
SLACK_USER_TOKEN |
No | Slack User OAuth Token (starts with xoxp-) |
GOOGLE_CREDS_PATH |
No | Path to Google OAuth credentials.json (default: ~/.config/gmail/credentials.json) |
GMAIL_TOKEN_PATH |
No | Path to Gmail OAuth token (default: ~/.config/gmail/token.json) |
GCAL_TOKEN_PATH |
No | Path to Calendar OAuth token (default: ~/.config/calendar/token.json) |
DASHBOARD_TOKEN |
No | 48-char hex token for dashboard access |
DASHBOARD_PORT |
No | Dashboard port (default: 3141) |
DASHBOARD_URL |
No | Public URL if using Cloudflare Tunnel |
CLAUDE_CODE_OAUTH_TOKEN |
No | Override which Claude account is used |
npm run setup # Interactive setup wizard
npm run status # Health check — env, bot, DB, service
npm run build # Compile TypeScript → dist/
npm start # Run compiled bot (production)
npm run dev # Run with tsx, no build needed (development)
npm test # Run test suite (vitest)
npm run typecheck # Type-check without compilingYes. On February 19, 2026, Anthropic published their Legal and Compliance page banning OAuth tokens in third-party tools. ClaudeClaw is not affected.
What's banned: Tools that extract your OAuth token and make API calls with it from third-party code — impersonating Claude Code without running it (e.g. the old OpenClaw).
Why ClaudeClaw is different: @anthropic-ai/claude-agent-sdk's query() spawns the claude binary as a child process. That subprocess manages its own OAuth from ~/.claude/. ClaudeClaw never reads or transmits your token. It runs Claude Code and reads the output — identical to claude -p "message" in a terminal.
| ClaudeClaw | Token-extraction tools | |
|---|---|---|
Runs the official claude CLI |
✅ | ❌ |
OAuth stays in ~/.claude/ |
✅ | ❌ |
| Uses Anthropic-published SDK | ✅ | ❌ |
| Single-user, personal machine | ✅ | ❌ |
| Anthropic telemetry intact | ✅ | ❌ |
For server or multi-user deployments, set ANTHROPIC_API_KEY to use pay-per-token billing.
ClaudeClaw is designed to run on your personal machine for your own use. A few things to be aware of:
bypassPermissions mode. The bot runs Claude Code with permissionMode: 'bypassPermissions'. This is required because there's no terminal to approve tool-use prompts. It means Claude can execute any tool (shell commands, file reads, web requests) without confirmation. This is safe when the bot is locked to your chat ID on your own machine. Do not expose it to untrusted users.
WhatsApp daemon runs on localhost only. The wa-daemon HTTP API (port 4242) and Chrome DevTools Protocol (port 9222) bind to 127.0.0.1. They are not accessible from outside your machine, but any process running locally can reach them. If you run untrusted code on the same machine, be aware that it could interact with your WhatsApp session.
notify.sh is called by Claude. The notification script sends Telegram messages via curl. Since Claude has full shell access, it can call this script with any content. This is by design (it's how progress updates work), but be aware that prompt injection via external content (web pages, files) could theoretically cause Claude to send unexpected messages.
Set ALLOWED_CHAT_ID immediately. Until this is set, the bot responds to any Telegram user who messages it. The setup wizard helps you configure this, but if you start the bot manually before setting it, it's open to everyone who knows the bot username.
Bot doesn't respond
- Check
ALLOWED_CHAT_IDmatches the number from/chatid - Check logs:
tail -f /tmp/claudeclaw.log - Run
npm run statusfor a full health check - Verify Claude auth:
claude --version - macOS: Check if your Mac is showing "Node wants to access..." permission dialogs. The bot hangs until you click Allow. This is easy to miss if your Mac screen is off or in the background.
Setup fails at bracket placeholders
CLAUDE.mdships with[BRACKETED]placeholder values like[YOUR NAME]and[YOUR ASSISTANT NAME]- These must be replaced before the bot can work properly
- The setup wizard opens
CLAUDE.mdin your editor for this, but if you skip it or your editor doesn't save, edit it manually: openCLAUDE.mdin any text editor, find/replace all[BRACKETED]values with your actual info - You do not need to fill in every bracket. At minimum:
[YOUR ASSISTANT NAME],[YOUR NAME], and[PATH TO CLAUDECLAW](the full path to your claudeclaw directory)
Git errors during setup
- "Please tell me who you are" — run
git config --global user.name "Your Name"andgit config --global user.email "you@email.com" - Git needs these set once, globally, before it can do anything
Can't access the internet / "break out"
- ClaudeClaw runs the real Claude Code CLI, which has full internet access through its built-in tools (web search, web fetch, bash with curl, etc.)
- If Claude says it can't access the internet, it's likely a skill or prompt issue, not a ClaudeClaw limitation
- Make sure your Claude Code CLI works in the terminal first: open a terminal, run
claude, and ask it to search the web
Voice notes return an error
GROQ_API_KEYmust be in.envand the bot restarted after adding it
Voice replies not working
- Both
ELEVENLABS_API_KEYandELEVENLABS_VOICE_IDmust be set - Voice ID is a string like
21m00Tcm4TlvDq8ikWAM, not the voice name - Either
/voicemode must be on, or say "respond with voice" in your message
WhatsApp not connecting
wa-daemonmust be running separately:npx tsx scripts/wa-daemon.ts- QR code expires after ~30s — kill and restart the daemon if it timed out
- To force re-authentication, delete
store/waweb/and restart the daemon
"409 Conflict: terminated by other getUpdates request"
- Two instances running. Kill the old one:
kill $(cat store/claudeclaw.pid)
Session feels off or confused
- Send
/newchatfor a fresh start
File downloads fail
- Telegram caps downloads at 20MB — this is a Telegram API limit, not a ClaudeClaw one
"Do I need the mega prompt / Rebuild_Prompt.md?"
No. There is no separate prompt to execute and no Rebuild_Prompt.md file. CLAUDE.md in the repo is the prompt — it loads automatically into every Claude Code session. You personalize it once (replace the [BRACKETED] placeholders with your info) and forget about it. Just clone the repo, run setup, and go. When you git pull updates, your personalized .env stays untouched (gitignored) and CLAUDE.md changes are merged by git.
"Does this use Claude Remote?"
No. ClaudeClaw has nothing to do with Anthropic's Remote product. It runs the claude CLI locally on your own machine (Mac, Linux, or Windows via WSL2) and pipes results to Telegram. No cloud VMs, no remote sessions.
"Does this work on Windows?" Yes, through WSL2. Install WSL2, clone ClaudeClaw inside the WSL filesystem, and follow the normal Linux setup steps. The setup wizard detects Windows and offers WSL2 or PM2 options.
"What is GOOGLE_API_KEY for?" Video analysis via Google Gemini. It is not for Gmail or Google Calendar (those use separate OAuth credentials via the gmail and google-calendar skills). Get it free at aistudio.google.com.
"Should I watch the Claude Code video first?" Recommended but not required. The video covers how Claude Code works under the hood, which helps you understand what ClaudeClaw is actually doing. But you can set up ClaudeClaw first and watch it later.
"How do I update when a new version drops?"
cd claudeclaw && git pull && npm install && npm run build then restart. See Updating ClaudeClaw above.
"Telegram formatting looks broken / not formatting properly" ClaudeClaw converts Claude's Markdown to Telegram-safe HTML (bold, italic, code blocks, links). Telegram's formatting support is limited compared to a full web page. If something looks off, it's usually Telegram's rendering, not a bug. For very long or complex responses, the formatting is intentionally kept simple to avoid Telegram parse errors.
"Can I add extra security like 2FA?"
ALLOWED_CHAT_ID restricts the bot to your Telegram account, which is the default security layer. Community members have added Google Authenticator (TOTP) for tiered permissions (read-only vs elevated actions with time-limited re-auth). This isn't built in yet, but it's a straightforward addition to handleMessage() in src/bot.ts if you want that extra layer.
flowchart TD
Phone["📱 Telegram App"] -->|message| TGAPI["Telegram Bot API"]
TGAPI -->|long-poll| Bot["bot.ts\n(grammy)"]
Bot -->|voice note| STT["Groq Whisper\nTranscription"]
Bot -->|photo / doc / video| DL["Media Download\nworkspace/uploads/"]
STT --> Handler
DL --> Handler
Bot -->|text| Handler["handleMessage()"]
Handler -->|FTS5 + recency| Mem["Memory Layer\nSQLite"]
Mem -->|context block| Agent
Agent["agent.ts\nClaude Agent SDK"] -->|spawns subprocess| CC["claude CLI\n~/.claude/ auth"]
CC -->|loads| Config["CLAUDE.md\n+ ~/.claude/skills/"]
CC -->|uses| Tools["Bash · Web · MCP\nFile system · APIs"]
CC -->|result| Agent
Agent --> Format["Format + Split\nMarkdown → HTML"]
Format -->|reply| TGAPI
Sched["Scheduler\ncron tasks"] -->|every 60s| Agent
WA["WhatsApp daemon\n:4242"] --> Bot
DB[("SQLite\nstore/claudeclaw.db")] --- Mem
DB --- Sched
DB --- WA
claudeclaw/
│
│ ← Files you'll actually touch
├── CLAUDE.md ← START HERE: your assistant's personality and context
├── banner.txt ← ASCII art shown on startup — edit or replace freely
├── .env ← Your API keys (created by setup wizard, gitignored)
│
│ ← Configuration and setup
├── .env.example Template for .env — shows all available variables
├── claudeclaw.plist macOS LaunchAgent template (setup wizard uses this)
├── package.json npm scripts and dependencies
├── tsconfig.json TypeScript compiler config
│
│ ← Bot source code (src/)
├── src/
│ ├── index.ts Main entrypoint — starts everything
│ ├── bot.ts Handles all Telegram messages (text, voice, photo, etc.)
│ ├── agent.ts Runs Claude Code — the core integration
│ ├── db.ts SQLite database — all tables and queries
│ ├── memory.ts Memory saving, searching, and decay logic
│ ├── scheduler.ts Cron task runner — fires tasks every 60 seconds
│ ├── voice.ts Voice transcription (Groq) and synthesis (ElevenLabs)
│ ├── media.ts Downloads files from Telegram, cleans up after 24h
│ ├── slack.ts Slack API client (conversations, messages, send)
│ ├── slack-cli.ts CLI wrapper for Slack (used by the slack skill)
│ ├── whatsapp.ts WhatsApp client via whatsapp-web.js
│ ├── dashboard.ts Web dashboard server (Hono + API routes + token auth)
│ ├── dashboard-html.ts Dashboard HTML/CSS/JS (Tailwind + Chart.js, no build step)
│ ├── config.ts Reads .env safely (never pollutes process.env)
│ ├── env.ts Low-level .env file parser
│ └── schedule-cli.ts CLI tool for managing scheduled tasks
│
│ ← Skills (copy to ~/.claude/skills/ to activate)
├── skills/
│ ├── gmail/SKILL.md Gmail inbox management
│ ├── google-calendar/ Calendar events, invites, availability
│ └── slack/SKILL.md Slack conversations and messages
│
│ ← Scripts (scripts/)
├── scripts/
│ ├── setup.ts Interactive setup wizard — run with: npm run setup
│ ├── status.ts Health check — run with: npm run status
│ ├── notify.sh Sends a Telegram message from the shell (used by Claude)
│ └── wa-daemon.ts WhatsApp daemon — run separately for WhatsApp bridge
│
│ ← Runtime data (auto-created, gitignored)
├── store/
│ ├── claudeclaw.db SQLite database — created automatically on first run
│ ├── claudeclaw.pid Tracks the running process to prevent duplicates
│ └── waweb/ WhatsApp session — scan QR once, persists here
│
└── workspace/
└── uploads/ Telegram media downloads — auto-deleted after 24 hours
The only files you need to edit to get started:
CLAUDE.md— fill in your name, what you do, your file paths, your skills.env— add your API keys (the setup wizard does this for you)
Everything else runs without modification.
ClaudeClaw can run specialist agents alongside the main bot. Each agent is its own Telegram bot with its own personality, its own Claude Code session, and its own chat on your phone.
Example setup: Comms, Content, Ops, and Research agents, each with a pop-art avatar generated via Gemini.
Your main ClaudeClaw bot does everything. That's powerful but also means one long conversation, one context window, and one personality trying to handle email, research, billing, and content all at once.
Agents let you split the work:
| What | Main bot | Specialist agents |
|---|---|---|
| Context window | Shared across all tasks | Each gets its own 1M window |
| Personality | General purpose | Focused CLAUDE.md per role |
| Model | Opus (default) | Sonnet (cheaper, fast enough for routine work) |
| Scheduled tasks | All fire in one process | Scoped per agent |
| Obsidian context | Optional | Auto-injected from assigned vault folders |
| Cost | Full Opus pricing | Sonnet by default, /model opus when needed |
All agents share your machine, your SQLite database, your global skills (~/.claude/skills/), and your .env secrets. A hive mind table lets agents log what they did so any agent (or the main bot) can see cross-agent activity.
This is 100% optional. npm start with no flags works exactly like before. Zero breaking changes.
Think about the roles that make sense for your workflow. Here are the templates we ship:
| Template | What it handles | Default model |
|---|---|---|
comms |
Email, Slack, WhatsApp, YouTube comments, Skool, LinkedIn DMs | Sonnet |
content |
YouTube scripts, LinkedIn posts, carousels, trend research | Sonnet |
ops |
Calendar, billing, Stripe, Gumroad, admin, task management | Sonnet |
research |
Deep web research, academic sources, competitive intel | Sonnet |
You can start with one and add more later. Or use the blank _template and define your own role entirely.
Each agent needs its own Telegram bot. Open Telegram and message @BotFather:
- Send
/newbot - Choose a name (e.g., "Mark Comms", "Mark Ops")
- Choose a username ending in
_bot(e.g.,mark_comms_bot) - Copy the token BotFather gives you
Repeat for each agent you want. Keep the tokens handy.
Or use the interactive wizard:
npm run agent:createIt walks you through template selection, bot creation, token setup, and a test start.
For each agent, you need two files in agents/<name>/:
agent.yaml -- the agent's config:
name: Comms
description: Email, Slack, WhatsApp, YouTube comments, Skool, LinkedIn
telegram_bot_token_env: COMMS_BOT_TOKEN
model: claude-sonnet-4-6
# Optional: auto-inject open tasks from your Obsidian vault
obsidian:
vault: /path/to/your/obsidian/vault
folders:
- Inbox/
- Client Work/
read_only:
- Daily Notes/CLAUDE.md -- the agent's personality and instructions:
# Comms Agent
You handle all human communication on the user's behalf.
[... focused instructions for this role ...]Add the bot token to .env:
COMMS_BOT_TOKEN=1234567890:AAFxxxxxxxxxxxxxxxxxxxxxxx
Each agent runs in its own terminal. Open a new tab for each:
npm start -- --agent comms # Terminal 1
npm start -- --agent content # Terminal 2
npm start -- --agent ops # Terminal 3
npm start -- --agent research # Terminal 4Each will show:
ClaudeClaw agent [comms] online: @mark_comms_bot
Your main bot keeps running in its own terminal as usual (npm start).
Run as background services instead (auto-restart, survive reboots):
bash scripts/agent-service.sh install comms
bash scripts/agent-service.sh install content
bash scripts/agent-service.sh install ops
bash scripts/agent-service.sh install researchOpen each agent's chat in Telegram and send /start. They'll respond with their name and role. From there, use them like you use the main bot -- voice notes, photos, files, slash commands -- everything works.
Every agent inherits all of ClaudeClaw's features with zero extra config:
- Voice notes (STT via Groq, TTS via ElevenLabs/Gradium/macOS say)
- Photo, document, and video handling (including Gemini video analysis)
- File sending (
[SEND_FILE:...]markers) - All slash commands: /newchat, /respin, /voice, /model, /memory, /stop, /wa, /slack
- All global skills from
~/.claude/skills/ - Memory system (FTS5 search, salience decay) -- isolated per agent
- Context window tracking and compaction warnings
- WhatsApp and Slack integration
When you add features to the main bot, rebuild once (npm run build) and every agent gets them on next restart.
If you use Obsidian, agents can be assigned vault folders. Open tasks (- [ ] lines) from those folders are automatically prepended to every message -- the agent just knows what's on your plate without you having to say anything.
# In agent.yaml
obsidian:
vault: /Users/you/ObsidianVault
folders:
- Client Work/ # agent can read and reference
- Inbox/
read_only:
- Daily Notes/ # reference onlyWhat the agent sees before every message:
[Obsidian context]
Client Work//
Open: Send proposal to Acme Corp (Acme Deal)
Open: Follow up on invoice #42 (Billing)
Inbox//
Open: Get back to Brock about podcast (Podcast Invite)
[End Obsidian context]
Scanned every 5 minutes (cached), only open tasks, only from assigned folders. Lightweight -- typically 200-500 tokens.
When an agent completes a meaningful action, it logs it to the shared hive_mind table. Any agent can query what others have done:
SELECT agent_id, action, summary, datetime(created_at, 'unixepoch')
FROM hive_mind ORDER BY created_at DESC LIMIT 20;The dashboard shows the hive mind feed in real-time across all agents.
Cron jobs belong to the agent that creates them. A task created in the comms agent only fires in the comms agent's process:
# Create a task for the comms agent
node dist/schedule-cli.js create "check youtube comments" "0 */4 * * *" --agent comms
# List tasks for a specific agent
node dist/schedule-cli.js list --agent commsWhen agents are configured, the dashboard adds two panels at the top:
- Agent Status Cards -- shows each agent with a color-coded status (live/offline), model, today's turns and cost
- Hive Mind Feed -- timestamped cross-agent activity, color-coded by agent
All existing dashboard panels (tasks, memory, health, tokens, chat) continue to work as before.
# 1. Copy the template
cp -r agents/_template agents/myagent
# 2. Edit the personality
vim agents/myagent/CLAUDE.md
# 3. Create agent.yaml from the example
cp agents/myagent/agent.yaml.example agents/myagent/agent.yaml
vim agents/myagent/agent.yaml
# 4. Create a bot via @BotFather, add token to .env
echo "MYAGENT_BOT_TOKEN=your_token_here" >> .env
# 5. Build and start
npm run build
npm start -- --agent myagentUse any image generation tool (Gemini, DALL-E, Midjourney) to create pop-art or branded avatars for your agents. Set them via the Telegram Bot API:
curl -X POST "https://api.telegram.org/bot<TOKEN>/setMyProfilePhoto" \
-F 'photo={"type":"static","photo":"attach://file"}' \
-F "file=@assets/agent-comms.png"5 Node.js processes (main + 4 agents) use ~500MB RAM total at idle. Each runAgent() call spawns a separate Claude Code subprocess that exits when done. SQLite WAL mode handles concurrent access from all processes with no contention.
The same runAgent() pattern in src/agent.ts works on any channel:
- NanoClaw — WhatsApp, isolated Linux containers
- OpenClaw — Telegram, WhatsApp, Slack, Discord, iMessage, Signal, and more
- TinyClaw — ~400 lines of shell, Claude Code + tmux, zero dependencies
MIT












