Free Models for OpenClaw and other Agents
by @qidu
Discover and select free or low-cost AI models from OpenRouter optimized for agents with filtering by price, context, provider, and capabilities.
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,
});
clawhub install free-models