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

@zyzheal/ola

v0.14.3

Published

AI Platform Code Assistant

Readme

License Node.js Version

OLA - AI Platform Code Assistant

一个开源的 AI 代码助手,运行在你的终端。

English | 中文

简介

OLA 是一个基于 qwen-code(Apache 2.0 许可证)的私有化分支,专为 AI 平台代码助手场景优化。它帮助你理解大型代码库、自动化繁琐工作并更快地交付代码。

主要特性

  • 多模型支持:支持 OpenAI / Anthropic / Gemini 兼容 API,以及阿里云百炼、ModelScope 等国内模型服务
  • 完全开源:框架和代码完全开源,可自由定制和扩展
  • Agent 工作流:丰富的内置工具(Skills、SubAgents、Plan Mode)实现完整的 Agent 工作流
  • 终端优先,IDE 友好:为命令行开发者设计,同时提供 VS Code、Zed 和 JetBrains IDE 集成
  • 完整中文支持:完整的 i18n 支持,中文作为主要输出语言

快速开始

环境要求

  • Node.js: 20.0.0 或更高版本

安装

# 克隆仓库
git clone https://github.com/zyzheal/ola.git
cd ola

# 安装依赖
npm install

# 构建项目
npm run build

# 启动 OLA
npm start

配置

OLA 支持多种配置方式:

1. 通过配置文件

编辑 ~/.ola/settings.json(用户级别)或 .ola/settings.json(项目级别):

{
  "modelProviders": {
    "openai": [
      {
        "id": "qwen3-coder-plus",
        "name": "qwen3-coder-plus",
        "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
        "description": "通义千问代码模型",
        "envKey": "DASHSCOPE_API_KEY"
      }
    ]
  },
  "env": {
    "DASHSCOPE_API_KEY": "sk-your-api-key"
  },
  "model": {
    "name": "qwen3-coder-plus"
  }
}

2. 通过环境变量

export DASHSCOPE_API_KEY="sk-your-api-key"
npm start

使用示例

# 交互式模式
cd your-project/
npm start

# 或直接运行命令
npx ola -p "解释这个项目的代码结构"

常用提示词示例:

这个项目是做什么的?
解释代码库的结构
帮我重构这个函数
为这个模块生成单元测试

命令和快捷键

会话命令

  • /help - 显示可用命令
  • /clear - 清除对话历史
  • /compress - 压缩历史以节省 token
  • /stats - 显示当前会话信息
  • /auth - 管理认证
  • /bug - 提交错误报告
  • /exit/quit - 退出 OLA

快捷键

  • Ctrl+C - 取消当前操作
  • Ctrl+D - 退出(在空行时)
  • 上/下 - 浏览命令历史

文档

详细的用户文档请参阅:

开发

构建命令

# 构建所有包
npm run build

# 开发模式(热重载)
npm run dev

# 运行测试
npm run test

# 运行完整检查(格式化、lint、构建、测试)
npm run preflight

项目结构

ola/
├── packages/
│   ├── cli/              # 命令行界面(主入口)
│   ├── core/             # 核心后端逻辑和工具实现
│   ├── sdk-java/         # Java SDK
│   ├── sdk-typescript/   # TypeScript SDK
│   ├── vscode-ide-companion/  # VS Code 扩展
│   └── ...
├── docs/                 # 文档
├── scripts/              # 构建脚本
└── ...

技术栈

  • 运行时: Node.js 20+
  • 语言: TypeScript 5.3+
  • 包管理器: npm (workspaces)
  • 构建工具: esbuild
  • 测试框架: Vitest
  • UI 框架: Ink (React for CLI)

贡献

我们欢迎各种形式的贡献!请参阅 贡献指南 了解如何参与项目开发。

许可证

本项目基于 Apache 2.0 许可证开源。原始项目 qwen-code 同样采用 Apache 2.0 许可证。

致谢

本项目基于以下优秀项目:


OLA - AI Platform Code Assistant

An open-source AI code assistant running in your terminal.

Introduction

OLA is a private fork based on qwen-code (Apache 2.0 License), optimized for AI platform code assistant scenarios. It helps you understand large codebases, automate tedious work, and ship code faster.

Key Features

  • Multi-model Support: OpenAI / Anthropic / Gemini compatible APIs, plus Alibaba Cloud Bailian, ModelScope, and other domestic model services
  • Fully Open Source: Framework and code completely open source, freely customizable and extensible
  • Agent Workflow: Rich built-in tools (Skills, SubAgents, Plan Mode) for complete Agent workflow
  • Terminal-first, IDE-friendly: Designed for command-line developers, with VS Code, Zed, and JetBrains IDE integration
  • Full Chinese Support: Complete i18n support with Chinese as primary output language

Quick Start

Prerequisites

  • Node.js: 20.0.0 or higher

Installation

# Clone repository
git clone https://github.com/zyzheal/ola.git
cd ola

# Install dependencies
npm install

# Build project
npm run build

# Start OLA
npm start

Configuration

OLA supports multiple configuration methods:

1. Via Configuration File

Edit ~/.ola/settings.json (user-level) or .ola/settings.json (project-level):

{
  "modelProviders": {
    "openai": [
      {
        "id": "qwen3-coder-plus",
        "name": "qwen3-coder-plus",
        "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
        "description": "Qwen Code Model",
        "envKey": "DASHSCOPE_API_KEY"
      }
    ]
  },
  "env": {
    "DASHSCOPE_API_KEY": "sk-your-api-key"
  },
  "model": {
    "name": "qwen3-coder-plus"
  }
}

2. Via Environment Variables

export DASHSCOPE_API_KEY="sk-your-api-key"
npm start

Usage Examples

# Interactive mode
cd your-project/
npm start

# Or run command directly
npx ola -p "Explain the codebase structure"

Documentation

For detailed user documentation, please refer to:

Development

Build Commands

# Build all packages
npm run build

# Development mode (hot reload)
npm run dev

# Run tests
npm run test

# Run full checks (format, lint, build, test)
npm run preflight

License

This project is open source under the Apache 2.0 License. The original project qwen-code is also licensed under Apache 2.0.

Acknowledgments

This project is based on the following excellent projects: