api-provider-status
API 供应商状态查询与模型切换助手。查询当前模型、供应商、用量、余额,列出可切换的模型。当用户询问"当前模型"、"用量"、"余额"、"切换模型"、"可用模型"时触发。支持通过浏览器自动化登录中转站后台查询余额。
Best use case
api-provider-status is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
API 供应商状态查询与模型切换助手。查询当前模型、供应商、用量、余额,列出可切换的模型。当用户询问"当前模型"、"用量"、"余额"、"切换模型"、"可用模型"时触发。支持通过浏览器自动化登录中转站后台查询余额。
Teams using api-provider-status should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/api-provider-status/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How api-provider-status Compares
| Feature / Agent | api-provider-status | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
API 供应商状态查询与模型切换助手。查询当前模型、供应商、用量、余额,列出可切换的模型。当用户询问"当前模型"、"用量"、"余额"、"切换模型"、"可用模型"时触发。支持通过浏览器自动化登录中转站后台查询余额。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# API Provider Status
查询 API 供应商状态、余额、用量,管理模型切换。
## 快速状态报告
当用户切换模型或询问状态时,生成报告:
```
📊 模型状态报告
━━━━━━━━━━━━━━━━━━━━━━━━
🧠 当前模型: {model_name}
🏢 供应商: {provider}
🔗 API 端点: {base_url}
📥 本次用量: {tokens_in}k in / {tokens_out} out
📚 上下文: {context}k / {max_context}k ({percent}%)
💰 余额状态: [需登录查询] 或 [已查询: $xx.xx]
🔄 可切换模型:
• opus45 → anapi/opus-4.5
• zai47 → zai/glm-4.7
• or52 → openrouter-vip/gpt-5.2
• codex52 → openrouter-vip/gpt-5.2-codex
• gemini → google/gemini-3-pro-preview
• sonnet → anthropic/claude-sonnet-4-5
• opus → anthropic/claude-opus-4-5
━━━━━━━━━━━━━━━━━━━━━━━━
```
## 供应商配置
从 `gateway config.get` 读取供应商配置:
| 供应商 | Base URL | 余额查询方式 |
|--------|----------|--------------|
| openrouter-vip | https://openrouter.vip/v1 | 浏览器登录 |
| zai | https://open.bigmodel.cn | 浏览器登录 |
| anapi | https://anapi.9w7.cn | 浏览器登录 |
## 余额查询流程
### 1. OpenRouter VIP
```
URL: https://openrouter.vip/dashboard
登录后查看 Credits 或 Balance
```
### 2. 智谱 ZAI
```
URL: https://open.bigmodel.cn/console/account
登录后查看账户余额
```
### 3. Anapi
```
URL: https://anapi.9w7.cn/key-query
步骤:
1. 打开 https://anapi.9w7.cn/key-query
2. 输入 API Key (sk-xxx)
3. 点击"查询"按钮
4. 获取:状态、套餐类型、时长、到期时间、今日请求额度等
```
## 浏览器自动化查询
当用户请求查询余额时:
1. 使用 `browser` 工具打开供应商后台
2. 检查登录状态
3. 如未登录,提示用户手动登录或提供凭据
4. 登录后导航到余额页面
5. 提取余额信息并报告
## 模型切换
使用 `session_status` 工具切换模型:
```
session_status(model="opus45") # 使用别名
session_status(model="anapi/opus-4.5") # 使用完整路径
session_status(model="default") # 重置为默认模型
```
## 自动通知(模型切换后)
当检测到模型切换时,自动生成简洁报告:
```
✅ 已切换到 {model_name}
🏢 供应商: {provider}
💡 切换其他: /model <alias>
```Related Skills
lisa-epic-status
Show detailed status for an epic
advanced-statusline
Implement AI-powered statusline with session tracking, plan detection, workspace emojis, and intelligent caching for Claude Code
analyzing-branch-status
Use when user wants detailed status report for single autonomy branch including iteration timeline and metrics progression
agentuity-cli-git-status
Show GitHub connection status for current project. Requires authentication
symfony:api-platform-state-providers
Use when symfony api platform state providers
api-provider-setup
添加和配置第三方 API 中转站供应商到 OpenClaw。当用户需要添加新的 API 供应商、配置中转站、设置自定义模型端点时使用此技能。支持 Anthropic 兼容和 OpenAI 兼容的 API 格式。
add-provider
Add a new AI provider to agentconfig.org's comparison system. Use when integrating a new coding assistant (e.g., Cursor, Claude Desktop, GitHub Copilot alternative) with proper type system updates, implementation data, UI components, tests, and documentation.
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
obsidian-daily
Manage Obsidian Daily Notes via obsidian-cli. Create and open daily notes, append entries (journals, logs, tasks, links), read past notes by date, and search vault content. Handles relative dates like "yesterday", "last Friday", "3 days ago".
obsidian-additions
Create supplementary materials attached to existing notes: experiments, meetings, reports, logs, conspectuses, practice sessions, annotations, AI outputs, links collections. Two-step process: (1) create aggregator space, (2) create concrete addition in base/additions/. INVOKE when user wants to attach any supplementary material to an existing note. Triggers: "addition", "create addition", "experiment", "meeting notes", "report", "conspectus", "log", "practice", "annotations", "links", "link collection", "аддишн", "конспект", "встреча", "отчёт", "эксперимент", "практика", "аннотации", "ссылки", "добавь к заметке".
observe
Query and manage Observe using the Observe CLI. Use when the user wants to run OPAL queries, list datasets, manage objects, or interact with their Observe tenant from the command line.
observability-review
AI agent that analyzes operational signals (metrics, logs, traces, alerts, SLO/SLI reports) from observability platforms (Prometheus, Datadog, New Relic, CloudWatch, Grafana, Elastic) and produces practical, risk-aware triage and recommendations. Use when reviewing system health, investigating performance issues, analyzing monitoring data, evaluating service reliability, or providing SRE analysis of operational metrics. Distinguishes between critical issues requiring action, items needing investigation, and informational observations requiring no action.