ahel is live on Product Hunt today. Upvote

UsageMax

MCP serverDocs & knowledge

Read-only MCP for AI usage profiles, leaderboards, stats, and docs; no writes or private data.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use UsageMax

From the project's README

As published by SYMBaiEX/usagemax in README.md.

UsageMax reconciles the AI usage histories already on your computers into one clear view of tokens, model mix, tracked cost, sessions, and activity. The open-source CLI performs bounded local scans and uploads aggregate snapshots to the versioned UsageMax API.

The short version: one-shot collector, private by default, public only by choice. Prompts and completions never leave the computer.

What you get

SurfacePurpose
Private workspaceCompare computers, providers, models, projects, and cost centers in one tenant-scoped view.
Public profileOpt-in profile, leaderboard, activity, model mix, cost estimate, and streaks.
Collector APIInstallation-bound, write-only snapshots and content-free telemetry.
usagemax CLIA bunx-friendly scanner with archive recovery, safe diagnostics, and optional OS scheduling.
Agent interfacesBounded OpenAPI, MCP, Markdown, WebMCP, A2A, and installable skill surfaces.

The physical HUD/screen project is intentionally separate from this repository. It can consume UsageMax telemetry, but it is not required to use the platform.

Connect a computer

1. Create a link code

Sign in at usagemax.com/account, choose Link a computer, give it a name, and copy the one-use command. The code is valid for ten minutes and can be used once.

2. Link and sync

Run the command on the computer or WSL distribution that owns the history:

bunx usagemax@latest link UMX-XXXX-XXXX-XXXX-XXXX

# Optional explicit name; the account keeps this name for the installation.
bunx usagemax@latest link UMX-XXXX-XXXX-XXXX-XXXX --name "Work laptop"

The first link performs a full one-shot sync. Every installation receives a stable random ID, so relinking or renaming it rotates its key without creating a duplicate device.

3. Reconcile when you choose

bunx usagemax sync --dry-run --explain  # inspect the bounded plan
bunx usagemax sync                      # upload changed usage
bunx usagemax sync --full               # reconcile all retained history
bunx usagemax status --remote            # check the saved credential safely

Coverage and correctness

UsageMax pins ccusage v20.0.20 and uses its 16 adapters: Amp, Claude Code, Codebuff, Codex, GitHub Copilot CLI, Factory Droid, Gemini CLI, Goose, Grok Build, Hermes, Kilo Code, Kimi CLI, OpenClaw, OpenCode, Pi, and Qwen Code. Named Pi-format stores are discovered as well.

The collector recognizes supported provider overrides, bounded home locations, Claude Desktop sessions, .cc-mirror, renamed Claude/Codex backup folders, and supported Windows homes from WSL. Normal syncs inspect known locations and immediate home entries; they do not crawl the whole disk.

bunx usagemax doctor                 # metadata-only coverage check
bunx usagemax doctor --deep --json   # retained-history audit
bunx usagemax sync --archives        # one-time compressed-history recovery
bunx usagemax report                 # local ccusage report

Full scans can catalog retained history from 2024 onward. Incomplete source coverage never authorizes destructive corrections: decreases and missing rows remain protected until the parser can prove the inventory is complete. Unknown models stay unattributed; unknown pricing stays unknown.

Cursor, Windsurf, Aider, Continue, Cline, Roo Code, hosted agents, direct provider API traffic, and enterprise billing systems do not all expose a stable local ledger. Feed those through the native or OTLP/HTTP JSON contract, or use a provider billing export when local evidence is unavailable.

Privacy and resource use

Stays on the computerMay be uploaded
Prompts and completionsAggregate token counters
Source code and file contentsProvider, model, and source names
Project paths and tool payloadsDates, costs, and coverage state
Provider credentials and secretsOpaque SHA-256 session identities

The CLI is short-lived. It skips unchanged inventories, parses only the necessary date range, uses a local lock to prevent overlap, and never downloads a package per run. Optional scheduling invokes the same one-shot process and backs off after failures.

bun install -g usagemax
usagemax service install          # approximately every 15 minutes
usagemax service install --every 30
usagemax service status
usagemax service uninstall

Scheduling is opt-in. macOS uses a user LaunchAgent, Linux/WSL uses a user systemd timer, and Windows uses Task Scheduler. Sleeping or battery-powered computers are not needlessly woken.

Credentials and safe diagnostics

UsageMax has separate credentials for website sign-in, one-use linking, and collector writes. A collector key is exactly umx_ followed by 64 lowercase hexadecimal characters. It is generated server-side, displayed once, stored locally with user-only permissions, and stored by UsageMax only as a SHA-256 hash.

For an Advanced · custom telemetry collector key, pipe the secret through stdin. Never put it in a command-line argument, URL, request body, repository, or log:

set +x
printf '%s' "$USAGEMAX_COLLECTOR_TOKEN" \
  | bunx usagemax@latest token status \
      --device-id "$USAGEMAX_INSTALLATION_ID" \
      --json \
  | jq -r '[.httpStatus, (if .ingestAuthorized then 1 else 0 end)] | @tsv'

token status is included in CLI 0.3.6. Check the npm latest tag before using it in a fresh environment; if it still points to an older release, run the same command with node packages/cli/src/cli.js from this repository until the new package is published.

The numeric projection is deliberately small:

ResultMeaning
200 1Recognized, active, and authorized to ingest.
200 0Recognized but blocked; inspect the redacted JSON status.
409 0The installation UUID does not match the key binding.
401 0The format/key was not accepted; the server does not reveal which reason.

