A Claude Code skill for managing Telegram message routing in OpenClaw. Switch between Claude CLI backends and API providers with simple commands.
# Copy the skill to your Claude Code skills directory
cp SKILL.md ~/.claude/skills/telegram-routing/SKILL.mdThen use /telegram-routing in any Claude Code session.
/telegram-routing status # Show current routing config
/telegram-routing model opus # Switch primary model
/telegram-routing logs # Show recent message processing logs
/telegram-routing fallback # Switch to lightweight API mode
/telegram-routing restore # Restore default CLI-based routing
Messages flow through the OpenClaw Gateway → configured model provider → appropriate backend:
- CLI providers (
claude-cli/opus,claude-cli/sonnet): Use local Claude Code with full tool access - API providers (
anthropic/claude-haiku-4-5,openai/gpt-4.1-mini): Direct API calls, faster but no tools
Config lives in ~/.openclaw/openclaw.json under agents.defaults.
| Shorthand | Resolves to |
|---|---|
opus |
claude-cli/opus |
sonnet |
claude-cli/sonnet |
haiku |
anthropic/claude-haiku-4-5 |
- OpenClaw with Telegram channel enabled
- Claude Code CLI
MIT