ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

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).

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/binkes/chanjing-credentials-guard
Or

What 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

  1. "I need to generate Chanjing keys to use the voice clone feature, can you help me get set up?"
  2. "Configure my Chanjing credentials so I can start using the TTS API."
  3. "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_DIR environment 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

Author@binkes
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-binkes-chanjing-credentials-guard": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#auth#chanjing#security#api#voice
Safety Score: 4/5

Flags: file-write, file-read, code-execution