Cc Monitor Worker
Description
Monitor your Claude Code usage with Cloudflare Workers and [Workers Analytics Engine](https://developers.cloudflare.com/analytics/analytics-engine/).
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Claude Code Monitoring w/ Cloudflare Workers
Monitor your Claude Code usage with Cloudflare Workers and [Workers Analytics Engine](https://developers.cloudflare.com/analytics/analytics-engine/).
- Public, Secure endpoint
- Powerful analytics via SQL
- Truly Serverless, zero-maintenance
One-click deployment with
[](https://deploy.workers.cloudflare.com/?url=https://github.com/cometkim/cc-monitor-worker)
Two-modes of Monitoring
There are two option to monitoring your Claude Code usage:
- Using OpenTelemetry
- Using LLM Gateway
Each has its own needs and pros and cons. You should choose an option based on your needs.
Monitoring via OpenTelemetry
This is officially supported, and recommended way to monitor Claude Code usage.
Claude exports precise activities and use cases into a defined metrics schema. It includes all the context for analyzing costs, productivity, and usage patterns.
However, Claude Code's OTEL integration is not durable. A lot of data will not being collected. It's better suited for tracking trends rather than accurate usage data.
See [README_OTEL](README_OTEL.md) for more details.
Monitoring via API Proxy
Claude Code also allow to use a custom LLM gateway.
Implementing an LLM gateway allows you to intercept all requests to Claude Code and calculate exact API costs. It can be used to monitor other coding agents such as OpenCode as well.
However, API requests don't include the context of the Claude Code application, making it difficult to analyze accurate usage patterns.
See [README_PROXY](README_PROXY.md) for more details.
Data Retention
Cloudflare Analytics Engine only stores data for the past three months.
To analyze older data, you must archive it separately.
Security
The endpoint uses Bearer token authentication:
- Development: Set
AUTH_SECRETin.dev.vars
...
Related Skills
Docker
---
DevOps Kubernetes
---
DevOps AWS Skills
AWS development with CDK best practices, cost optimization MCP servers, and serverless/event-driven architectu
DevOps Composio Split
Manage Split feature flags and experiments
DevOps **claude-code-router**
(25.3k ⭐) - Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interac
DevOps CLAUDE.md CI/CD Wiki
Community patterns for CLAUDE.md configuration in CI/CD pipelines.
DevOps