Skills for managing new-api (open-source AI gateway) resources — models, groups, tokens and balance.
Use npx to install:
npx skills add https://github.com/QuantumNous/skills --skill newapiSet the following three variables before using the skill. Recommended: export as environment variables (e.g. in your shell profile):
export NEWAPI_BASE_URL=https://your-newapi-instance.com
export NEWAPI_ACCESS_TOKEN=your-access-token
export NEWAPI_USER_ID=1Alternatively, you can create a .env file in the project root or the skill directory. Make sure .env is in your .gitignore.
| Action | Usage | Description |
|---|---|---|
models |
/newapi models |
List available models |
groups |
/newapi groups |
List user groups |
balance |
/newapi balance |
Show account balance |
tokens |
/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 |
One of the following JS runtimes (the skill auto-detects):
- Bun (preferred)
- Node.js >= 18
- Deno
MIT