sub2api-admin

sub2api-admin is a skill for Claude Code, Codex from Bilal140202/the-lord-of-the-skills. It costs 101 tokens per session (610 once invoked), scanned A, original, MIT.

An administration tool for managing Sub2API, including accounts, access codes, groups, proxies, imports, exports, and administrator API calls. Sub2API is a service whose administrative data can be controlled through APIs.

In plain words
What is it for?
Use it to list or inspect accounts, manage redeem codes and groups, update account settings, handle proxies, and perform bulk administrator operations.
Why use it?
It provides a repeatable command-line workflow for inspecting accounts before making changes and checking results afterward.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/sub2api-admin.js accounts list.

Good fit Use it to list or inspect accounts, manage redeem codes and groups, update account settings, handle proxies, and perform bulk administrator operations.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Bilal140202/the-lord-of-the-skills
agentmods
npx agentmods add skills/bilal140202/the-lord-of-the-skills/wei-shaw__sub2api

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sub2api-admin

README.md
[![agentmods](https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/wei-shaw__sub2api/github.svg)](https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/wei-shaw__sub2api)
Your own site
<a href="https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/wei-shaw__sub2api"><img src="https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/wei-shaw__sub2api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sub2api-admin

Your own site · 80×15
<a href="https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/wei-shaw__sub2api"><img src="https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/wei-shaw__sub2api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 610 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.00610
Opus 5 $0.00051 $0.00305
Sonnet 5 $0.00020 $0.00122
Haiku 4.5 $0.00010 $0.00061

Measured 9d ago against content hash 5e1294a681c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

sub2api-admin scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Use the bundled CLI instead of ad hoc `curl`. Run examples from this skill directory.
skills/gondor/claude-code/Wei-Shaw__sub2api/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sub2API Admin

Use the bundled CLI instead of ad hoc curl. Run examples from this skill directory.

export SUB2API_BASE_URL='https://your-sub2api-host'
export SUB2API_ADMIN_API_KEY='<admin api key>'
node scripts/sub2api-admin.js accounts list

For all commands and payload examples, read references/admin-cli.md.

Workflow

  1. Reuse SUB2API_BASE_URL and SUB2API_ADMIN_API_KEY from the environment.
  2. Run read-only commands first: accounts list, accounts get <id>, groups all, or proxies all.
  3. Before destructive or bulk writes, print the target account names and IDs.
  4. Execute the write command only after the target set is clear.
  5. Run a follow-up read command to verify the result.

Common Commands

node scripts/sub2api-admin.js accounts list --page-size 20
node scripts/sub2api-admin.js accounts get 40
node scripts/sub2api-admin.js accounts usage 40
node scripts/sub2api-admin.js accounts set-schedulable 40 true
node scripts/sub2api-admin.js accounts bulk-update --ids 40,39 --json '{"concurrency":10}'
node scripts/sub2api-admin.js redeem-codes list --page-size 20
node scripts/sub2api-admin.js redeem-codes generate --json '{"count":1,"type":"balance","value":10}' --idempotency-key redeem-$(date +%s)
node scripts/sub2api-admin.js redeem-codes create-and-redeem --json '{"code":"order_123","type":"balance","value":10,"user_id":123}' --idempotency-key order-123
node scripts/sub2api-admin.js error-rules list
node scripts/sub2api-admin.js tls-profiles list

Safety Notes

  • Authentication uses only x-api-key.
  • If the API returns INVALID_ADMIN_KEY, ask the user to regenerate the admin API key.
  • accounts export includes credentials and tokens. Prefer --file and avoid printing exports in chat.
  • Redeem code create/redeem commands should use --idempotency-key for payment or recharge workflows.
  • For uncertain or newly added backend APIs, use api <METHOD> <admin-path> after a read-only check.

Read the full file on GitHub · 48 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 48 lines · 101 tokens per session scan A 5e1294a681c0

Subscribe to this mod's changes

sub2api-admin is a skill published in the GitHub repository Bilal140202/the-lord-of-the-skills (4 stars, last pushed 6d ago), licensed MIT. It adds 101 tokens to every session and 610 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories