← 返回 Skills 市场
qidu

Free Models for OpenClaw and other Agents

作者 christo · GitHub ↗ · v0.3.0 · MIT-0
cross-platform ⚠ suspicious
540
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install free-models-for-openclaw
功能描述
Discover, filter, and select free or low-cost AI models from OpenRouter for OpenClaw and other agent workflows based on context, price, and capabilities.
使用说明 (SKILL.md)

name: free-models alias:

  • free-models-for-openclaw
  • free-models-of-openclaw
  • free-models-for-agents description: Discover free/cheap models from OpenRouter for AI agents (e.g. OpenClaw). Includes model discovery, filtering, and easy model selection for openclaw and other agent workflows. metadata: version: 0.2.0 homepage: https://openrouter.ai

free-models-for-agent

Discover free, cheap, and high-value models from OpenRouter for your OpenClaw and other AI agents.

Usage

Find free models

import { discoverFreeModels } from './scripts/free-models.js';

const models = await discoverFreeModels();
// Returns models with $0.00 or very low pricing

Filter by criteria

import { filterModels } from './scripts/free-models.js';

// High context + low price (best for tool calling)
const models = await filterModels({
  minContext: 200000,      // 200k+ tokens
  maxPromptPrice: 0.00001  // Under $0.00001/1M tokens
});

// Specific provider only
const openaiModels = await filterModels({
  author: 'openai',
  minContext: 100000
});

// Name contains filter
const flashModels = await filterModels({
  author: 'google',
  nameContains: 'flash'
});

// All filters combined
const cheapGoogle = await filterModels({
  author: 'google',
  minContext: 500000,
  maxPromptPrice: 0.000001
});

Get best free model for agent

import { getBestFreeModel } from './scripts/free-models.js';

// Best overall (highest context)
const bestModel = await getBestFreeModel();

// Best for reasoning tasks
const reasoningModel = await getBestFreeModel({
  needReasoning: true,
});

// Best for tool calling (high context is key)
const toolModel = await getBestFreeModel({
  preferReasoning: true,
  maxPrice: 0.00001
});

// Best for vision tasks
const visionModel = await getBestFreeModel({
  needVision: true,
});

CLI Usage

User should register and get a access key from https://openrouter.ai/settings/keys Openclaw should export the key (or string with a prefix "sk-or-") as the value of Environment Variable OPENROUTER_API_KEY before calling the cli.

export OPENROUTER_API_KEY="sk-or-v1-..."
node scripts/free-models.js

Common Free Models

Model Context Price Best For
x-ai/grok-4.1-fast 2M $0.0000002/1M Tool calling, agents
openai/gpt-5.4 1M $0.0000025/1M General purpose
google/gemini-3.1-flash-lite 1M $0.00000025/1M Fast/cheap tasks
google/gemini-2.5-flash 1M $0.0000003/1M Tool calling
qwen/qwen3.5-flash-02-23 1M $0.0000001/1M Budget option

API Reference

fetchAllModels()

Returns all available models from OpenRouter.

discoverFreeModels()

Filters and returns only models with $0 or very low pricing (\x3C $0.0001/1M).

filterModels(options)

Filters models by:

  • maxPromptPrice: Maximum prompt price per 1M tokens
  • minContext: Minimum context window (tokens)
  • author or provider: Model provider (e.g., 'anthropic', 'openai', 'google', 'deepseek', 'minimax', 'kimi', 'z.ai')
  • maxCompletionPrice: Maximum completion price per 1M tokens
  • nameContains: Filter by name substring

getBestFreeModel(options)

Returns the best free model based on:

  • needReasoning: Requires strong reasoning capability
  • preferReasoning: Prefers models with reasoning
  • needVision: Requires vision capabilities
  • maxPrice: Maximum price threshold

getModelsByAuthor(author)

Returns all models from a specific provider.

getCheapestModels(limit)

Returns the cheapest models (default: 10).

