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

@jiushiyu/ai-auto

v1.5.2

Published

一键把 Codex / Claude Code / OpenCode 接入 jiushiyu.cn 中转站

Readme

@jiushiyu/ai-auto

一键把 Codex / Claude Code / OpenCode 接入 jiushiyu.cn

运行命令后,先选择要配置的工具,再按工具输入需要的 API Key。配置器会覆盖本工具之前写入的 jiushiyu/qwqapi 配置,并写入可直接使用的固定模型集。

使用

需要 Node.js 18+。

npx -y @jiushiyu/ai-auto@latest
npx -y @jiushiyu/ai-auto@latest check
npx -y @jiushiyu/[email protected]

配置流程

  1. 选择工具:Codex、Claude Code 或 OpenCode。
  2. 输入 API Key:
    • Codex:只输入 GPT 模型 Key。
    • Claude Code:只输入 Claude 模型 Key。
    • OpenCode:分别输入 GPT 模型 Key 和 Claude 模型 Key。
  3. 非阻塞验证 Key 是否能访问 https://jiushiyu.cn/v1/models
  4. 自动写入配置并备份旧文件为 *.bak.<时间戳>
  5. 自动自检 endpoint、Key、默认模型和模型清单。
  6. OpenCode 会检查模型能力元数据,避免自定义模型在 Windows 等环境下被误判为不支持图片/PDF。

Endpoint

| 工具 | 配置文件 | Endpoint | |------|----------|----------| | Codex | ~/.codex/config.toml | https://jiushiyu.cn/v1 | | Claude Code | ~/.claude/settings.json | https://jiushiyu.cn | | OpenCode GPT provider | ~/.config/opencode/opencode.json | https://jiushiyu.cn/v1 | | OpenCode Claude provider | ~/.config/opencode/opencode.json | https://jiushiyu.cn/v1 |

内置模型

Claude:

  • claude-opus-5
  • claude-sonnet-5
  • claude-opus-4-8
  • claude-opus-4-7

GPT:

  • gpt-5.6
  • gpt-5.5
  • gpt-5.4

写入内容

| 工具 | 写入方式 | |------|----------| | Codex | model_provider = "jiushiyu"wire_api = "responses"requires_openai_auth = false,Key 走 JIUSHIYU_API_KEY 环境变量 | | Claude Code | 写入 ANTHROPIC_BASE_URLANTHROPIC_AUTH_TOKEN、默认 Opus/Sonnet 模型、availableModelsmodelOverrides | | OpenCode | 写入 jiushiyu-claudejiushiyu-gpt 两个 provider,分别使用 Claude Key 和 GPT Key |

OpenCode 的每个内置模型都会写入完整能力元数据:

  • attachment: true
  • reasoning: true
  • temperature: true
  • tool_call: true
  • modalities.input: ["text", "image", "pdf"]
  • modalities.output: ["text"]
  • limit.context / limit.output

开发

npm test

回到 1.5.1

npx -y @jiushiyu/[email protected]
npx -y @jiushiyu/[email protected] check

发布

npm login
npm publish --access public