← 返回
开发者工具 中文

NewAPI

Assistant for newapi (new-api), an open-source unified AI gateway platform (https://github.com/QuantumNous/new-api). Use when the user asks about New API, ma...
newapi(new-api)助手,开源统一 AI 网关平台(https://github.com/QuantumNous/new-api)。当用户询问 New API 相关问题时使用。
calcium-ion
开发者工具 clawhub v0.1.1 2 版本 99861.7 Key: 无需
★ 0
Stars
📥 722
下载
💾 15
安装
2
版本
#latest

概述

SKILL: newapi

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.

Security Guidelines

This skill follows these security guidelines to protect API keys:

  1. Do not expose any 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).
  2. All New API calls should go through the provided scripts (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.
  3. Do not read .env files, environment variables containing credentials, or clipboard contents after copy-key.js.
  4. When working with config files that may contain API keys, use 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.
  5. After 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 , apply-token , or exec-token to securely use the key.
  6. Do not modify the security scripts to disable masking or redirect output.

How to Execute

  1. First invocation only — read ${CLAUDE_SKILL_DIR}/docs/setup.md for configuration, auth headers, and runtime detection.
  2. Match the action from the table below.
  3. Read the corresponding doc file for detailed steps.
  4. If no arguments or unrecognized action, show the help table below.
  5. If the user asks about newapi (what it is, how to use a command, or any API usage question like calling a specific model format) — read ${CLAUDE_SKILL_DIR}/docs/help.md and follow the instructions there.

Actions

ActionDescriptionDetails
------------------------------
modelsList available modelsdocs/actions-query.md
groupsList user groupsdocs/actions-query.md
balanceShow account balancedocs/actions-query.md
tokensList API tokensdocs/actions-token.md
create-tokenCreate a new API tokendocs/actions-token.md
switch-groupChange a token's groupdocs/actions-token.md
copy-tokenCopy real key to clipboard (never shown)docs/actions-token.md
apply-tokenApply token key to a config file securelydocs/actions-config.md
exec-tokenExecute a command with the token key securely substituteddocs/actions-exec.md
scan-configInspect config structure with best-effort secret redactiondocs/actions-config.md
helpAnswer questions about newapidocs/help.md

help (or no arguments) — Show available actions

ActionUsageDescription
----------------------------
models/newapi modelsList available models
groups/newapi groupsList user groups
balance/newapi balanceShow account balance
tokens/newapi tokensList API tokens
create-token/newapi create-token [--group=xxx]Create a new API token
switch-group/newapi switch-group Change a token's group
copy-token/newapi copy-token Copy real key to clipboard (never shown)
apply-token/newapi apply-token Apply token key to a config file securely
exec-token/newapi exec-token Execute a command with the token key securely substituted
scan-config/newapi scan-config Inspect config structure with best-effort secret redaction
help/newapi help Answer questions about newapi

版本历史

共 2 个版本

  • v0.1.1 当前
    2026-03-19 05:15 安全 安全
  • v0.1.0
    2026-03-14 02:58

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,941
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,598
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,532