← 返回 Skills 市场
xuxuclassmate

Free AI API Discovery and Routing

作者 XuXu · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
94
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install free-api-discovery
功能描述
Discover which free or low-cost AI APIs are reachable from the current environment, verify them safely, and recommend a task-to-provider routing plan.
使用说明 (SKILL.md)

Free AI API Discovery and Routing

When to use

  • You need to find which AI APIs are reachable from the current environment.
  • You want a low-cost fallback when a preferred provider is unavailable.
  • You need a simple routing recommendation for chat, code, speech, or multimodal tasks.

Workflow

  1. Check network reachability. Probe candidate endpoints with a short timeout and record whether the host is reachable.
  2. Verify credentials only after approval. Ask for the minimum key needed and avoid printing full secrets in logs.
  3. Test one capability at a time. Confirm chat, model listing, speech, or image endpoints separately.
  4. Recommend routing. Map each task type to the lowest-cost reliable provider that actually worked.

Example reachability probe

import socket
import ssl
import urllib.error
import urllib.request

socket.setdefaulttimeout(8)
ctx = ssl.create_default_context()

services = {
    "Groq": "https://api.groq.com",
    "OpenRouter": "https://openrouter.ai/api/v1",
    "DeepSeek": "https://api.deepseek.com",
    "Mistral": "https://api.mistral.ai/v1",
}

for name, url in services.items():
    try:
        req = urllib.request.Request(url)
        with urllib.request.urlopen(req, context=ctx, timeout=6) as resp:
            print(f"{name}: HTTP {resp.status}")
    except urllib.error.HTTPError as exc:
        print(f"{name}: HTTP {exc.code} (reachable, auth may be required)")
    except Exception as exc:
        print(f"{name}: not reachable ({exc})")

Recommended output

  • Reachable providers
  • Providers that need valid credentials
  • Best provider by task type
  • Cost or quota notes
  • Risks or missing coverage

Guardrails

  • Do not store API keys unless the user explicitly approves it.
  • Mask secrets in notes and logs.
  • Keep routing recommendations based on verified results, not assumptions.
  • Treat provider availability and quotas as time-sensitive and re-check when needed.
安全使用建议
This skill appears to do what it says: probe reachable AI provider endpoints and recommend routing. Before using it, consider: (1) run probes from an environment where outgoing network scans are allowed (corporate or sensitive networks may block or audit such traffic); (2) never paste long-lived or high-privilege API keys into the agent unless you explicitly consent and understand how/where they will be used and stored; (3) confirm where probe results and logs will be saved or transmitted (avoid automatic upload to third-party endpoints); (4) restrict testing to a curated list of known/trusted providers and avoid probing arbitrary or internal URLs; and (5) if you need stricter guarantees, run the example probe code locally in an isolated environment and inspect outputs/logging behavior before handing credentials to any agent.
功能分析
Type: OpenClaw Skill Name: free-api-discovery Version: 1.0.1 The skill bundle provides a legitimate workflow for discovering and testing the reachability of common AI API providers like Groq, OpenRouter, and DeepSeek. The Python code in SKILL.md uses standard libraries for network probing and includes explicit guardrails to ensure API keys are handled securely, masked in logs, and only requested with user approval.
能力评估
Purpose & Capability
The name and description match the instructions: the SKILL.md explains probing endpoints, capability checks, and routing recommendations. No unrelated environment variables, binaries, or installs are requested.
Instruction Scope
Instructions stay within discovery/routing scope and include sensible guardrails (ask before verifying credentials, mask secrets, don't store keys without approval). However, they are somewhat vague about where probe results are recorded/transmitted and how approval is obtained; that ambiguity could lead to accidental logging or transmission of sensitive data if not implemented carefully. Also, network probing may be disallowed or sensitive in some environments.
Install Mechanism
Instruction-only skill with no install spec or code files — nothing is written to disk or fetched during install, which limits installation risk.
Credentials
The skill declares no required env vars, credentials, or config paths. It does instruct asking the user for keys if needed, which is appropriate for verifying provider access; the guardrails about masking and explicit storage approval are present.
Persistence & Privilege
No always:true, no install-time persistence requested, and the SKILL.md explicitly warns against storing API keys without explicit approval. The skill does not request elevated or cross-skill configuration changes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install free-api-discovery
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /free-api-discovery 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Translate the skill to English and replace dated environment-specific notes with a reusable discovery workflow.
v1.0.0
Initial publish: 免费大模型API发现、测试与智能路由方案
元数据
Slug free-api-discovery
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Free AI API Discovery and Routing 是什么?

Discover which free or low-cost AI APIs are reachable from the current environment, verify them safely, and recommend a task-to-provider routing plan. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。

如何安装 Free AI API Discovery and Routing?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install free-api-discovery」即可一键安装,无需额外配置。

Free AI API Discovery and Routing 是免费的吗?

是的,Free AI API Discovery and Routing 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Free AI API Discovery and Routing 支持哪些平台?

Free AI API Discovery and Routing 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Free AI API Discovery and Routing?

由 XuXu(@xuxuclassmate)开发并维护,当前版本 v1.0.1。

💬 留言讨论