OpenParable
Skip to content
← Back to skills

Chat2api Management API

Testing & Quality
chat2api-management-api

Chat2api Management API is an Agent Skill for testing & quality published in the xiaoY233/Chat2API repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when operating Chat2API Manager's management API for testing, including health checks, config snapshots, temporary API keys, model mappings, sessions, logs, and cleanup verification.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/xiaoY233/Chat2API/blob/HEAD/skills/chat2api-management-api/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/chat2api-management-api, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Chat2API Management API

Use this skill before live proxy testing that needs /v0/management/*.

Rules

  • Never print full management secrets, API keys, or account credentials.
  • Create disposable API keys for tests and delete only keys created by the current run.
  • Snapshot config before mutation and restore it in cleanup.
  • Do not clear sessions unless the user explicitly asks for cleanup.

Script

Use scripts/management-api.mjs for repeatable management API setup, observation, and cleanup commands.

Commands

CHAT2API_MGMT_SECRET=mgmt_xxx node skills/chat2api-management-api/scripts/management-api.mjs snapshot
CHAT2API_MGMT_SECRET=mgmt_xxx node skills/chat2api-management-api/scripts/management-api.mjs create-api-key --name codex-live-test
CHAT2API_MGMT_SECRET=mgmt_xxx node skills/chat2api-management-api/scripts/management-api.mjs delete-api-key --id key-id
CHAT2API_MGMT_SECRET=mgmt_xxx node skills/chat2api-management-api/scripts/management-api.mjs restore-tool-config --file /private/tmp/toolCallingConfig.json

Use --dry-run to verify command shape without network calls.

create-api-key prints a one-time API key to stdout. Do not write this output to durable logs, transcripts, or shared artifacts.

snapshot omits request logs by default. Use snapshot --include-logs only when logs are intentionally needed; included snapshot data is locally redacted before printing.