Skip to content
Back to search

newapi-skills

MarketplaceWorks with Claude CodeGitHubIncomplete

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/quantumnous-skills/badge.svg)](/listings/quantumnous-skills)

HTML

<a href="/listings/quantumnous-skills"><img src="/api/listings/quantumnous-skills/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Use `npx` to install:

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

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 27 lines
  1. {
  2. "name": "newapi-skills",
  3. "owner": {
  4. "name": "Calcium-Ion",
  5. "url": "https://www.newapi.ai"
  6. },
  7. "metadata": {
  8. "description": "Skills for new-api: manage models, groups, tokens and balance, and develop and publish New API plugins.",
  9. "version": "1.0.0"
  10. },
  11. "plugins": [
  12. {
  13. "name": "newapi",
  14. "description": "User-facing new-api operations: query models, check balance, list groups, and manage personal API tokens.",
  15. "source": "./",
  16. "strict": false,
  17. "skills": ["./skills/newapi"]
  18. },
  19. {
  20. "name": "newapi-plugin-dev",
  21. "description": "Develop, test and publish New API plugins (plugin.js) on the newapi.ai community marketplace.",
  22. "source": "./",
  23. "strict": false,
  24. "skills": ["./skills/newapi-plugin-dev"]
  25. }
  26. ]
  27. }
README.md · README · 76 lines
  1. # newapi-skills
  2. Skills for [new-api](https://github.com/QuantumNous/new-api) (open-source AI gateway).
  3. | Skill | What it does |
  4. | ----- | ------------ |
  5. | [`newapi`](#newapi) | Manage your new-api resources — models, groups, tokens and balance |
  6. | [`newapi-plugin-dev`](#newapi-plugin-dev) | Develop, test and publish New API plugins on the [newapi.ai](https://www.newapi.ai) community marketplace |
  7. ## newapi
  8. ### Installation
  9. Use `npx` to install:
  10. ```bash
  11. npx skills add https://github.com/QuantumNous/skills --skill newapi
  12. ```
  13. ### Configuration
  14. Set the following three variables before using the skill. **Recommended: export as environment variables** (e.g. in your shell profile):
  15. ```bash
  16. export NEWAPI_BASE_URL=https://your-newapi-instance.com
  17. export NEWAPI_ACCESS_TOKEN=your-access-token
  18. export NEWAPI_USER_ID=1
  19. ```
  20. Alternatively, you can create a `.env` file in the project root or the skill directory. Make sure `.env` is in your `.gitignore`.
  21. ### Usage
  22. | Action | Usage | Description |
  23. | ------ | ----- | ----------- |
  24. | `models` | `/newapi models` | List available models |
  25. | `groups` | `/newapi groups` | List user groups |
  26. | `balance` | `/newapi balance` | Show account balance |
  27. | `tokens` | `/newapi tokens` | List API tokens |
  28. | `create-token` | `/newapi create-token <name> [--group=xxx]` | Create a new API token |
  29. | `switch-group` | `/newapi switch-group <token_id> <group>` | Change a token's group |
  30. | `copy-token` | `/newapi copy-token <token_id>` | Copy real key to clipboard (never shown) |
  31. | `apply-token` | `/newapi apply-token <token_id> <file_path>` | Apply token key to a config file securely |
  32. | `exec-token` | `/newapi exec-token <token_id> <command...>` | Execute a command with the token key securely substituted |
  33. | `scan-config` | `/newapi scan-config <file_path>` | Inspect config structure with best-effort secret redaction |
  34. | `help` | `/newapi help <question>` | Answer questions about newapi |
  35. ### Requirements
  36. One of the following JS runtimes (the skill auto-detects):
  37. - [Bun](https://bun.sh) (preferred)
  38. - Node.js >= 18
  39. - Deno
  40. ## newapi-plugin-dev
  41. Guides an agent through writing a New API plugin (`plugin.js`), its `README.md` and `CHANGELOG.md`, validating it with `new-api plugin lint` and fixtures, and publishing it from your GitHub repository on the [newapi.ai community marketplace](https://www.newapi.ai/en/community).
  42. ### Installation
  43. ```bash
  44. npx skills add https://github.com/QuantumNous/skills --skill newapi-plugin-dev
  45. ```
  46. ### Usage
  47. Describe the plugin you want, for example:
  48. > Use the newapi-plugin-dev skill to build a New API plugin for the Example video API (docs: https://example.com/docs). My GitHub username is alice.
  49. The skill reads the [plugin API spec](https://github.com/QuantumNous/new-api/blob/main/docs/plugin-api/v1.md) and follows it. It needs no configuration; testing uses a [new-api release](https://github.com/QuantumNous/new-api/releases) binary or the `calciumion/new-api` Docker image.
  50. ## License
  51. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.