Config file
Configuring OpenClaw with your Telegram bot and API key.
Minimal configuration
The file lives at: ~/.openclaw/openclaw.json
{
"providers": [
{
"name": "anthropic",
"apiKey": "sk-ant-YOUR_KEY_HERE"
}
],
"channels": [
{
"type": "telegram",
"token": "7204891234:AAH3kf8...",
"owners": [123456789]
}
],
"agents": {
"main": {
"model": "anthropic/claude-sonnet-4-5"
}
}
}
What each field does
providers— API keys (Anthropic, OpenAI, Google…)channels— Telegram, Discord, and other connectionsowners— authorized Telegram IDsmodel— default model
Start OpenClaw
openclaw gateway start
To follow the logs:
openclaw gateway logs