Định tuyến nhà cung cấp và mô hình

Cấu hình OpenRouter, Ollama Cloud, Codex OAuth, Anthropic, OpenAI, Ollama cục bộ, và tuyến mô hình dự phòng trong Libre Claw.

OpenRouter

bash OpenRouter thiết lập
libre-claw auth set-key openrouter
/model openrouter:z-ai/glm-5.2 --global

Kimi Code

bash Kimi Code thiết lập
libre-claw auth set-key moonshot
/model moonshot:k3 --global

Ollama Cloud

bash Ollama Cloud thiết lập
libre-claw auth set-key ollama
/model ollama:glm-5.2:cloud --global

Codex OAuth

bash Codex OAuth thiết lập
libre-claw auth codex-login
/model codex:gpt-5.6-sol --global

Anthropic

bash Anthropic thiết lập
libre-claw auth set-key anthropic
/model anthropic:claude-opus-5 --global

OpenAI

bash OpenAI thiết lập
libre-claw auth set-key openai
/model openai:gpt-5.5 --global

Local Ollama

bash Local Ollama thiết lập
ollama serve
/model ollama:qwen3.6:27b --global

Khe dự phòng

Dự phòng cho phép một lần chạy chuyển nhà cung cấp sau giới hạn tốc suất, thời gian chết, hoặc lỗi nhà cung cấp nhất thời.

bash Dự phòng
/fallback list
/fallback set 1 openrouter:deepseek/deepseek-v4-flash
/fallback set 2 ollama:minimax-m3:cloud
/fallback clear 2

Mặc định toàn cục

Dùng --global khi mặc định nên áp dụng qua TUI, daemon, Telegram, và lịch trình.

bash Mô hình toàn cục
/model openrouter:z-ai/glm-5.2 --global
/status
/models