newapi
1.028 instalações · quantumnous/skills
Open source Repository Open in the app JSON README (API)
About
Skill publicada por quantumnous/skills, com 1.028 instalações medidas pelo skills.sh. Instale com: npx skills add quantumnous/skills@newapi
Details
- Kind
- Agent skills
- Topic
- No topic detected
- Publisher
- quantumnous
- Origin
- skillssh
- Category
- ferramentas
- Stars
- 85
- Forks
- 13
- Last push
- 2026-03-14T08:20:21Z
- Repository state
- ativo
- Language
- JavaScript
- License
- MIT
- Added
- 2026-08-30 15:22:51
- Updated
- 2026-09-04 20:02:50
- Origin id
quantumnous/skills/newapi
README
# newapi-skills Skills for managing [new-api](https://github.com/QuantumNous/new-api) (open-source AI gateway) resources — models, groups, tokens and balance. ## Installation Use `npx` to install: ```bash 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): ```bash 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](https://bun.sh) (preferred) - Node.js >= 18 - Deno ## License MIT