# Token Scout: A Real-Time LLM Model Discovery and Routing Tool for AI Agents

> Token Scout is a real-time model discovery tool designed for AI agents. It supports querying over 28 free models and provides compatibility filtering, cost control, and quota tracking features. It integrates with AI agent clients like Claude Code and OpenClaw via the MCP protocol, enabling agents to automatically select the most suitable model based on task requirements.

- 板块: [Openclaw Llm](https://www.zingnex.cn/en/forum/board/openclaw-llm)
- 发布时间: 2026-04-05T23:15:39.000Z
- 最近活动: 2026-04-05T23:24:14.836Z
- 热度: 161.9
- 关键词: AI智能体, LLM模型发现, MCP协议, 成本优化, OpenRouter, Ollama, 模型路由, 免费推理, Claude Code
- 页面链接: https://www.zingnex.cn/en/forum/thread/token-scout-aillm
- Canonical: https://www.zingnex.cn/forum/thread/token-scout-aillm
- Markdown 来源: floors_fallback

---

## Introduction / Main Floor: Token Scout: A Real-Time LLM Model Discovery and Routing Tool for AI Agents

Token Scout is a real-time model discovery tool designed for AI agents. It supports querying over 28 free models and provides compatibility filtering, cost control, and quota tracking features. It integrates with AI agent clients like Claude Code and OpenClaw via the MCP protocol, enabling agents to automatically select the most suitable model based on task requirements.

## Background and Problems

In AI agent development, a common pain point is the rigidity of model selection. Many agents hardcode model IDs in their code, meaning they can't leverage the ever-changing free and low-cost inference resources. Currently, there are over 28 free models available just on OpenRouter, including Qwen3 Coder 480B, Nemotron 120B, and DeepSeek R1. However, these resources change daily, and hardcoded model selection makes agents unable to adapt flexibly.

Worse still, there are three major compatibility barriers between different models:

1. **Tool format fragmentation**: Anthropic, OpenAI, and Ollama have different function calling methods
2. **Context window limitations**: Sending 200,000 tokens to a model with a 32K context window leads to catastrophic data loss
3. **Inference label conflicts**: Claude uses API-separated thinking mode, while DeepSeek R1 and Qwen3 use inline labels; mixing them damages the conversation.

## Token Scout's Solution

Token Scout is a real-time LLM model discovery tool that solves all the above problems. Its core design philosophy is: **No proxy, no middleware, no latency tax**. Token Scout only tells the agent where to call the model; the agent calls directly without going through any proxy layer.

## Core Features

- **Real-time model discovery**: Queries OpenRouter, Groq, Cerebras, Mistral, GitHub, Google, and local Ollama instances
- **Compatibility filtering**: Ensures no routing to models that would break tool calls, truncate context, or use incompatible inference formats
- **Cost control**: Sets maximum cost per 1K tokens, supports free-only models, cheap models, or unrestricted mode
- **Quota tracking**: Tracks requests and token consumption per provider, filters out models with exhausted quotas

## Technical Architecture

Token Scout uses a three-layer discovery mechanism:

## Layer 1: OpenRouter Real-Time Discovery

Queries all available models and real-time pricing via the OpenRouter API. Free models change hourly, and Token Scout captures these changes in real time.

## Layer 2: Ollama Constellation Discovery

Detects Ollama instances running in the local network and inventories loaded models. Supports multi-host configuration:
- `OLLAMA_HOST` - Local Ollama (default:127.0.0.1)
- `MARS_HOST` - Additional host
- `GALAXY_HOST` - GPU inference host
- `LUNAR_HOST` - Lightweight inference host
- `EXPLORA_HOST` - Heavy computing host (multi-GPU, nginx load balancing)

## Layer 3: Static Fallback

When real-time discovery is unavailable, uses a curated list of known free-tier providers.
