newapi
Original:🇺🇸 English
Translated
7 scripts
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, managing models, groups, balance, or tokens, or securely copying keys, applying them to config files, or using them in commands without exposing secrets.
5installs
Sourcequantumnous/skills
Added on
NPX Install
npx skill4agent add quantumnous/skills newapiTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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:
- Do not expose any key value in chat, files, code, logs, or command arguments. To use keys securely, tell the user to run
sk-(clipboard),copy-token(config file), orapply-token(CLI command).exec-token - All New API calls should go through the provided scripts (,
api.js,copy-key.js,inject-key.js) rather than usingexec-token.js,curl,wget, or other HTTP clients to call New API endpoints directly.fetch - Do not read files, environment variables containing credentials, or clipboard contents after
.env.copy-key.js - When working with config files that may contain API keys, use to get a sanitized view rather than reading them directly. Note:
inject-key.js --scanis best-effort and not guaranteed to redact every secret in every format.scan-config - After , do not make any follow-up call to retrieve or list the key. Report success and tell the user they can use
create-token,copy-token <id>, orapply-token <id> <file>to securely use the key.exec-token <id> <command> - Do not modify the security scripts to disable masking or redirect output.
How to Execute
- First invocation only — read for configuration, auth headers, and runtime detection.
${CLAUDE_SKILL_DIR}/docs/setup.md - Match the action from the table below.
- Read the corresponding doc file for detailed steps.
- If no arguments or unrecognized action, show the help table below.
- 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 and follow the instructions there.
${CLAUDE_SKILL_DIR}/docs/help.md
Actions
| Action | Description | Details |
|---|---|---|
| List available models | |
| List user groups | |
| Show account balance | |
| List API tokens | |
| Create a new API token | |
| Change a token's group | |
| Copy real key to clipboard (never shown) | |
| Apply token key to a config file securely | |
| Execute a command with the token key securely substituted | |
| Inspect config structure with best-effort secret redaction | |
| Answer questions about newapi | |
help
(or no arguments) — Show available actions
help| Action | Usage | Description |
|---|---|---|
| | List available models |
| | List user groups |
| | Show account balance |
| | List API tokens |
| | Create a new API token |
| | Change a token's group |
| | Copy real key to clipboard (never shown) |
| | Apply token key to a config file securely |
| | Execute a command with the token key securely substituted |
| | Inspect config structure with best-effort secret redaction |
| | Answer questions about newapi |