The read-only diagnostic reports credential type, scopes, activation state, profile/name, binding state, and last accepted/rejected write. It never returns the token, its hash, or the authorized UUID. Advanced keys are active immediately; they bind on the first valid write. Linked CLI keys are bound during the link exchange.

This sends exactly one content-free agent_state event. It has zero token and zero cost fields, is observability-only, and prints only the HTTP status. Use a disposable collector if you want to test the write path; the first valid write may bind an unbound advanced key.

set +x
device_id="$USAGEMAX_INSTALLATION_ID"
batch_id="${USAGEMAX_DIAGNOSTIC_BATCH_ID:-hud-diagnostic-$(date -u +%Y%m%dT%H%M%SZ)-$$}"
occurred_at="${USAGEMAX_DIAGNOSTIC_OCCURRED_AT:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}"

curl -sS -o /dev/null -w '%{http_code}\n' \
  --config <(
    printf '%s\n' \
      'url = "https://usagemax.com/api/v1/telemetry/llm"' \
      'request = "POST"' \
      "header = \"Authorization: Bearer $USAGEMAX_COLLECTOR_TOKEN\"" \
      "header = \"X-UsageMax-Device-ID: $device_id\"" \
      "header = \"Idempotency-Key: $batch_id\"" \
      'header = "Content-Type: application/json"'
  ) \
  --data-binary @- <<JSON
{"events":[{"eventKey":"$batch_id","eventType":"agent_state","accountingMode":"observability","source":"local-hud-relay","provider":"usagemax","model":"relay-activity","inputTokens":0,"outputTokens":0,"cacheReadTokens":0,"cacheWriteTokens":0,"reasoningTokens":0,"totalTokens":0,"costMicros":0,"status":"ok","state":"diagnostic","occurredAt":"$occurred_at","schemaVersion":1,"completeness":"unknown"}]}
JSON

Expected result: 202 for a new batch and 200 for an exact idempotent replay. Only model_request events update accounting; this event cannot change token totals or spend.

Agent and developer surfaces

SurfaceURL
OpenAPIopenapi.json
Agent capability view/?mode=agent
Public MCPserver-card.json
Documentation MCP/docs-mcp
A2A cardagent-card.json
Skills indexagent-skills/index.json
MCP Registry metadataserver.json
Skill source and install docsskills/ · skills.sh
Auth guide/auth.md

Public reads are bounded and unauthenticated. The public MCP servers are stateless, read-only, and do not expose private workspace data or collector credentials. Collector ingestion is a separate authenticated API boundary.

Repository map

src/             Next.js web app, public routes, docs, and UI
convex/          Convex schema, authorization, ingestion, and projections
packages/cli/    Distributable `usagemax` package
docs/            Architecture, contracts, coverage, operations, and releases
skills/          Direct-installable agent skills and source notes
server.json      MCP Registry submission metadata for the public remote server

MCP Registry and skills.sh status

The public MCP server is published in the official Registry as io.github.SYMBaiEX/usagemax@1.0.0. The server.json file is the versioned source metadata for that listing; it contains no package or credential claim. The three skills/ cards have valid name and description frontmatter and can be installed from the public source with:

npx skills add SYMBaiEX/usagemax --skill usage-observability
npx skills add SYMBaiEX/usagemax --skill enterprise-reporting
npx skills add SYMBaiEX/usagemax --skill collector-diagnostics

No skills.sh install count, listing, or security audit is claimed until the external directory has indexed the source. The digest-pinned Agent Skills index is the deployed inventory; the raw GitHub files are the install sources.

Maintainer-only external submission recipe

These commands are not part of normal development. A maintainer can validate a future metadata version and verify the active listing with:

mcp-publisher validate server.json
mcp-publisher login github
mcp-publisher publish server.json
curl -fsS --get \
  --data-urlencode 'search=io.github.SYMBaiEX/usagemax' \
  https://registry.modelcontextprotocol.io/v0.1/servers

For skills.sh, install each skill from the default branch to seed its anonymous directory telemetry, then verify the indexed IDs and URLs via the skills.sh API:

npx --yes skills add SYMBaiEX/usagemax --skill usage-observability
npx --yes skills add SYMBaiEX/usagemax --skill enterprise-reporting
npx --yes skills add SYMBaiEX/usagemax --skill collector-diagnostics
curl -fsS --get \
  --data-urlencode 'q=UsageMax' \
  --data-urlencode 'owner=SYMBaiEX' \
  https://www.skills.sh/api/v1/skills/search

Those steps may create third-party listing or usage state, so they remain explicit maintainer actions.

Development

Requirements: Bun 1.4.2 and Node.js 20 or newer. The web app also needs a configured Convex development deployment.

bun install
bun run check       # lint, typecheck, tests, and production build
bun run cli:pack    # verify the publishable CLI archive

For local web development, configure an ignored .env.local, then run bunx convex dev and bun run dev. See CONTRIBUTING.md for contribution boundaries and docs/RELEASE.md for release gates.

Open source

UsageMax is released under the MIT License. Third-party dependency notices are in NOTICE.md. Please report suspected vulnerabilities privately through SECURITY.md, not a public issue.

Advanced
Delivery
usagemax MCP server → your ahel gateway (mcp.ahel.ai) → every connected AI client.
Catalog kind
mcp-server
Gateway key
io-github-symbaiex-usagemax
Source
github.com/SYMBaiEX/usagemax
Hosted endpoint
https://usagemax.com/mcp