chanjing-credentials-guard
Run this skill before any chanjing-related action. When the user asks to generate or configure chanjing credentials/keys (AK/SK), run this skill to guide them—check if already configured; if yes, ask whether to re-apply; then open login page and let the user either run the config command or paste AK/SK for the agent to apply. ALWAYS run when user asks for chanjing credentials/keys or before any chanjing API (voice list, TTS, avatar, voice-clone).
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/binkes/chanjing-credentials-guardWhat This Skill Does
The chanjing-credentials-guard is a foundational security and utility skill designed to manage authentication for all Chanjing AI services within the OpenClaw ecosystem. Its primary function is to act as a gatekeeper, ensuring that your Access Key (AK) and Secret Key (SK) are properly configured and your access token is active before executing any sensitive Chanjing API operations, such as voice synthesis, avatar generation, or voice cloning. The skill automates the validation process by checking local configuration files at ~/.chanjing/credentials.json, refreshing expired tokens, and providing a seamless onboarding experience for new users by opening the browser-based login portal. It also provides a secure mechanism for users to input their credentials directly, preventing common configuration errors.
Installation
To integrate this skill into your environment, run the following command in your terminal:
clawhub install openclaw/skills/skills/binkes/chanjing-credentials-guard
This installs the necessary Python scripts and file handling utilities required to interface with your Chanjing account securely.
Use Cases
- Pre-flight Check: Automatically verifies credentials before triggering any Chanjing-dependent task to avoid runtime errors.
- First-time Setup: Guides users through the Chanjing sign-in process, helping them locate their API keys, and offers an automated way to apply them.
- Token Lifecycle Management: Monitors the expiration status of the session token and automatically performs background refreshes to maintain persistent access.
- Credential Security: Provides a standardized interface for updating or reapplying keys, ensuring that your sensitive data is stored in the correct directory with consistent formatting.
Example Prompts
- "I need to generate Chanjing keys to use the voice clone feature, can you help me get set up?"
- "Configure my Chanjing credentials so I can start using the TTS API."
- "Open the Chanjing login page for me so I can grab my new access keys."
Tips & Limitations
- Security Warning: When providing your keys via chat, ensure you are in a secure environment; the agent will mask your keys in subsequent logs, but be mindful of your terminal history.
- Environment Variables: If you are working in a non-standard file system, you can override the default config location by setting the
CHANJING_CONFIG_DIRenvironment variable. - Automation: Always allow the agent to run this skill automatically; it is designed to be invisible when your credentials are valid and only interferes when action is strictly required.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-binkes-chanjing-credentials-guard": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
chanjing-text-to-digital-person
Use Chanjing text-to-digital-person APIs to create AI portrait images, turn them into talking videos, optionally run LoRA training, poll async tasks, and explicitly download generated assets when requested.
chanjing-customised-person
Use Chanjing customised person APIs to create, inspect, list, poll, and delete custom digital humans from uploaded source videos.
chanjing-avatar
Use Chanjing Avatar API for lip-syncing video generation
chanjing-ai-creation
Use Chanjing AI creation APIs to submit image or video generation tasks across multiple models, inspect task status, poll async results, and explicitly download generated assets when requested.
chanjing-one-click-video-creation
用户输入选题或工作流,自动生成完整短视频成片(文案、分镜、数字人口播与 AI 画面混剪);调用 Chanjing Open API 与同仓库子技能脚本。