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

deepcode-cli

v1.3.2

Published

DeepCode CLI - AI代码助手命令行工具,支持豆包等多种AI模型

Readme

🚀 DeepCode CLI

一个强大的AI代码助手命令行工具 / A Powerful AI Code Assistant Command Line Tool

CI License Version Downloads

English | 中文

最新版本: v1.3.0 - 🚀 真正的流式输出!


🌟 中文

项目简介

DeepCode CLI 是一个开源的AI代码助手命令行工具,专为开发者设计。它将强大的AI能力直接带到你的终端中,支持多种AI模型,让编程变得更加高效和智能。

✨ 核心特性

🤖 多AI模型支持

  • 🇨🇳 字节豆包 (Doubao) - 中文优化的AI模型,支持图文混合输入
  • 🧠 Google Gemini - 强大的多模态AI模型,支持100万Token上下文
  • 🔧 DeepSeek - 专注代码理解的AI模型
  • ⚡ 更多模型 - 持续集成更多AI模型

🛠️ 强大功能

  • 📁 代码理解 - 深度分析大型代码库
  • ✍️ 代码生成 - 从自然语言生成高质量代码
  • 🐛 智能调试 - 自动发现和修复代码问题
  • 📚 文档生成 - 自动生成代码文档和注释
  • 🔍 代码搜索 - 语义化代码搜索和分析

🔌 扩展能力

  • MCP协议支持 - 模型上下文协议,轻松集成第三方工具
  • 自定义命令 - 创建专属的AI工作流
  • 插件系统 - 丰富的插件生态
  • API集成 - 支持各种第三方API服务

🚀 快速开始

⚡ 开始使用

# 1. 获取你的豆包API密钥
# 访问: https://console.volcengine.com/ark
# 创建应用获取API Key

# 2. 设置密钥并启动
export DOUBAO_API_KEY="your-actual-api-key"
npx deepcode-cli@latest

📦 安装方式

# 方式1: 全局安装
npm install -g deepcode-cli@latest

# 方式2: 直接使用(无需安装)
npx deepcode-cli@latest

# 方式3: 下载运行
npm pack deepcode-cli@latest
tar -xf deepcode-cli-*.tgz && cd package && node deepcode

🔧 配置豆包模型

# 设置豆包API密钥(测试用)
export DOUBAO_API_KEY="your-doubao-api-key"

# 启动DeepCode CLI
deepcode

# 在交互模式中使用
💬 你: 你好,分析一下这个项目
🤖 豆包: [开始分析...]

🎯 基本使用

# 启动交互模式
deepcode

# 项目分析(推荐第一步)
> /init

# 代码审查
> 请审查src/main.js的代码质量

# 生成测试
> 为calculateTotal函数生成单元测试

# 解释代码  
> 解释这段算法的工作原理:[粘贴代码]

💡 实际使用示例

🔍 项目分析与代码审查

# 启动DeepCode CLI
export DOUBAO_API_KEY="your-doubao-api-key"
deepcode

# 在交互界面中:
💬 你: /init
🤖 豆包: 正在分析项目结构...

💬 你: 请全面审查这个项目的代码质量,重点关注性能和安全性
🤖 豆包: [详细的代码审查报告]

🧪 测试生成

💬 你: 为这个函数生成完整的单元测试:
function calculateTotal(items) {
  return items.reduce((sum, item) => sum + item.price * item.quantity, 0);
}

🤖 豆包: [生成Jest/Mocha测试代码]

🔧 代码重构与优化

💬 你: 这个函数性能不好,帮我优化:
[粘贴你的代码]

🤖 豆包: [提供重构建议和优化后的代码]

📚 代码解释与学习

💬 你: 解释这个递归算法的工作原理
💬 你: 什么是闭包?给我一个实际例子
💬 你: 这段SQL查询是怎么工作的?

🌍 支持的AI模型

| 模型 | 语言支持 | 特色功能 | 状态 | |------|----------|----------|------| | 🇨🇳 字节豆包 | 中文优化 | 图文混合、推理增强 | ✅ 已支持 | | 🧠 Google Gemini | 多语言 | 大上下文、多模态 | ✅ 已支持 | | 🔧 DeepSeek | 代码专用 | 代码理解、生成 | 🚧 开发中 | | ⚡ GPT-4 | 多语言 | 通用AI能力 | 📋 计划中 |

🎉 最新更新 (v1.3.0)

  • 🚀 真正的流式输出 - SSE逐字实时显示,类似ChatGPT体验
  • 🧮 智能Token计算 - 中英文混合优化算法,准确率95%+
  • 🧪 完整单元测试 - 13个测试覆盖所有功能
  • 性能大幅提升 - 首字响应~500ms,流畅交互体验

📖 文档

🤝 参与贡献

我们欢迎所有形式的贡献!

# 克隆项目
git clone https://github.com/guocong-bincai/deepcode-cli.git

# 安装依赖
cd deepcode-cli
npm install

# 开始开发
npm run dev

📄 许可证

本项目基于 Apache 2.0 许可证开源。


🌟 English

Introduction

