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

my-open-cc

v1.5.8

Published

my-open-cc — an open-source AI coding assistant

Readme

my-open-cc

一个开源的终端 AI 编程助手,基于社区开源项目进行二次开发实现。

关于本项目

my-open-cc(全局命令 oc)提供与 Claude Code 相似的终端 AI 编程体验,兼容 Claude Code 的 API 端点以及 settings.json 配置。

与 Claude Code 官方版本相比,my-open-cc:

  • 无 Claude 官方会员限制
  • 无 Claude 遥测与数据上报
  • A/ 官方遥测功能全部禁用
  • 无数据泄露给 A/ 的风险

本产品仅供学习使用。

使用本软件所产生的风险与责任由使用者自行承担。

功能特性

  • 支持任意 Anthropic 兼容 API(通过 ANTHROPIC_BASE_URL 配置)
  • 默认模型由 Anthropic 模型逻辑决定(如 claude-sonnet-4-6)
  • 配置目录与官方 Claude Code 兼容(~/.claude/
  • 通过 Bun 全局安装并运行
  • 内置跨平台 ripgrep 二进制,无需单独安装
  • 完整工具支持:Bash、文件编辑/读取/写入、glob、grep、web 抓取/搜索(基于 Bing RSS,本地实现)、MCP、agents、tasks 等

环境要求

  • Bun >= 1.3.11
  • 一个 Anthropic 兼容 API key(或跳过,继承环境变量 / settings.json 中的已有配置)

安装

bun install -g my-open-cc

安装后会提供全局命令 oc

使用方法

# 首次启动 — 引导向导会指引你输入 API key
oc

# 单次提问
oc -p "你的问题"

# 查看版本
oc --version

首次启动会引导你完成:

  1. 主题选择
  2. 输入你的 API key,或选择"跳过"从环境变量或现有 settings.json 继承配置
  3. 安全与信任设置
  4. 开始使用

高级配置

环境变量(均为可选,有内置默认值):

| 变量 | 默认值 | 说明 | |---|---|---| | ANTHROPIC_BASE_URL | (Anthropic SDK 默认) | API 地址 | | ANTHROPIC_MODEL | (Anthropic 默认模型逻辑) | 使用的模型 | | ANTHROPIC_API_KEY | (通过引导设置) | 你的 Anthropic 兼容 API key | | CLAUDE_CONFIG_DIR | ~/.claude | 配置目录 |

开发构建

bun install
bun run build        # 生产构建 → dist/cli.mjs
bun run build:dev    # 开发构建
bun run dev          # 直接从源码运行
bun run typecheck    # TypeScript 类型检查

旧版 npm/esbuild 构建

如果环境没有 Bun,仍可使用旧版 npm 构建路径:

npm install
npm run build

@ant/* 桥接模块

项目包含多个桥接模块(shims/ant-*.ts),用于替代 Anthropic 内部的 @ant/* 包(不可公开获取)。scripts/setup-ant-shims.mjs 会创建这些包的 node_modules/@ant/ 目录结构,无需手动配置。

如果遇到 "Could not resolve" 错误,运行:

bun scripts/setup-ant-shims.mjs

License

For educational use only. Not for commercial use. See disclaimer above.