WeryAI Account
Use this skill for official WeryAI account balance and credits queries. It is intentionally narrow: the only supported public account action in this skill is reading the current API credits balance from WeryAI.
This skill is intentionally strict about secret declaration and input safety: the only runtime secret is WERYAI_API_KEY. This is a read-only account check, not a generation or editing workflow.
Dependencies: scripts/account.js in this directory + WERYAI_API_KEY + Node.js 18+. No other Cursor skills are required.
Example Prompts
- - INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
Quick Summary
- - Main job: query WeryAI API account credits
- Main output: INLINECODE7
- Main trust signals: official account endpoint, read-only behavior,
WERYAI_API_KEY runtime-secret policy
Authentication and first-time setup
Before the first real account query:
- 1. Create a WeryAI account.
- Open the API key page at
https://www.weryai.com/api/keys. - Create a new API key and copy the secret value.
- Add it to the required environment variable
WERYAI_API_KEY.
OpenClaw-friendly setup
- - This skill already declares
WERYAI_API_KEY in metadata.openclaw.requires.env and primaryEnv. - After installation, if the installer or runtime asks for required environment variables, paste the key into
WERYAI_API_KEY. - If you are configuring the runtime manually, export it before running commands:
CODEBLOCK0
Quick verification
Use one safe check before the first real account query:
CODEBLOCK1
If the key is valid, the command returns JSON with a numeric balance.
- -
balance confirms that the key is configured and the official account endpoint is reachable. - If
balance is 0, guide the user to recharge or buy credits at https://www.weryai.com/api/pricing before running paid jobs.
Prerequisites
- -
WERYAI_API_KEY must be set before running account.js. - Node.js
>=18 is required because the runtime uses built-in fetch.
Security, secrets, and API hosts
- -
WERYAI_API_KEY: Treat it as a secret. Configure it only in the runtime environment; never write the secret value into the skill files. - Optional override
WERYAI_BASE_URL defaults to https://api.weryai.com. Only override it with a trusted host. - Higher assurance: Run account checks in a short-lived shell or isolated environment, and review
scripts/account.js before production use.
Intent Routing
Use this skill when the user asks:
- - how many credits are left
- what the current WeryAI balance is
- whether the API key works for account access
- whether there are enough credits before a paid generation run
Do not use this skill for:
- - text-to-image or image-to-image generation
- image tools
- video generation or video tools
- music generation
- effect templates
Those belong to other WeryAI skills.
Preferred Command
CODEBLOCK2
Workflow
- 1. Confirm the user wants account credits or API balance, not generation.
- Ensure
WERYAI_API_KEY is available in the runtime environment. - Run
node {baseDir}/scripts/account.js balance. - Return the JSON result and clearly state the current balance.
Output
The command prints JSON to stdout. Successful output includes:
- - INLINECODE30
- INLINECODE31
- INLINECODE32
- INLINECODE33
- INLINECODE34
- INLINECODE35
Failure output can include:
- - INLINECODE36
- INLINECODE37
Definition of done
The task is done when:
- - the balance endpoint returns successfully and the credits value is shown to the user,
- if the balance is
0, the recharge guidance is shown with https://www.weryai.com/api/pricing, - or the failure clearly explains why balance lookup did not work, such as missing or invalid
WERYAI_API_KEY.
Re-run behavior
- -
balance is read-only and safe to re-run.
References
WeryAI 账户
使用此技能查询官方 WeryAI 账户余额和积分。其功能范围被刻意限定:此技能中唯一支持的公开账户操作是从 WeryAI 读取当前 API 积分余额。
此技能对密钥声明和输入安全性有严格要求:唯一的运行时密钥是 WERYAIAPIKEY。这是一个只读的账户检查,而非生成或编辑工作流。
依赖项: 本目录下的 scripts/account.js + WERYAIAPIKEY + Node.js 18+。无需其他 Cursor 技能。
示例提示
- - 检查我剩余的 WeryAI 积分。
- 这个 WeryAI API 账户还剩多少积分?
- 验证此 WERYAIAPIKEY 能否读取账户余额。
- 在我运行付费图像任务之前,显示当前的 WeryAI 余额。
快速摘要
- - 主要任务:查询 WeryAI API 账户积分
- 主要输出:balance
- 主要信任信号:官方账户端点、只读行为、WERYAIAPIKEY 运行时密钥策略
身份验证和首次设置
在首次实际账户查询之前:
- 1. 创建一个 WeryAI 账户。
- 打开 https://www.weryai.com/api/keys 的 API 密钥页面。
- 创建新的 API 密钥并复制密钥值。
- 将其添加到所需的环境变量 WERYAIAPIKEY 中。
OpenClaw 友好设置
- - 此技能已在 metadata.openclaw.requires.env 和 primaryEnv 中声明了 WERYAIAPIKEY。
- 安装后,如果安装程序或运行时要求提供所需的环境变量,请将密钥粘贴到 WERYAIAPIKEY 中。
- 如果您手动配置运行时,请在运行命令之前导出它:
sh
export WERYAIAPIKEY=yourapikey_here
快速验证
在首次实际账户查询之前,使用一次安全检查:
sh
node {baseDir}/scripts/account.js balance
如果密钥有效,该命令将返回包含数字 balance 的 JSON。
- - balance 确认密钥已配置且官方账户端点可访问。
- 如果 balance 为 0,请引导用户在运行付费任务之前,前往 https://www.weryai.com/api/pricing 充值或购买积分。
前提条件
- - 运行 account.js 之前必须设置 WERYAIAPIKEY。
- 需要 Node.js >=18,因为运行时使用内置的 fetch。
安全性、密钥和 API 主机
- - WERYAIAPIKEY:将其视为机密。仅在运行时环境中配置;切勿将密钥值写入技能文件中。
- 可选覆盖项 WERYAIBASEURL 默认为 https://api.weryai.com。仅使用受信任的主机进行覆盖。
- 更高保证:在短期 shell 或隔离环境中运行账户检查,并在生产使用前审查 scripts/account.js。
意图路由
当用户询问以下内容时使用此技能:
- - 还剩多少积分
- 当前 WeryAI 余额是多少
- API 密钥是否适用于账户访问
- 在付费生成运行之前是否有足够的积分
请勿将此技能用于:
- - 文本到图像或图像到图像生成
- 图像工具
- 视频生成或视频工具
- 音乐生成
- 效果模板
这些属于其他 WeryAI 技能。
首选命令
sh
node {baseDir}/scripts/account.js balance
工作流程
- 1. 确认用户需要的是账户积分或 API 余额,而非生成。
- 确保 WERYAIAPIKEY 在运行时环境中可用。
- 运行 node {baseDir}/scripts/account.js balance。
- 返回 JSON 结果并清晰说明当前余额。
输出
该命令将 JSON 打印到标准输出。成功输出包括:
- - ok
- phase
- balance
- topUpRequired
- rechargeUrl
- guidance
失败输出可以包括:
完成定义
当以下情况时任务完成:
- - 余额端点成功返回,并向用户显示积分值,
- 如果余额为 0,则显示带有 https://www.weryai.com/api/pricing 的充值指导,
- 或者失败情况清晰解释了余额查询为何不起作用,例如缺少或无效的 WERYAIAPIKEY。
重新运行行为
- - balance 是只读的,可以安全地重新运行。
参考