Skip to content

QuantumNous/skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

newapi-skills

Skills for managing new-api (open-source AI gateway) resources — models, groups, tokens and balance.

Installation

Use npx to install:

npx skills add https://github.com/QuantumNous/skills --skill newapi

Configuration

Set 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=1

Alternatively, you can create a .env file in the project root or the skill directory. Make sure .env is in your .gitignore.

Usage

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

Requirements

One of the following JS runtimes (the skill auto-detects):

  • Bun (preferred)
  • Node.js >= 18
  • Deno

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages