360 Secure SkillHub
360 安全技能中心

ccr-models

该 Skill 调用本地 claude-code-router 的模型列表接口,筛选模型 ID,并按 Claude 与 Gateway 分组打印;需要路由器已启动,连接失败时提示使用 ccr start。不包含路由器本体或模型推理能力。

分类:搜索
npow
热度 0.00
最近更新 2026-11-09 11:37:05

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add npow/claude-skills/ccr-models
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
ccr-models
description
Use when the user asks "what models are available", "list models", "show models", or wants to see which LLM models are accessible via claude-code-router.
category
tool
capabilities
["backoff-retry"]
input_types
["code-path"]
output_types
["code","data"]
complexity
moderate
cost_profile
low
maturity
beta
metadata_source
inferred

Prerequisites

Requires claude-code-router running (ccr start).

Instructions

Run this command and display the output to the user:

curl -s http://127.0.0.1:3456/v1/models -H 'x-api-key: test' | python3 -c "
import sys, json
d = json.load(sys.stdin)
models = [m for m in d['data'] if ',' in m['id']]
claude = [m for m in models if m['id'].startswith('claude,')]
gateway = [m for m in models if m['id'].startswith('gateway,')]
print('CLAUDE (claudecode proxy, no rate limits):')
for m in claude: print(f'  {m[\"id\"]}')
print()
print('GATEWAY (Model Gateway - OpenAI + Gemini):')
for m in gateway: print(f'  {m[\"id\"]}')
"

See _shared/ccr-shortcuts.md for the model shortcut table.

If the curl fails (connection refused), tell the user to start the router with ccr start.