newapi by quantumnous/skills
npx skills add https://github.com/quantumnous/skills --skill newapinewapi (new-api) 是一个开源的统一 AI 网关平台。它在兼容 OpenAI / Claude / Gemini 的接口背后聚合了多个模型提供商,并提供模型、令牌、群组和余额管理。
此技能遵循以下安全准则以保护 API 密钥:
sk- 密钥值。要安全地使用密钥,请告知用户运行 copy-token(剪贴板)、apply-token(配置文件)或 exec-token(CLI 命令)。api.js、copy-key.js、inject-key.js、exec-token.js)进行,而不是使用 、、 或其他 HTTP 客户端直接调用 New API 端点。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
curlwgetfetchcopy-key.js 之后,不要读取 .env 文件、包含凭据的环境变量或剪贴板内容。inject-key.js --scan 来获取经过清理的视图,而不是直接读取它们。注意:scan-config 是尽力而为的,不能保证能屏蔽所有格式的每个密钥。create-token 之后,不要进行任何后续调用来检索或列出密钥。报告成功并告知用户他们可以使用 copy-token <id>、apply-token <id> <file> 或 exec-token <id> <command> 来安全地使用密钥。${CLAUDE_SKILL_DIR}/docs/setup.md 以了解配置、认证头和运行时检测。${CLAUDE_SKILL_DIR}/docs/help.md 并遵循其中的说明。| 操作 | 描述 | 详情 |
|---|---|---|
models | 列出可用模型 | docs/actions-query.md |
groups | 列出用户群组 | docs/actions-query.md |
balance | 显示账户余额 | docs/actions-query.md |
tokens | 列出 API 令牌 | docs/actions-token.md |
create-token | 创建新的 API 令牌 | docs/actions-token.md |
switch-group | 更改令牌的群组 | docs/actions-token.md |
copy-token | 将真实密钥复制到剪贴板(永不显示) | docs/actions-token.md |
apply-token | 安全地将令牌密钥应用到配置文件 | docs/actions-config.md |
exec-token | 安全地替换令牌密钥后执行命令 | docs/actions-exec.md |
scan-config | 检查配置结构,尽力屏蔽密钥 | docs/actions-config.md |
help | 回答关于 newapi 的问题 | docs/help.md |
help(或无参数) — 显示可用操作| 操作 | 用法 | 描述 |
|---|---|---|
models | /newapi models | 列出可用模型 |
groups | /newapi groups | 列出用户群组 |
balance | /newapi balance | 显示账户余额 |
tokens | /newapi tokens | 列出 API 令牌 |
create-token | /newapi create-token <name> [--group=xxx] | 创建新的 API 令牌 |
switch-group | /newapi switch-group <token_id> <group> | 更改令牌的群组 |
copy-token | /newapi copy-token <token_id> | 将真实密钥复制到剪贴板(永不显示) |
apply-token | /newapi apply-token <token_id> <file_path> | 安全地将令牌密钥应用到配置文件 |
exec-token | /newapi exec-token <token_id> <command...> | 安全地替换令牌密钥后执行命令 |
scan-config | /newapi scan-config <file_path> | 检查配置结构,尽力屏蔽密钥 |
help | /newapi help <question> | 回答关于 newapi 的问题 |
每周安装数
134
代码仓库
GitHub 星标数
13
首次出现
2026年3月8日
安全审计
安装于
cursor130
codex129
opencode129
kimi-cli128
gemini-cli128
amp128
newapi (new-api) is an open-source unified AI gateway platform. It aggregates multiple model providers behind OpenAI / Claude / Gemini compatible interfaces, and provides model, token, group, and balance management.
This skill follows these security guidelines to protect API keys:
sk- key value in chat, files, code, logs, or command arguments. To use keys securely, tell the user to run copy-token (clipboard), apply-token (config file), or exec-token (CLI command).api.js, copy-key.js, inject-key.js, exec-token.js) rather than using curl, wget, fetch, or other HTTP clients to call New API endpoints directly..env files, environment variables containing credentials, or clipboard contents after copy-key.js.inject-key.js --scan to get a sanitized view rather than reading them directly. Note: scan-config is best-effort and not guaranteed to redact every secret in every format.create-token, do not make any follow-up call to retrieve or list the key. Report success and tell the user they can use copy-token <id>, apply-token <id> <file>, or exec-token <id> <command> to securely use the key.${CLAUDE_SKILL_DIR}/docs/setup.md for configuration, auth headers, and runtime detection.${CLAUDE_SKILL_DIR}/docs/help.md and follow the instructions there.| Action | Description | Details |
|---|---|---|
models | List available models | docs/actions-query.md |
groups | List user groups | docs/actions-query.md |
balance | Show account balance | docs/actions-query.md |
tokens |
help (or no arguments) — Show available actions| Action | Usage | Description |
|---|---|---|
models | /newapi models | List available models |
groups | /newapi groups | List user groups |
balance | /newapi balance | Show account balance |
tokens |
Weekly Installs
134
Repository
GitHub Stars
13
First Seen
Mar 8, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
cursor130
codex129
opencode129
kimi-cli128
gemini-cli128
amp128
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
67,500 周安装
iOS Swift开发指南:SwiftUI、Combine、async/await构建高性能原生应用
877 周安装
设计系统构建指南:Figma、Airbnb专家框架,助您规模化产品设计
882 周安装
AI横幅生成器 - 专业横幅设计工具,支持GitHub、Twitter、网站等平台
875 周安装
品牌指南技能 - 统一品牌规范与设计标准管理工具
90 周安装
Railway 数据库服务:一键部署 PostgreSQL、Redis、MySQL、MongoDB
872 周安装
Rollup.js 模块打包工具配置指南:ES 模块、Tree-shaking 与库开发优化
90 周安装
| List API tokens |
docs/actions-token.md |
create-token | Create a new API token | docs/actions-token.md |
switch-group | Change a token's group | docs/actions-token.md |
copy-token | Copy real key to clipboard (never shown) | docs/actions-token.md |
apply-token | Apply token key to a config file securely | docs/actions-config.md |
exec-token | Execute a command with the token key securely substituted | docs/actions-exec.md |
scan-config | Inspect config structure with best-effort secret redaction | docs/actions-config.md |
help | Answer questions about newapi | docs/help.md |
/newapi tokens |
| List API tokens |
create-token | /newapi create-token <name> [--group=xxx] | Create a new API token |
switch-group | /newapi switch-group <token_id> <group> | Change a token's group |
copy-token | /newapi copy-token <token_id> | Copy real key to clipboard (never shown) |
apply-token | /newapi apply-token <token_id> <file_path> | Apply token key to a config file securely |
exec-token | /newapi exec-token <token_id> <command...> | Execute a command with the token key securely substituted |
scan-config | /newapi scan-config <file_path> | Inspect config structure with best-effort secret redaction |
help | /newapi help <question> | Answer questions about newapi |