Get Ed – your personal AI teaching assistant – right in Telegram. Five minutes, no technical experience needed.
/start/newbotMr Smith's Teaching Assistant or Ms Garcia Claw-EDbot or BotMrSmithTeacherBot or MsGarciaClawEDBotMrSmithGNSBot7123456789:AAHfiqks8w3nR4xzqGhK2m8gPqRze0gY1Xs
Copy this token. You will need it in the next step.
Keep your token secret. Anyone with this token can control your bot. If it leaks, send
/revoketo @BotFather to generate a new one.
pip install clawed
If you already have Claw-ED installed:
pip install clawed --upgrade
clawed config set-token YOUR_BOT_TOKEN
Replace YOUR_BOT_TOKEN with the token from BotFather. For example:
clawed config set-token 7123456789:AAHfiqks8w3nR4xzqGhK2m8gPqRze0gY1Xs
This saves the token to your config so you never need to type it again.
Once your token is saved, Ed starts the Telegram bot automatically every time you run clawed. There is no separate step to launch the bot – he handles it himself.
clawed
Ed detects your saved Telegram token, checks that no bot instance is already running, and spawns the bot as a background daemon. You will see Ed’s normal terminal interface, and your Telegram bot will be live simultaneously.
Now open Telegram, find your bot by its username, and send it a message.
If you want to start the bot without the terminal TUI, you can run it directly:
clawed bot
Ed manages the Telegram bot as a background daemon so you never have to think about it:
clawed launch, Ed checks for a saved Telegram bot token in your config, environment variable, or keyring.~/.eduagent/bot.lock for a running bot process (by PID).python -m clawed bot as a fully detached background process. On macOS/Linux this uses start_new_session=True; on Windows it uses CREATE_NO_WINDOW.The bot runs silently in the background until you shut down your machine or explicitly stop it. You do not need to keep a terminal window open.
To manually stop the bot:
clawed bot --kill
Try sending these messages in Telegram:
I teach 9th grade biologyPlan a 2-week unit on cell divisionWrite a lesson on mitosisMake a worksheet for today's lesson/help to see everything Ed can doYou do not have to use config set-token. Pick whichever feels most natural:
| Method | Command |
|---|---|
| Saved config (recommended) | clawed config set-token TOKEN then clawed |
| Command-line flag | clawed bot --token TOKEN |
| Environment variable | export TELEGRAM_BOT_TOKEN=TOKEN then clawed |
Ed checks in this order: --token flag > TELEGRAM_BOT_TOKEN env var > saved config.
You have not provided a token. Run:
clawed config set-token YOUR_TOKEN
Another instance of the bot is already running. Only one process can poll for updates at a time. Stop the other instance first with clawed bot --kill.
Your bot token is wrong or was revoked. Get a new one:
/mybotsclawed config set-token NEW_TOKENCheck your internet connection. Ed needs to reach Telegram’s servers at api.telegram.org.
Your LLM API key is not set. Run clawed setup to configure one, or set it directly:
# Option A: Anthropic (Claude)
export ANTHROPIC_API_KEY=sk-ant-...
# Option B: OpenAI (GPT-5.4)
export OPENAI_API_KEY=sk-...
# Option C: Ollama (cloud or local)
clawed config set-model ollama
Can students message my bot?
Yes, but Ed treats every Telegram user as a separate teacher session. For student-facing features, use the student bot: tell Ed start student bot for lesson 1 and share the class code with students.
Can I run multiple bots?
Yes – each bot needs its own token and its own clawed bot process. Use --data-dir to keep their data separate:
clawed bot --token TOKEN_A --data-dir ~/.clawed-bio
clawed bot --token TOKEN_B --data-dir ~/.clawed-history
Is my data sent to Telegram? Only the messages you send to the bot and Ed’s responses travel through Telegram’s servers. Your lesson plan files stay on your machine. LLM API calls go directly to your chosen provider (Anthropic, OpenAI, Google, or Ollama).
Can I customize my bot’s profile picture?
Yes. Message @BotFather, send /mybots, select your bot, tap Edit Bot > Edit Botpic, and upload a photo.
Can I add my bot to a group chat? Not recommended – Ed is designed for 1-on-1 conversations with individual teachers.
Does the bot keep running when I close the terminal?
Yes. Ed runs the bot as a background daemon that persists independently of your terminal session. He will keep running until you restart your machine or explicitly stop him with clawed bot --kill.
Need help? Open an issue at https://github.com/SirhanMacx/Claw-ED/issues