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 auth login

# Check your streak
clutch streak

# View your stats
clutch stats

# Get your AI weekly insight
clutch insight

Commands

Command Description
clutch auth login Login via GitHub OAuth (fully automatic)
clutch auth logout Logout and clear saved credentials
clutch auth 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 auth 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 auth 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 auth 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.2.0.tar.gz (9.6 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.2.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clutch_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 9.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 21f177f555e0a7410b2e8cc357579aa4635187485e98d1a2d4b9bbb7ea7951b9
MD5 2331222e4fb0da246325a85805c5c0dc
BLAKE2b-256 e400ff6612c159359b38112f1e7cf25448a4b19892b0f6cf5e6fc2b3b81cfdc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clutch_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e69e7851db644c0ecfabb12285080a2f7d24d7d7d253d27d7395410455166dec
MD5 7fecc426b44071df9d3cb7178ff7372a
BLAKE2b-256 fbd3f8ae2f7c37f835c2ba54fdc5df41f46d5f20d57d5b18e0753786fe55f8bd

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