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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@kodadev/koda-cli

v0.1.37

Published

[![Koda CLI CI](https://github.com/koda-ai/koda-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/koda-ai/koda-cli/actions/workflows/ci.yml) [![Version](https://img.shields.io/npm/v/@koda-ai/koda-cli)](https://www.npmjs.com/package/@koda-ai/koda

Readme

Koda CLI

Koda CLI CI Version License

Koda CLI Screenshot

Koda CLI is an open-source AI agent that brings the power of Koda directly into your terminal. It provides lightweight access to Koda, giving you the most direct path from your prompt to our model.

🚀 Why Koda CLI?

  • 🎯 Free tier: Generous trial limits available with GitHub sign-in
  • 🧠 Powerful Koda 2.5 Pro: Access to 1M token context window
  • 🔧 Built-in tools: Web search grounding, file operations, shell commands, web fetching
  • 🔌 Extensible: MCP (Model Context Protocol) support for custom integrations
  • 💻 Terminal-first: Designed for developers who live in the command line
  • 🛡️ Open source: Apache 2.0 licensed

📦 Installation

Quick Install

Run instantly with npx

# Using npx (no installation required)
npx https://github.com/koda-ai/koda-cli

Install globally with npm

npm install -g @koda-ai/koda-cli

Install globally with Homebrew (macOS/Linux)

brew install koda-cli

System Requirements

  • Node.js version 20 or higher
  • macOS, Linux, or Windows

📋 Key Features

Code Understanding & Generation

  • Query and edit large codebases
  • Generate new apps from PDFs, images, or sketches using multimodal capabilities
  • Debug issues and troubleshoot with natural language

Automation & Integration

  • Automate operational tasks like querying pull requests or handling complex rebases
  • Use MCP servers to connect new capabilities, including media generation with Imagen, Veo or Lyria
  • Run non-interactively in scripts for workflow automation

Advanced Capabilities

  • Ground your queries with built-in web search for real-time information
  • Conversation checkpointing to save and resume complex sessions
  • Custom context files (KODA.md) to tailor behavior for your projects

GitHub Integration

Integrate Koda CLI directly into your GitHub workflows with Koda CLI GitHub Action:

  • Pull Request Reviews: Automated code review with contextual feedback and suggestions
  • Issue Triage: Automated labeling and prioritization of GitHub issues based on content analysis
  • On-demand Assistance: Mention @koda-cli in issues and pull requests for help with debugging, explanations, or task delegation
  • Custom Workflows: Build automated, scheduled and on-demand workflows tailored to your team's needs

🔐 Authentication Options

Choose the authentication method that best fits your needs:

Option 1: Sign in with GitHub (recommended)

✨ Best for: Most users who want the hosted free tier or organization-managed seats.

Benefits:

  • No manual key rotation – the CLI performs the GitHub device flow and caches tokens securely.
  • Automatic provisioning – optionally exchange the GitHub token for a managed Koda API key.
  • Shared configuration – credentials are stored in ~/.config/koda/credentials.json for reuse.
  1. Ensure the CLI has access to a GitHub OAuth client ID. Packaged releases ship with one. If you are running from source, create a GitHub OAuth App with Device Flow enabled and export GITHUB_CLIENT_ID=<your-client-id>. You can customise scopes with GITHUB_SCOPES (defaults to read:user user:email).
  2. Launch the CLI and choose Sign in with GitHub when prompted. The terminal prints a verification URL and code; open the URL, enter the code, and approve the request.
  3. (Optional) Set KODA_GITHUB_EXCHANGE_URL to the endpoint provided by your Koda administrator to automatically mint a long-lived API key from the GitHub token. The CLI saves any tokens that are issued into ~/.config/koda/credentials.json and makes them available for future sessions.
koda

Option 2: Provide a Koda API key

✨ Best for: Service accounts, CI jobs, or teams managing credentials centrally.

Benefits:

  • Deterministic access – use the exact seat or quota assigned to the key.
  • Script friendly – works in headless and automated environments.
  • Compatible – works with cached GitHub tokens or explicit KODA_API_KEY secrets.
export KODA_API_KEY="YOUR_API_KEY"
koda

Store the variable in an .env file, your shell profile, or ~/.config/koda/credentials.json to reuse it across sessions.

Option 3: Continue without authentication (limited)

✨ Best for: Exploring the interface or running local-only commands before connecting to the service.

You can skip authentication from the initial dialog or select Skip later via /auth. Model-backed features remain disabled until you sign in with GitHub or provide an API key.

For detailed setup instructions, troubleshooting tips, and environment variable options see the authentication guide.

🚀 Getting Started

Basic Usage

Start in current directory

koda

Include multiple directories

koda --include-directories ../lib,../docs

Use specific model

koda -m koda-pro

Non-interactive mode for scripts

koda -p "Explain the architecture of this codebase"

Quick Examples

Start a new project

cd new-project/
koda
> Write me a Discord bot that answers questions using a FAQ.md file I will provide

#### Analyze existing code
```bash
git clone https://github.com/koda-ai/koda-cli
cd koda-cli
koda
> Give me a summary of all of the changes that went in yesterday

📚 Documentation

Getting Started

Core Features

Tools & Extensions

Advanced Topics

Configuration & Customization

Troubleshooting & Support

  • Troubleshooting Guide - Common issues and solutions
  • FAQ - Quick answers
  • Use /bug command to report issues directly from the CLI

Using MCP Servers

Configure MCP servers in ~/.koda/settings.json to extend Koda CLI with custom tools:

> @github List my open pull requests
> @slack Send a summary of today's commits to #dev channel
> @database Run a query to find inactive users

See the MCP Server Integration guide for setup instructions.

🤝 Contributing

We welcome contributions! Koda CLI is fully open source (Apache 2.0), and we encourage the community to:

  • Report bugs and suggest features
  • Improve documentation
  • Submit code improvements
  • Share your MCP servers and extensions

See our Contributing Guide for development setup, coding standards, and how to submit pull requests.

Check our Official Roadmap for planned features and priorities.

🧭 Documentation Site

The Markdown guides in docs/ are published with a lightweight Docusaurus site located in docs-website/. To work on the docs UI locally:

  • npm run docs:install (first time only) installs the isolated Docusaurus dependencies.
  • npm run docs:start launches the development server at http://localhost:3000.
  • npm run docs:build creates a production static build under docs-website/build/.

The docs folder is excluded from the main CLI bundle, so these commands are entirely optional for regular builds.

📖 Resources

Uninstall

See the Uninstall Guide for removal instructions.

📄 Legal