For developers
Build on your meter
Control your Busy Meter from your own code or an AI assistant. Everything goes through the Busy Meter app on your PC, so your camera, Teams and calendar keep working and you approve every program.
Local plugin API
- Runs on your PC. The Busy Meter app for Windows hosts it on
127.0.0.1only: HTTP and a WebSocket under/v1/. Nothing on other devices or the internet can reach it, and web pages in a browser are refused. - Off until you turn it on: Settings › Sources › External connections.
- You approve each plugin. A program registers once and you click Allow in the Busy Meter tray. It can ask, never approve.
- Levels are star counts
0–6(0= the lip only) and"flash"(red/blue). Each one lasts up to 600 seconds; refresh it to keep it. The app runs it through your level map, and the busiest source still wins. - Port: in
%LOCALAPPDATA%\BusyMeter\plugin-api.jsonwhile the API listens (default 47820).
PUT /v1/signals HTTP/1.1
Host: 127.0.0.1:47820
Authorization: Bearer <token>
Content-Type: application/json
{"level": 4, "ttlSeconds": 600}
Show 4 stars for up to 10 minutes. The token comes from POST /v1/register once you click Allow. No Origin header, no query strings, JSON bodies only.
- OpenAPI spec every endpoint, error code and limit
- WebSocket messages signals, status and button taps on
/v1/ws - External connections guide turning it on, the Allow prompt, revoking
AI assistants (MCP)
Claude Desktop and Claude Code can read and set your level through the MCP server that comes with the app. No Python needed: open Settings › Sources › External connections › AI assistants and click Set up.
- Tools:
get_status,register_plugin,set_signals,set_level,clear. - Other MCP clients: add a stdio server named
busymeterwhose command is%LOCALAPPDATA%\BusyMeter\current\bm-mcp.exe, written out in full.
Go through the app. While the Busy Meter app runs, don't send commands to the meter's USB port or Wi-Fi address. The app keeps such a level as your manual level, which overrides your camera, Teams and calendar and skips the Allow step. A busy USB port is expected: the app is using it.
- AI assistants guide Claude Desktop, Claude Code, other assistants
- AI coding agents show your Claude Code or Codex sessions as stars, built in
Python
The free busymeter package: a client (standard library only, Python 3.10+), the busymeter command and busymeter-mcp, a Python MCP server that can also start and configure recipes.
pip install --user busymeter # client + command
pip install --user "busymeter[mcp]" # also busymeter-mcp
from busymeter import BusyMeter
meter = BusyMeter("com.example.mytool")
meter.connect(name="My tool") # first time: waits for Allow
meter.set_level(4, ttl_seconds=600) # 0-6 stars or "flash"
meter.clear()
Or from a terminal: busymeter level 5 --for 10m, busymeter clear, busymeter status.
Recipes are small ready-to-run plugins built on the client:
- stream_status.pyOBS live or recording on the stars
- focus_timer.pyFocus blocks or Pomodoro cycles
- game_state.pyFor games with an official game-state push feature
- webhook_bridge.pyA loopback HTTP endpoint that maps POSTs to levels
- mic_loudness.pyMore stars the louder the room; never records audio
- vibe_meter.pyActive Claude Code sessions as stars
- level_from_cli.pySet a level for a while from the command line
- Python client and busymeter-mcp install, errors, token storage, commands
- Recipes overview what each reads and never reads, settings, stopping
- Source on GitHub also C# and JavaScript clients
For AI tools
A plain-text summary of the API, the MCP tools and the rules for agents, written for AI assistants to read. Point yours at it.
License
The plugin API spec, the Python client, busymeter-mcp and the recipes are MIT licensed. The Busy Meter app itself is not open source.