newapi
Installation
SKILL.md
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
sk-key value in chat, files, code, logs, or command arguments. To use keys securely, tell the user to runcopy-token(clipboard),apply-token(config file), orexec-token(CLI command). - All New API calls should go through the provided scripts (
api.js,copy-key.js,inject-key.js,exec-token.js) rather than usingcurl,wget,fetch, or other HTTP clients to call New API endpoints directly. - Do not read
.envfiles, environment variables containing credentials, or clipboard contents aftercopy-key.js. - When working with config files that may contain API keys, use
inject-key.js --scanto get a sanitized view rather than reading them directly. Note:scan-configis best-effort and not guaranteed to redact every secret in every format. - After
create-token, do not make any follow-up call to retrieve or list the key. Report success and tell the user they can usecopy-token <id>,apply-token <id> <file>, orexec-token <id> <command>to securely use the key. - Do not modify the security scripts to disable masking or redirect output.