Resources

安全使用建议
This skill appears to do what it says (query OpenRouter and filter models), but there are a few red flags to resolve before trusting it: 1) The registry metadata does not list OPENROUTER_API_KEY even though SKILL.md and the CLI tell you to export it — the registry should declare this env var. 2) The runtime checks for OPENROUTER_API_KEY but never attaches it to the fetch request; that is likely a bug (or the endpoint is public). Ask the author to either (a) update the registry metadata to list OPENROUTER_API_KEY as the primary credential and/or (b) fix the code to send the key to OpenRouter as required (for example add an Authorization header or the correct header parameter). If you must run it now, do so in an isolated environment and inspect/modify scripts/free-models.js to ensure it sends credentials only to api.openrouter.ai and behaves as expected. If you want higher assurance, request a corrected manifest (declare OPENROUTER_API_KEY) and a code update that shows how the key is used (e.g., Authorization: Bearer).
功能分析
Type: OpenClaw Skill Name: free-models-for-openclaw Version: 0.3.0 The skill bundle provides utility functions to fetch and filter model pricing information from the official OpenRouter API. While the documentation in SKILL.md references non-existent model versions (e.g., GPT-5.4), the underlying code in scripts/free-models.js is functional, lacks dependencies, and contains no logic for data exfiltration, unauthorized execution, or persistence.
能力评估
Purpose & Capability
The skill claims to discover free/cheap models from OpenRouter and the code indeed queries OpenRouter's models endpoint and filters results — this matches the stated purpose. However, registry metadata declares no required environment variables or primary credential while SKILL.md and the code require an OPENROUTER_API_KEY; that metadata omission is inconsistent.
Instruction Scope
SKILL.md instructs users to export OPENROUTER_API_KEY and run the CLI. The runtime file enforces that the env var is set (it exits if not), but the fetch call to https://openrouter.ai/api/v1/models does not include the API key in headers or query parameters — either the key is unnecessary for that endpoint or the code is buggy. The instructions therefore reference an env var that is not declared in the registry and not actually used for requests, which is a scope/accuracy problem that could mislead users.
Install Mechanism
There is no install spec (instruction-only skill with included source files). No third-party downloads or package installs are required and there are no dependencies — this is low-risk from an installation/remote-code-fetch perspective.
Credentials
Requiring a single OPENROUTER_API_KEY is proportionate to the stated purpose (accessing OpenRouter). But the registry metadata fails to declare this required env var or primary credential, and the code checks for the key but does not use it when making API calls — a mismatch that should be fixed or clarified. There are no additional unrelated secrets requested.
Persistence & Privilege
The skill does not request persistent/always-on presence, does not modify other skills or system settings, and does not request access to config paths. Default invocation and user-invocable settings are normal.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install free-models-for-openclaw
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /free-models-for-openclaw 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.3.0
free-models-for-openclaw v0.3.0 - Updated documentation with detailed usage examples and API references for discovering, filtering, and selecting models. - Added clear instructions for CLI usage and API key setup. - Provided common free/cheap model recommendations with best use cases. - Clarified filtering options and advanced model selection methods. - Improved skill description and metadata to reflect features for OpenClaw and agent workflows.
元数据
Slug free-models-for-openclaw
版本 0.3.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Free Models for OpenClaw and other Agents 是什么?

Discover, filter, and select free or low-cost AI models from OpenRouter for OpenClaw and other agent workflows based on context, price, and capabilities. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 540 次。

如何安装 Free Models for OpenClaw and other Agents?

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

Free Models for OpenClaw and other Agents 是免费的吗?

是的,Free Models for OpenClaw and other Agents 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Free Models for OpenClaw and other Agents 支持哪些平台?

Free Models for OpenClaw and other Agents 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Free Models for OpenClaw and other Agents?

由 christo(@qidu)开发并维护,当前版本 v0.3.0。

💬 留言讨论