Deterministic decision-ranking API with HTTP 402 payments and outcome credits.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install which-llm或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install which-llm⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/which-llm/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Decision Economic Optimizer description: Deterministic decision-ranking API with HTTP 402 payments and outcome credits. version: 0.1.0 homepage: https://which-llm.com credentials_required: true primary_credential: WALLET_CREDENTIALS sensitivity: high always_on: false disable_model_invocation: false install_mechanism: instruction_only writes_to_disk_on_install: false downloads_code_on_install: false ---
Use this skill when you need a deterministic recommendation for which LLM to use under explicit constraints such as cost and quality.
This skill is for calling the Which‑LLM API. It does not run an LLM itself. For paid requests, the AI bot needs access to a crypto wallet.
https://api.which-llm.comPOST /decision/optimizePOST /decision/outcomeGET /capabilities, GET /pricing, GET /statusUSDCPrimary credential: WALLET_CREDENTIALSInstall mechanism: instruction-onlyWrites to disk on install: falseDownloads code on install: falseBefore using this skill, have the following ready:
https://api.which-llm.comPOST /decision/optimize to get a recommended model and fallback planPOST /decision/outcome to report real execution resultsalways_on: false: the skill is not force-installed and does not run continuouslydisable_model_invocation: false: an agent may invoke it on demandPaid calls may use HTTP 402 Payment Required.
High-level flow:
POST /decision/optimize402, inspect fields such as required_amount, accepts, and payment_referenceThis skill documents the API behavior and payment-related response handling. The wallet requirement is limited to paid requests.
GET /capabilitiesUse this to discover supported constraints, decision types, and payment behavior.
GET /pricingUse this to check current pricing and supported chains before making a paid request.
GET /statusUse this for service-health checks.
POST /decision/optimizeThis is the main endpoint. Send the goal and constraints, then receive:
recommended_modelfallback_planTypical request shape:
{
"goal": "Summarize customer feedback emails into a 5-bullet executive summary",
"constraints": {
"min_quality_score": 0.8,
"max_cost_usd": 0.01
},
"workload": {
"input_tokens": 1200,
"output_tokens": 300,
"requests": 1
},
"task_type": "summarize"
}
If payment is required, the API may first return 402 with fields such as:
required_amountcurrencyaccepts[].chainaccepts[].pay_topayment_referenceRetry the request after external payment handling with:
X-Payment-ChainX-Payment-TxX-PayerX-Payment-AmountX-Payment-AssetIf you have a valid credit token, also send:
X-Credit-TokenPOST /decision/outcomeUse this after running the recommended model. Report what actually happened so the system can issue a credit token for future use.
Typical request shape:
{
"decision_id": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
"option_used": "openai/gpt-4o-mini",
"actual_cost": 0.008,
"actual_latency": 650,
"quality_score": 0.86,
"success": true
}
Typical response includes:
statusdecision_idoutcome_hashrefund_credit.credit_tokenGET /capabilities or GET /pricing first if you need to discover current payment behaviorPOST /decision/optimize only when you actually need model selection helpPOST /decision/outcome to earn creditsPAYMENT_REQUIREDThe endpoint needs payment first. Read the 402 response, satisfy the payment requirement externally, then retry with payment proof headers if available.
PAYMENT_INVALIDCheck:
NO_FEASIBLE_OPTIONSYour cost and quality constraints are too strict for the available models. Relax the budget or quality threshold and retry.
RATE_LIMIT_EXCEEDEDBack off and retry later. Use an idempotency key for safe retries.
安装 Which LLM? Deterministic model selection for agents 后,可以对 AI 说这些话来触发它
Help me get started with Which LLM? Deterministic model selection for agents
Explains what Which LLM? Deterministic model selection for agents does, walks through the setup, and runs a quick demo based on your current project
Use Which LLM? Deterministic model selection for agents to deterministic decision-ranking API with HTTP 402 payments and outco...
Invokes Which LLM? Deterministic model selection for agents with the right parameters and returns the result directly in the conversation
What can I do with Which LLM? Deterministic model selection for agents in my developer & devops workflow?
将技能文件夹放到 ~/.claude/skills/which-llm/ 目录(个人级,所有项目可用),或 .claude/skills/which-llm/(项目级)。重启 AI 客户端后,用 /which-llm 主动调用,或让 AI 根据上下文自动发现并使用。
Which LLM? Deterministic model selection for agents 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Which LLM? Deterministic model selection for agents 可免费安装使用。请查阅仓库了解许可证信息。
Deterministic decision-ranking API with HTTP 402 payments and outcome credits.
Lists the top use cases for Which LLM? Deterministic model selection for agents, with example commands for each scenario
Automate my developer & devops tasks using Which LLM? Deterministic model selection for agents
Identifies repetitive steps in your workflow and sets up Which LLM? Deterministic model selection for agents to handle them automatically
Which LLM? Deterministic model selection for agents 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。