npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

codeusage-cli

v0.1.37

Published

CLI for Codeusage - AI coding tool intelligence platform

Readme

Codeusage CLI

Track your team's AI coding tool usage with zero friction. Get visibility into how AI coding tools like Claude Code and Codex are used across your organization.

Requirements

  • Node.js 18+
  • Claude Code or Codex CLI installed

Installation

bun add -g codeusage-cli

Or with npm:

npm install -g codeusage-cli

Quick Start

  1. Sign up at codeusage.dev to get your workspace API key

  2. Initialize the CLI:

codeusage init
  1. Done! Usage is now tracked automatically when you use an AI coding tool.

Commands

codeusage init

Interactive setup wizard. Configures your API key, developer alias, and installs hooks.

codeusage init

codeusage status

Check your current configuration and connection status.

codeusage status

codeusage project

Manage project mappings for the current directory.

# Set a custom project name for current directory
codeusage project set my-project

# List all project mappings
codeusage project list

# Ignore current directory (no tracking)
codeusage project ignore

# Re-enable tracking for current directory
codeusage project unignore

codeusage provider

Manage AI coding tool providers.

# List all available providers
codeusage provider list

# Show current provider
codeusage provider current

# Add hooks for an additional provider (keeps existing)
codeusage provider add <provider>

# Switch to a different provider
codeusage provider switch <provider>

codeusage guard

Manage Prompt Guard — scans prompts for credentials before sending. Also available as codeusage patterns.

# Enable Prompt Guard
codeusage guard enable

# Disable Prompt Guard
codeusage guard disable

# Show status and cache info
codeusage guard status

# List all active patterns
codeusage guard list

# Sync patterns from workspace settings
codeusage guard sync

# Test a string against patterns
codeusage guard test "my-secret-key-123"

codeusage sync

Manually sync the last task (useful for testing).

codeusage sync

codeusage config

View or update configuration values.

# View all config
codeusage config

# View specific value
codeusage config get developer_alias

# Set a value
codeusage config set developer_alias "john"

codeusage logs

View CLI error and diagnostic logs.

# Show recent errors (default: last 50 lines)
codeusage logs

# Show more lines
codeusage logs -n 100

# Filter by level
codeusage logs --level warn

# Show all log levels
codeusage logs --all

# Print log file path
codeusage logs --path

# Clear all logs
codeusage logs --clear

codeusage logout

Remove all local configuration and uninstall hooks.

codeusage logout

Uninstall

bun remove -g codeusage-cli

Or with npm:

npm uninstall -g codeusage-cli

Documentation

For full documentation, visit codeusage.dev/docs

License

MIT