settings
Multi-Model Router
DevOpsterminal — aerostack cli
$
npx aerostack add aerostack/multi-model-routersmart_toy
Use with AI Assistants
MCPConnect Claude, Cursor, or any MCP-compatible client — then call this function by slug
① Add MCP Server
Add this once — access all Aerostack functions from your AI tool.
claude_desktop_config.json
{
"mcpServers": {
"aerostack": {
"url": "https://mcp.aerostack.dev",
"type": "http"
}
}
}② Call this function
Ask your AI to use the call_function tool with this slug:
call_function
call_function({
slug: "multi-model-router",
args: {}
})Multi-Model Router
Intelligent model routing — send requests to the best model for each task. Configure rules and compare models.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /chat | Auto-routed chat (picks best model) |
| POST | /compare | Same prompt to multiple models |
| POST | /rules | Set routing rules |
| GET | /rules | Get current rules |
| GET | /models | List available models |
| GET | /health | Status check |
Metadata
upgradeVersion1.0.0
gavelLicenseMIT
languageLanguagejavascript
cloudProvidercloudflare-worker
deployed_code
Build and publish your own functions
Write a TypeScript function, deploy it to the edge, and share it with thousands of developers — in minutes.