Overview
If your instance fails to start or gets stuck in "Starting" status, this guide will help you diagnose and fix the problem.
Quick Checklist
Before diving into detailed troubleshooting, verify:
- ✓ Your subscription is active (check billing status)
- ✓ Payment method is valid (no failed charges)
- ✓ Instance status shows "Starting" or "Error"
- ✓ You've waited at least 2 minutes (startup can take 60-120 seconds)
Common Causes
1. Invalid or Missing API Keys
Symptoms:
- Instance starts then immediately stops
- Logs show authentication errors
- Error messages mention "invalid API key" or "unauthorized"
Solutions:
- Go to your instance configuration
- Verify environment variables are set correctly:
OPENAI_API_KEYstarts withsk-ANTHROPIC_API_KEYstarts withsk-ant-TELEGRAM_BOT_TOKENformat is correct
- Check for extra spaces or hidden characters
- Verify keys haven't been revoked
- Test keys directly on provider's website
- Update keys and restart instance
2. Insufficient API Credits or Quota
Symptoms:
- Instance starts but AI doesn't respond
- Logs show "quota exceeded" or "insufficient funds"
Solutions:
- Check your AI provider dashboard:
- OpenAI: platform.openai.com/account/billing
- Anthropic: console.anthropic.com/settings/billing
- Add payment method or increase usage limit
- Wait for quota reset (if using free tier)
- Restart instance after resolving
3. Telegram/Discord Bot Token Issues
Symptoms:
- Instance starts but bot doesn't respond
- Logs show "bot token invalid"
Solutions:
For Telegram:
- Message @BotFather on Telegram
- Send
/mybots - Select your bot
- Verify bot is not deleted or revoked
- Get a new token if needed (
/token) - Update
TELEGRAM_BOT_TOKENin AgentClaw
For Discord:
- Go to Discord Developer Portal
- Select your application
- Go to "Bot" section
- Verify bot token is correct
- Regenerate token if compromised
- Update
DISCORD_BOT_TOKEN
4. Subscription or Payment Issues
Symptoms:
- Can't start instance at all
- Error message about subscription
Solutions:
- Check your subscription status in dashboard
- Verify payment method in Stripe portal
- Look for failed payment emails
- Update payment method if needed
- Contact support if subscription shows active but instance won't start
5. Configuration Errors
Symptoms:
- Instance starts then crashes immediately
- Logs show configuration errors
Solutions:
- Review all environment variables for typos
- Check for conflicting settings
- Remove any custom variables you added
- Try with minimal configuration (only required vars)
- Restart instance after changes
6. OpenClaw Version Issues
Symptoms:
- Instance won't start after version update
- Logs show compatibility errors
Solutions:
- Try reverting to previous OpenClaw version
- Check OpenClaw release notes for breaking changes
- Update environment variables for new version
- Contact support if issue persists
Reading Logs for Diagnosis
Logs are your best friend for troubleshooting. To access logs:
- Go to your instance details page
- Click the "Logs" tab
- Look for ERROR or WARNING messages
- Note the timestamp of failures
Common error patterns:
"invalid API key"→ Check AI provider keys"401 Unauthorized"→ API authentication failed"quota exceeded"→ Hit usage limits"bot token invalid"→ Check messaging platform tokens"connection refused"→ Network or configuration issue
Learn more about reading and interpreting logs.
Step-by-Step Troubleshooting
If the quick fixes above don't work, follow this systematic approach:
Step 1: Check Status and Logs
- Note the current instance status
- Read the latest logs
- Screenshot any error messages
Step 2: Verify Configuration
- List all environment variables
- Check each value is correct (no typos)
- Verify required variables are present
Step 3: Test Components Individually
- Test API keys on provider websites
- Test bot tokens with test messages
- Verify payment method is active
Step 4: Try Minimal Configuration
- Remove all optional environment variables
- Keep only required ones
- Restart and test
- Add variables back one at a time
Step 5: Contact Support
If still not working, email support@agentclaw.app with:
- Instance name and subdomain
- Screenshot of error from logs
- Description of what you tried
- Timestamp of the issue
Preventing Future Issues
- Set up billing alerts: Get notified before hitting limits
- Keep API keys secure: Never share or commit to code
- Monitor regularly: Check logs weekly for warnings
- Test after changes: Always test after updating config
- Document your setup: Keep notes on your configuration
When to Contact Support
Contact support immediately if:
- Instance won't start despite correct configuration
- Logs show internal server errors
- Problem started without any changes on your end
- You see unexpected charges or subscription issues
- Multiple instances are affected
Next Steps
- Learn about reading real-time logs
- Understand API key authentication errors
- Read about connection issues
- Review adding API keys securely