whatisgithub

What is claudescraper?

yoshiofthewire/claudescraper — explained in plain English

Analysis updated 2026-05-18

0JavaScriptAudience · developer

In one sentence

A Docker tool that reads Claude Code's usage panel in the background and shows it as a live web dashboard and JSON API.

Mindmap

mindmap
  root((repo))
    What it does
      Scrapes usage panel
      Web dashboard
      JSON API
      Background caching
    Tech stack
      JavaScript
      Node.js
      Docker
    Use cases
      Usage monitoring
      Scripted polling
      Reset alerts
    Audience
      Developers
      Claude Code power users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Monitor your Claude Code plan usage and session cost from a browser instead of the terminal panel.

USE CASE 2

Poll a JSON endpoint to feed Claude usage data into your own scripts or monitoring tools.

USE CASE 3

Get notified via reset detection when a weekly usage window refreshes.

USE CASE 4

Run a one shot command line check of current usage without starting the server.

What is it built with?

JavaScriptNode.jsDocker

How does it compare?

yoshiofthewire/claudescraper00kaku/gallery-slider-block0xkinno/vellum
Stars00
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-05-19
MaintenanceDormant
Setup difficultyeasyhard
Complexity2/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

So what is it?

This project reads the usage numbers shown inside Claude Code's interactive terminal panel and turns them into a web dashboard and a JSON endpoint. The tool exists because Claude Code does not offer a scriptable way to check account wide plan usage, only single query cost or plain login status, so this instead drives the actual terminal interface in the background and reads what appears on screen, on a repeating timer, then caches the result. It runs as a single always on Docker container. On first run it walks a user through logging into Claude Code directly from the web page, no terminal commands needed, and after that credentials persist in a named volume so restarts go straight back to the dashboard. A user can also skip the web login entirely by supplying an existing token or an Anthropic API key as an environment variable. The dashboard shows progress bars for things like the current session and weekly usage windows, along with reset times and cost estimates, refreshed automatically every five minutes by default, with a button to force an immediate refresh. If a background refresh fails, the dashboard keeps showing the last successful data rather than an error, and simply marks it as stale. A settings page lets a user record which subscription plan they are on, since Claude Code itself does not expose that, and includes an optional toggle to automatically send a test prompt whenever a usage window resets. The underlying scraper can also be run as a one time command line tool outside the web server, returning either a human readable table or structured JSON, which is useful for scripting or checking usage from other tools. The project explicitly has no built in access control, so it is meant to be run behind a trusted network such as localhost, a private network, or your own reverse proxy rather than exposed directly to the internet.

Copy-paste prompts

Prompt 1
Explain how to set up ClaudeScraper with Docker Compose to monitor my Claude Code usage.
Prompt 2
Show me how to configure CLAUDE_CODE_OAUTH_TOKEN so ClaudeScraper skips the web login flow.
Prompt 3
Write a script that polls ClaudeScraper's /api/usage endpoint and alerts me when usage crosses 80 percent.
Prompt 4
Explain the difference between the /api/usage and /api/refresh endpoints in this project.
Prompt 5
Help me secure ClaudeScraper's dashboard behind a reverse proxy since it has no built in access control.

Frequently asked questions

What is claudescraper?

A Docker tool that reads Claude Code's usage panel in the background and shows it as a live web dashboard and JSON API.

What language is claudescraper written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, Docker.

Who is claudescraper for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.