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

cerocode

v0.6.0

Published

AI-powered CLI with chat and agent capabilities

Readme

Cero

AI-powered terminal assistant that doesn't suck

npm version License: MIT

InstallationUsageCommandsHow it Works


What is this?

Cero is a CLI tool that brings AI chat capabilities directly to your terminal. No API keys to manage, no configuration files to mess with—just install, authenticate once, and start chatting.

Installation

npm install -g cerocode

Or if you're using bun:

bun add -g cerocode

Quick Start

# First time setup - authenticate via browser
cero login

# Start chatting (quick mode)
cero chat "explain what DNS is"

# Launch interactive terminal UI
cero interactive

# When you're done
cero logout

That's it. No environment variables, no config files, nothing.

Usage

Authentication

Cero uses device authorization (the same flow Netflix uses for TV login). You authenticate once in your browser, and the CLI handles the rest.

cero login

This will:

  1. Generate a unique code
  2. Open your browser to the authorization page
  3. Wait for you to approve the request
  4. Store your credentials securely in your system keychain

Your tokens are stored using your OS's native credential manager (Keychain on macOS, Credential Manager on Windows, libsecret on Linux).

Quick Chat

For quick one-off questions:

cero chat "your message here"

The response streams back in real-time, just like ChatGPT.

Interactive Mode

For a full chat experience with conversation history:

cero interactive

This launches a beautiful terminal UI with:

  • Chat area with real-time streaming responses
  • Sidebar showing your conversation history
  • Keyboard shortcuts for efficient navigation
  • User info display
  • 20+ Themes — Customize your terminal experience with themes like Matrix, Dracula, Nord, Tokyo Night, Catppuccin, and more

Available Themes

Choose from 20 carefully crafted themes to match your style:

  1. Matrix — Classic green-on-black hacker aesthetic
  2. Dracula — Popular dark theme with vibrant colors
  3. Nord — Arctic, north-bluish color palette
  4. Monokai Pro — Professional dark theme
  5. Catppuccin — Soothing pastel colors
  6. Solarized Dark — Precision colors for machines and people
  7. Gruvbox — Retro groove color scheme
  8. Tokyo Night — Modern Japanese-inspired theme
  9. One Dark Pro — Popular Atom editor theme
  10. Cyberpunk — Neon-fueled dystopian vibes
  11. Ayu Dark — Subtle and elegant theme
  12. Palenight — Material Design inspired
  13. Synthwave — 80s synthwave aesthetic
  14. One Light — Light theme alternative
  15. GitHub Dark — GitHub's native dark theme
  16. Everforest — Green-focused natural theme
  17. Rosé Pine — Warm aesthetic color palette
  18. Tokyo Station — Gruvbox-inspired with Japanese flair
  19. Kanagawa — Japanese-inspired with warm colors
  20. Oxocarbon — IBM Carbon design system colors

Cycle through themes in interactive mode using keyboard shortcuts!

Logging Out

cero logout

This clears your stored credentials from the keychain.

Commands

| Command | Alias | Description | | --------------------- | ----- | ------------------------------------------ | | cero login | | Authenticate via device authorization flow | | cero chat <message> | c | Send a message and get an AI response | | cero interactive | i | Launch interactive terminal UI | | cero logout | | Clear stored credentials | | cero --help | -h | Show help information | | cero --version | -v | Display version number |

How it Works

Cero uses OAuth 2.0 Device Authorization Grant for authentication. Here's the flow:

  1. You run cero login
  2. CLI requests a device code from the server
  3. You approve the request in your browser
  4. CLI polls the server until you approve
  5. Tokens are stored securely in your system keychain
  6. Future commands use these tokens automatically

Chat Flow

  1. You send a message via cero chat or interactive mode
  2. CLI sends authenticated request to the API
  3. API triggers background job for AI processing
  4. Response streams back token-by-token via Server-Sent Events
  5. Tokens are rendered in real-time as they arrive

Features

Currently Available

  • AI Chat — Ask questions, get answers, right in your terminal
  • Interactive Terminal UI — Full chat interface with sidebar and conversation history
  • Streaming Responses — Real-time responses as they're generated
  • Conversation History — Browse and continue past conversations
  • Secure Auth — OAuth 2.0 device flow, no API keys to manage
  • Encrypted Storage — Credentials stored in OS keychain
  • Cross-Platform — Works on macOS, Windows, and Linux
  • 20+ Themes — Choose from a variety of beautiful themes to customize your terminal experience

Coming Soon

We're actively building features that'll make Cero your go-to terminal assistant:

  • 💾 Offline-First History — Your chat history syncs both locally and to the cloud. No internet? No problem. You can still browse all your previous conversations.

  • 🤖 Agent Mode — Full-blown AI agent that can iterate on tasks, explore your codebase, and actually get work done. Similar to Copilot's agent or Cursor, but in your terminal.

  • 📂 Codebase Context — Since Cero runs in your terminal, it has full context of your current project. It knows what you're working on and can give you specific, relevant answers.

  • 🔧 Tool Integration

    • Context7 for up-to-date library documentation
    • Brave Search API for web searches
    • URL inspection for fetching and analyzing web content
    • Git integration for commit history and branch context
    • File operations with permission controls
  • 🎨 Multi-Model Support — Choose between GPT-4, Claude, Gemini, and more.

Want to follow along or contribute? Check out our GitHub repository.

Requirements

  • Bun 1.0.0 or higher
  • A browser for authentication

Development

Want to contribute or run this locally?

# Clone the repo
git clone https://github.com/AbhishekSinghDev/cerocode.git
cd cerocode/apps/cero-cli

# Install dependencies
bun install

# Run in development mode
bun dev

# To run commands in dev mode
bun dev <command>

# Build for production
bun build

Tech Stack

  • Runtime: Bun 1+
  • Language: TypeScript
  • CLI Framework: Commander.js
  • TUI Framework: OpenTUI (React-based terminal UI)
  • Auth Client: Better Auth
  • Auth Storage: cross-keychain (native credential managers)
  • HTTP Client: Fetch API
  • Styling: Chalk, Figlet, Boxen

License

MIT © Abhishek Singh