OpenClaw Token Usage Stuck at Zero After Upgrade
You upgraded OpenClaw and now your token usage dashboard shows nothing. Before you worry about missing data, check these common causes. In most cases, token tracking can be restored with a configuration adjustment.
After an OpenClaw upgrade, token usage stuck at zero usually means the configuration file needs updating. Check that token tracking is enabled in openclaw.json, verify your provider settings match the new version format, and confirm you're using API key auth (not subscription-based). Restart the backend after any configuration changes.
Common symptoms
When token tracking isn't working after an upgrade, you'll notice:
- Dashboard shows zero tokens used across all models
- Recent activity appears empty or incomplete
- Bot responds normally but usage data doesn't accumulate
- Cost calculations show $0.00 despite active conversations
The bot itself may work perfectly fine — this is specifically a tracking/configuration issue, not a core functionality problem.
Check 1: Verify token tracking is enabled
OpenClaw configuration includes a setting for token usage tracking. After an upgrade, this may have changed name, moved location, or been reset to default.
Locating the tracking setting
- Open your
openclaw.jsonconfiguration file - Look for sections related to stats, usage, or tracking
- Verify that token counting or usage tracking is set to
trueorenabled - If the setting is missing entirely, add it according to the latest OpenClaw documentation
Configuration structure can change between OpenClaw versions. Always reference the configuration schema for your specific version after upgrading.
Check 2: Review provider configuration
LLM provider settings may have changed in the upgrade. If the provider configuration is incorrect, OpenClaw may fail to log token usage even if requests succeed.
Provider settings to verify
- Base URL: Ensure the API endpoint matches your provider's current requirements
- Model names: Model identifiers may have changed (e.g.,
claude-3-opusvsclaude-3-5-sonnet) - Authentication headers: Verify the auth header format matches provider expectations
- Response parsing: Newer OpenClaw versions may require updated token extraction logic
Check the OpenClaw upgrade notes for any provider-specific configuration changes. Some upgrades introduce new required fields or change how provider responses are parsed.
Check 3: Verify API key authentication
Token tracking only works with API key authentication. If you switched to subscription-based auth (Claude Pro, ChatGPT Plus), token usage won't be tracked — and this is expected behavior.
Understanding auth types
| Auth type | Token tracking? | Reason |
|---|---|---|
| API key | Yes | Provider returns token counts in API response |
| Claude Pro | No | Flat-rate subscription, no token metadata exposed |
| ChatGPT Plus | No | Flat-rate subscription, no token metadata exposed |
If you're using subscription-based auth intentionally, the lack of token tracking is normal. The trade-off is predictable flat-rate billing versus metered usage.
Check 4: Restart the OpenClaw backend
Configuration changes don't take effect until the backend restarts. After updating openclaw.json, you must restart the service.
Restart methods by deployment
- Docker:
docker-compose restartordocker restart openclaw-backend - systemd:
sudo systemctl restart openclaw - PM2:
pm2 restart openclaw - Manual: Stop the process with Ctrl+C, then restart with
python main.py
After restarting, test with a few messages and verify that token usage begins appearing in the dashboard.
Check 5: Validate API key permissions
If your API key lacks required permissions, the provider may succeed in processing requests but not return usage metadata.
Testing your API key
- Go to your provider's developer console (Anthropic Console, OpenAI Platform, etc.)
- Check key permissions: should include read access and usage reporting
- Verify the key is active and not rate-limited
- Test the key with a simple API call using curl or the provider's test tool
- Confirm the response includes token counts in the metadata
If the provider's direct API returns usage metadata but OpenClaw doesn't track it, the issue is in OpenClaw's configuration or response parsing.
Check 6: Review upgrade documentation
Major OpenClaw releases include upgrade notes that list breaking changes and required configuration updates.
What to look for in upgrade notes
- Configuration changes: New required fields, renamed settings, deprecated options
- Provider updates: Changed API endpoints, new response formats
- Token tracking changes: Modified counting logic, new stats storage format
- Migration steps: Required database schema changes or data migration scripts
Skipping configuration migration is the most common cause of token tracking failure after upgrades. Always review the release notes before upgrading.
Managed hosting: automatic handling
With managed OpenClaw hosting, configuration updates and migrations are handled automatically. Token tracking works out of the box with no manual configuration needed.
- Configuration updates apply automatically during upgrades
- Token usage analytics are built-in and always enabled
- Per-model breakdown shows tokens, requests, and estimated cost
- No configuration file management required
If you're tired of tracking configuration changes with each upgrade, managed hosting removes this maintenance burden entirely.
Summary
- Symptoms: token usage stuck at zero, empty dashboard despite active bot
- Check 1: verify token tracking is enabled in openclaw.json
- Check 2: review provider configuration for version compatibility
- Check 3: confirm API key auth (subscription auth doesn't track tokens)
- Check 4: restart backend after configuration changes
- Check 5: validate API key permissions and test with provider directly
- Check 6: review upgrade documentation for required configuration changes
- Alternative: managed hosting handles configuration automatically
Related articles
Compare TCO, setup overhead, security ops, and monthly price ranges.
The most cost-effective way to run OpenClawHow subscription-based auth saves 5–20x compared to raw API keys.
Self-hosting vs managed setupSide-by-side comparison of security, setup time, cost visibility, and maintenance.
Start in dashboardGo directly to app login and launch your assistant.