ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

wakapi

Wakapi coding stats (summaries, projects, today status, totals) via a small Python CLI. Requires WAKAPI_URL. WAKAPI_API_KEY is HTTP Basic (Authorization Basic base64(key)) for all calls except health, which uses native GET /api/health (no key). Use for Wakapi / self-hosted coding time and project/language breakdowns.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/chensoul/wakapi-skill
Or

Wakapi API query

When to use

The user wants read-only stats from a Wakapi instance: time ranges, projects/languages, today’s status line, all-time total, or project list.

Documentation map

DocumentUse it for
This fileEnv vars, subcommand overview, copy-paste CLI examples
references/wakapi-api.mdFull URLs (/api/health vs compat prefix), stats path vs summaries query range, preset table, optional summaries filters, curl, timeouts

Requirements

CategoryDetail
RuntimePython 3, stdlib only. Entry: scripts/wakapi_query.py. Run from the skill root (directory that contains SKILL.md).
EnvironmentWAKAPI_URL — instance origin, no trailing / (required). WAKAPI_API_KEY — required for every subcommand except health.
NetworkOutbound HTTPS (or http:// if your instance uses it) to WAKAPI_URL.
AuthenticationHTTP Basic: Authorization: Basic + base64(API key only).
Registrymetadata.openclaw: requires.env = ["WAKAPI_URL", "WAKAPI_API_KEY"], primaryEnv = WAKAPI_API_KEY.

No other environment variables are read by the CLI.

Subcommands at a glance

SubcommandAPI key?What it calls
healthNoNative GET {WAKAPI_URL}/api/health (JSON if Content-Type: application/json)
projectsYesCompat …/compat/wakatime/v1/users/current/projects
status-barYes{WAKAPI_URL}/api/v1/users/current/statusbar/today
all-time-sinceYesCompat …/all_time_since_today
stats <range>YesCompat …/stats/{range}{range} is a URL path segment
summariesYesCompat …/summaries--range or --start + --end; optional --project, --branches, --timezone, --timeout (API), --writes-only

stats vs summaries: different meanings of “range”; see references/wakapi-api.md.

Prerequisites

  1. Set WAKAPI_URL. Set WAKAPI_API_KEY for all commands except health.
  2. Do not paste secrets into chat. If the key is missing, ask the user to configure the environment.

Usage

Run from the skill root. --help / summaries --help list all flags.

# WAKAPI_URL required always; WAKAPI_API_KEY required for all subcommands except health.
export WAKAPI_URL="https://your-wakapi.example"
export WAKAPI_API_KEY="…"

# --- Help ---
python3 scripts/wakapi_query.py --help
python3 scripts/wakapi_query.py summaries --help

Metadata

Author@chensoul
Stars3840
Views0
Updated2026-04-06
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-chensoul-wakapi-skill": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.