Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OpenClaw Agent - AI Assistant with Telegram Bot Integration
|
| 2 |
+
|
| 3 |
+
Your personal AI assistant, powered by **OpenClaw** and deployed on Hugging Face Spaces. This Space demonstrates how to integrate OpenClaw with **Telegram Bot** and other messaging platforms, enabling a seamless AI Agent experience.
|
| 4 |
+
|
| 5 |
+
## 🦞 What is OpenClaw?
|
| 6 |
+
OpenClaw is a **personal AI assistant** you run on your own devices. It answers you on the channels you already use, such as **Telegram, WhatsApp, Slack, Discord, Google Chat, Signal, iMessage, BlueBubbles, IRC, Microsoft Teams, Matrix, Feishu, LINE, Mattermost, Nextcloud Talk, Nostr, Synology Chat, Tlon, Twitch, Zalo, WeChat, QQ, and WebChat**.
|
| 7 |
+
|
| 8 |
+
OpenClaw is designed to feel **local, fast, and always-on**, with a focus on **privacy, customization, and multi-channel support**. The Gateway is the control plane, while the assistant is the product.
|
| 9 |
+
|
| 10 |
+
## ✨ Key Features
|
| 11 |
+
- **Multi-Channel Support**: Integrate with **Telegram, WhatsApp, Slack, Discord, Signal, iMessage, and more**.
|
| 12 |
+
- **Telegram Bot Integration**: Deploy your AI assistant as a **Telegram Bot** with minimal setup.
|
| 13 |
+
- **AI Agent Framework**: Leverage OpenClaw's **multi-agent routing, skills, and tools** for advanced use cases.
|
| 14 |
+
- **Local-First**: Run OpenClaw on your own hardware for **privacy and control**.
|
| 15 |
+
- **Voice and Canvas**: Supports **voice interactions** on macOS/iOS/Android and **live Canvas** for visual workspaces.
|
| 16 |
+
- **Extensible**: Use **skills** to customize your assistant for specific tasks (e.g., email management, GitHub issues, weather forecasts).
|
| 17 |
+
|
| 18 |
+
## 🚀 Getting Started
|
| 19 |
+
### 1. Deploy OpenClaw Locally
|
| 20 |
+
To use this Space as a **Telegram Bot** or integrate with other platforms, you need to **deploy OpenClaw on your own machine**. Follow these steps:
|
| 21 |
+
|
| 22 |
+
#### Install OpenClaw
|
| 23 |
+
```bash
|
| 24 |
+
npm install -g openclaw@latest
|
| 25 |
+
# or: pnpm add -g openclaw@latest
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
#### Run Onboarding
|
| 29 |
+
```bash
|
| 30 |
+
openclaw onboard --install-daemon
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
This installs the **Gateway daemon** (launchd/systemd user service) so it stays running.
|
| 34 |
+
|
| 35 |
+
#### Start the Gateway
|
| 36 |
+
```bash
|
| 37 |
+
openclaw gateway --port 18789 --verbose
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
### 2. Set Up Telegram Bot
|
| 41 |
+
1. **Create a Telegram Bot**:
|
| 42 |
+
- Talk to [@BotFather](https://t.me/BotFather) on Telegram and create a new bot.
|
| 43 |
+
- Copy the **API token** provided by BotFather.
|
| 44 |
+
|
| 45 |
+
2. **Configure OpenClaw for Telegram**:
|
| 46 |
+
Add the following to your `~/.openclaw/openclaw.json`:
|
| 47 |
+
```json
|
| 48 |
+
{
|
| 49 |
+
"channels": {
|
| 50 |
+
"telegram": {
|
| 51 |
+
"enabled": true,
|
| 52 |
+
"token": "YOUR_TELEGRAM_BOT_TOKEN",
|
| 53 |
+
"allowFrom": ["*"],
|
| 54 |
+
"dmPolicy": "open"
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
3. **Restart the Gateway**:
|
| 61 |
+
```bash
|
| 62 |
+
openclaw gateway restart
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
4. **Test Your Bot**:
|
| 66 |
+
- Send a message to your bot on Telegram. It should respond!
|
| 67 |
+
|
| 68 |
+
### 3. Deploy on Hugging Face Spaces (Optional)
|
| 69 |
+
This Space is a **demo** of OpenClaw's capabilities. To deploy your own version:
|
| 70 |
+
|
| 71 |
+
1. **Fork this Space**.
|
| 72 |
+
2. **Customize the `app.py`** (Gradio interface) to fit your use case.
|
| 73 |
+
3. **Set environment variables** (if needed) in the Space settings.
|
| 74 |
+
|
| 75 |
+
## 🔧 Advanced Configuration
|
| 76 |
+
### Multi-Agent Routing
|
| 77 |
+
Route inbound messages to **isolated agents** for workspaces or specific tasks:
|
| 78 |
+
```json
|
| 79 |
+
{
|
| 80 |
+
"agents": {
|
| 81 |
+
"defaults": {
|
| 82 |
+
"workspace": "~/.openclaw/workspace",
|
| 83 |
+
"sandbox": {
|
| 84 |
+
"mode": "non-main"
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
### Skills
|
| 92 |
+
Extend OpenClaw with **skills** (e.g., GitHub issues, email management, weather forecasts):
|
| 93 |
+
```bash
|
| 94 |
+
openclaw skills add gh-issues
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
### Voice and Canvas
|
| 98 |
+
- **Voice Wake**: Wake words on macOS/iOS.
|
| 99 |
+
- **Talk Mode**: Continuous voice on Android.
|
| 100 |
+
- **Live Canvas**: Agent-driven visual workspace with [A2UI](https://docs.openclaw.ai/platforms/mac/canvas#canvas-a2ui).
|
| 101 |
+
|
| 102 |
+
## 📚 Documentation
|
| 103 |
+
- [OpenClaw Docs](https://docs.openclaw.ai)
|
| 104 |
+
- [Getting Started](https://docs.openclaw.ai/start/getting-started)
|
| 105 |
+
- [Telegram Bot Setup](https://docs.openclaw.ai/channels/telegram)
|
| 106 |
+
- [Multi-Channel Guide](https://docs.openclaw.ai/channels)
|
| 107 |
+
- [Skills Registry](https://clawhub.ai)
|
| 108 |
+
|
| 109 |
+
## 🤝 Community
|
| 110 |
+
- [Discord](https://discord.gg/clawd)
|
| 111 |
+
- [GitHub](https://github.com/openclaw/openclaw)
|
| 112 |
+
- [X (Twitter)](https://x.com/openclaw)
|
| 113 |
+
|
| 114 |
+
## 📜 License
|
| 115 |
+
OpenClaw is licensed under the **Apache 2.0 License**. See [LICENSE](https://github.com/openclaw/openclaw/blob/main/LICENSE) for details.
|
| 116 |
+
|
| 117 |
+
---
|
| 118 |
+
🦞 **Built for Molty, a space lobster AI assistant. Enjoy the clawsome experience!**
|