Prerequisites
Before you begin, make sure you have:
- An AgentClaw account (sign up at agentclaw.app/signup)
- An API key from OpenAI, Anthropic, or OpenRouter
- A Telegram bot token (or Discord bot token, depending on your channel)
Step 1: Sign Up and Subscribe
First, create an AgentClaw account and subscribe to a plan. You can choose between:
- Monthly Plan: $9.99/month per instance
- Yearly Plan: $99.99/year per instance (save 17%)
Payment is handled securely through Stripe. You'll receive a confirmation email once your subscription is active.
Step 2: Create a New Instance
- Navigate to your dashboard at
/dashboard - Click the "Create New Instance" button
- Fill out the instance configuration form:
- Instance Name: A unique identifier for your agent
- Subdomain: Choose a subdomain (e.g.,
my-agent.agentclaw.app) - OpenClaw Version: Select the latest stable version
Step 3: Configure Environment Variables
Add your API keys and bot tokens as environment variables. All values are encrypted at rest using AES-256-GCM encryption.
Required environment variables:
- TELEGRAM_BOT_TOKEN: Your Telegram bot token from @BotFather
- OPENAI_API_KEY or ANTHROPIC_API_KEY: Your AI provider API key
Optional environment variables:
- DISCORD_BOT_TOKEN: For Discord integration
- OPENROUTER_API_KEY: For OpenRouter models
Step 4: Start Your Instance
- After configuring your environment variables, click "Save Configuration"
- Click the "Start Instance" button
- Your agent will be provisioned and deployed in under 60 seconds
- You'll receive email notifications at each step of the deployment
Step 5: Test Your Agent
Once your instance is running:
- Open Telegram and search for your bot by username
- Start a conversation with
/start - Try sending a message to test the AI response
- Monitor real-time logs in your dashboard to see the interaction
Troubleshooting
If your instance doesn't start or your bot doesn't respond:
- Check the logs for error messages
- Verify your API keys are correct and have sufficient credits
- Ensure your Telegram bot token is valid
- Contact support at support@agentclaw.app
Next Steps
- Learn about reading real-time logs
- Explore advanced Telegram bot features
- Add more AI models with OpenRouter