Skip to main content

GitHub tracks your work. Clutch tracks you.

Project description

⚡ clutch-cli

The CLI companion for Clutch — GitHub tracks your work. Clutch tracks you.

PyPI Python License


clutch-cli is the terminal companion for Clutch — an open-source AI-powered developer activity dashboard. Get your GitHub streaks, stats, coding patterns, and AI insights without leaving your terminal.

Installation

pip install clutch-cli

Quick Start

# Login via GitHub (opens browser automatically, no copy-paste needed)
clutch login

# Check your streak
clutch streak

# View your stats
clutch stats

# Get your AI weekly insight
clutch insight

Commands

Command Description
clutch login Login via GitHub OAuth (fully automatic)
clutch logout Logout and clear saved credentials
clutch whoami Show currently logged-in user
clutch streak Current and longest commit streak
clutch stats Activity stats — commits, PRs, issues, active days
clutch stats --days 7 Stats for a custom time range
clutch repos Your most recently active repositories
clutch insight AI-generated weekly insight (powered by Groq Llama)
clutch patterns Coding patterns — best day, consistency score, day distribution
clutch status Login status and API health check
clutch --version Show installed version

How Login Works

clutch login spins up a temporary local server on port 9876, opens GitHub OAuth in your browser, and automatically captures the token when GitHub redirects back. No copy-pasting required.

$ clutch login

⚡ Clutch Login
Opening GitHub in your browser...
Waiting for GitHub authorization...

✅ Logged in as @laypatel13
Welcome to Clutch, Lay Patel!

After the first login, your token is saved in ~/.clutch/config.json and all commands work silently.

Configuration

By default the CLI talks to the hosted Clutch API. To point it at a local backend:

export CLUTCH_API_URL=http://localhost:8000
clutch login

Links

License

MIT © Lay Patel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clutch_cli-0.3.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clutch_cli-0.3.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file clutch_cli-0.3.0.tar.gz.

File metadata

  • Download URL: clutch_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for clutch_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bde5a0bb64df1e927426dcef019cfd44fdd5e1200e0e1db43c54c214c527ea07
MD5 3025ac5f6ba77967e5e0d699c6495726
BLAKE2b-256 d554dec69cc06ae6eb167aec2cdb44ead4731f88c403b4b925bba1bb00a8c7e8

See more details on using hashes here.

File details

Details for the file clutch_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: clutch_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for clutch_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5a5ebe2a454662a63e4b8bac1be895fdeeb1b4ed30f2effc3d3be40a25e2408
MD5 0947812191aa0191cb030f912fd4dd6f
BLAKE2b-256 a550c41a3626cf2a57f62895c16c6b5fe26b62f287fa64975f9116cac6c4a121

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page