OpenClaw Custom Agent
Deploy your own AI agent on Telegram with a fully customizable identity, personality, and behavior rules.
What You Get
- ✓An OpenClaw AI agent running on Willform cloud with your own personality
- ✓Telegram DM integration for conversing with the bot
- ✓Web-based Control UI for managing the agent
- ✓Web search and fetch tools for real-time information
- ✓Persistent memory that saves conversation history and user preferences
Prerequisites
| Variable | How to Get | Purpose |
|---|---|---|
| YOUR_TELEGRAM_BOT_TOKEN | Send `/newbot` to @BotFather. Docs | Connects the bot to Telegram |
| YOUR_TELEGRAM_USER_ID | Send any message to @userinfobot and copy the numeric ID | Adds you to the DM allowlist |
| YOUR_GATEWAY_TOKEN | Choose any password you like — this is your own secret | Authenticates access to the web Control UI |
| YOUR_OPENROUTER_API_KEY | Create at OpenRouter. Add credits at Credits. | LLM inference — 200+ models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using. |
| YOUR_OPENAI_API_KEY | Create at OpenAI Platform. Add credits at Billing. | LLM inference — OpenAI models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using. |
| YOUR_ANTHROPIC_API_KEY | Create at Anthropic Console. Add credits at Billing. | LLM inference — Claude models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using. |
| YOUR_GEMINI_API_KEY | Create at Google AI Studio. | LLM inference — Gemini models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using. |
| YOUR_IDENTITY_MD | Write your own (see guide below) | Defines the agent's name, emoji, and role |
| YOUR_SOUL_MD | Write your own (see guide below) | Defines the agent's personality, expertise, and tone |
| YOUR_AGENTS_MD | Write your own (see guide below) | Defines the agent's behavior rules and constraints |
Deploy to Namespace
Connects the bot to Telegram
Adds you to the DM allowlist
Authenticates access to the web Control UI
LLM inference — 200+ models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.
LLM inference — OpenAI models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.
LLM inference — Claude models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.
LLM inference — Gemini models. Only one key needed; if multiple are set, priority: Anthropic > OpenAI > OpenRouter > Gemini. Leave blank if not using.
Defines the agent's name, emoji, and role
Defines the agent's personality, expertise, and tone
Defines the agent's behavior rules and constraints