DeepCode CLI is an open-source AI code assistant command-line tool designed for developers. It brings powerful AI capabilities directly to your terminal, supporting multiple AI models to make programming more efficient and intelligent.

✨ Key Features

🤖 Multi-AI Model Support

  • 🇨🇳 ByteDance Doubao - Chinese-optimized AI model with image-text input support
  • 🧠 Google Gemini - Powerful multimodal AI with 1M token context window
  • 🔧 DeepSeek - Code-focused AI model for better code understanding
  • ⚡ More Models - Continuously integrating more AI models

🛠️ Powerful Capabilities

  • 📁 Code Understanding - Deep analysis of large codebases
  • ✍️ Code Generation - Generate high-quality code from natural language
  • 🐛 Smart Debugging - Automatically find and fix code issues
  • 📚 Documentation Generation - Auto-generate code docs and comments
  • 🔍 Code Search - Semantic code search and analysis

🔌 Extensibility

  • MCP Protocol Support - Model Context Protocol for easy third-party tool integration
  • Custom Commands - Create your own AI workflows
  • Plugin System - Rich plugin ecosystem
  • API Integration - Support for various third-party API services

🚀 Quick Start

⚡ Getting Started

# 1. Get your Doubao API key
# Visit: https://console.volcengine.com/ark
# Create application and get API Key

# 2. Set key and start
export DOUBAO_API_KEY="your-actual-api-key"
npx deepcode-cli@latest

📦 Installation Methods

# Method 1: Global installation
npm install -g deepcode-cli@latest

# Method 2: Direct use (no installation needed)
npx deepcode-cli@latest

# Method 3: Download and run
npm pack deepcode-cli@latest
tar -xf deepcode-cli-*.tgz && cd package && node deepcode

🔧 Configure Doubao Model

# Set Doubao API key (test key)
export DOUBAO_API_KEY="your-doubao-api-key"

# Start DeepCode CLI
deepcode

# Use in interactive mode
💬 You: Hello, analyze this project
🤖 Doubao: [Starting analysis...]

🎯 Basic Usage

# Start interactive mode
deepcode

# Project analysis (recommended first step)
> /init

# Code review
> Please review the code quality of src/main.js

# Generate tests
> Generate unit tests for the calculateTotal function

# Explain code
> Explain how this algorithm works: [paste code]

💡 Real Usage Examples

🔍 Project Analysis & Code Review

# Start DeepCode CLI
export DOUBAO_API_KEY="your-doubao-api-key"
deepcode

# In interactive interface:
💬 You: /init
🤖 Doubao: Analyzing project structure...

💬 You: Please comprehensively review this project's code quality, focusing on performance and security
🤖 Doubao: [Detailed code review report]

🧪 Test Generation

💬 You: Generate complete unit tests for this function:
function calculateTotal(items) {
  return items.reduce((sum, item) => sum + item.price * item.quantity, 0);
}

🤖 Doubao: [Generates Jest/Mocha test code]

🔧 Code Refactoring & Optimization

💬 You: This function has poor performance, please help me optimize it:
[paste your code]

🤖 Doubao: [Provides refactoring suggestions and optimized code]

📚 Code Explanation & Learning

💬 You: Explain how this recursive algorithm works
💬 You: What is a closure? Give me a practical example
💬 You: How does this SQL query work?

🌍 Supported AI Models

| Model | Language | Special Features | Status | |-------|----------|------------------|--------| | 🇨🇳 ByteDance Doubao | Chinese-optimized | Image-text, reasoning | ✅ Supported | | 🧠 Google Gemini | Multi-language | Large context, multimodal | ✅ Supported | | 🔧 DeepSeek | Code-focused | Code understanding | 🚧 In Development | | ⚡ GPT-4 | Multi-language | General AI capabilities | 📋 Planned |

🎉 Latest Update (v1.3.0)

  • 🚀 Real Streaming Output - SSE real-time word-by-word display, ChatGPT-like experience
  • 🧮 Smart Token Calculation - Chinese-English mixed optimization algorithm, 95%+ accuracy
  • 🧪 Complete Unit Tests - 13 tests covering all functionality
  • Major Performance Boost - ~500ms first-word response, smooth interaction

📖 Documentation

🤝 Contributing

We welcome all forms of contributions!

# Clone the project
git clone https://github.com/guocong-bincai/deepcode-cli.git

# Install dependencies  
cd deepcode-cli
npm install

# Start development
npm run dev

📄 License

This project is open source under the Apache 2.0 license.



🚀 立即开始 / Get Started Now

中文用户

# 1. 获取API密钥: https://console.volcengine.com/ark  
# 2. 设置并启动
export DOUBAO_API_KEY="your-actual-api-key"
npx deepcode-cli@latest

English Users

# 1. Get API key: https://console.volcengine.com/ark
# 2. Set and start
export DOUBAO_API_KEY="your-actual-api-key"
npx deepcode-cli@latest

获得帮助 / Get Help


🌟 Star History

Star History Chart


Built with ❤️ by the open source community

让AI助力每一行代码 / Empowering every line of code with AI

🚀 v1.3.0 现已支持真正的流式输出!/ v1.3.0 Now with real streaming output!