subme-admin
Manage Sub2API admin APIs for accounts, groups, proxies, error passthrough rules, TLS fingerprint profiles, imports, exports, batch updates, and raw administrator API calls. Use when the user mentions Sub2API, admin API keys, account management, bulk account import/export, keeping or deleting accounts, refreshing accounts, clearing errors, CRS sync, or managing Sub2API backend settings through the admin API.
소스 정보
- 저장소
- telagod/subme
- 최근 소스 활동
- 2026년 6월 18일 04:06
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
파일 탐색기
4 개 파일SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- subme-admin
- description
- Manage Sub2API admin APIs for accounts, groups, proxies, error passthrough rules, TLS fingerprint profiles, imports, exports, batch updates, and raw administrator API calls. Use when the user mentions Sub2API, admin API keys, account management, bulk account import/export, keeping or deleting accounts, refreshing accounts, clearing errors, CRS sync, or managing Sub2API backend settings through the admin API.
# Sub2API Admin
Use the bundled CLI instead of ad hoc `curl`. Run examples from this skill directory.
```bash
export SUBME_BASE_URL='https://your-subme-host'
export SUBME_ADMIN_API_KEY='<admin api key>'
node ~/.codex/skills/subme-admin/scripts/subme-admin.js accounts list
```
For all commands and payload examples, read [references/admin-cli.md](references/admin-cli.md).
## Workflow
1. Reuse `SUBME_BASE_URL` and `SUBME_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
```bash
node ~/.codex/skills/subme-admin/scripts/subme-admin.js accounts list --page-size 20
node ~/.codex/skills/subme-admin/scripts/subme-admin.js accounts get 40
node ~/.codex/skills/subme-admin/scripts/subme-admin.js accounts usage 40
node ~/.codex/skills/subme-admin/scripts/subme-admin.js accounts set-schedulable 40 true
node ~/.codex/skills/subme-admin/scripts/subme-admin.js accounts bulk-update --ids 40,39 --json '{"concurrency":10}'
node ~/.codex/skills/subme-admin/scripts/subme-admin.js error-rules list
node ~/.codex/skills/subme-admin/scripts/subme-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.
GitHub에서 보기