- The CLI supports two providers: OpenRouter and HybridAI.
- Provider selection precedence: HybridAI if
HYBRIDAI_API_KEYis set; otherwise OpenRouter. /modelshows a selectable list of providers when both API keys are present.- Always run
cargo testafter making code changes. /chatbotshows a selectable list of HybridAI chatbots when HybridAI is active and persists the selection to~/.config/hybridai/nano_config.json.- Input history is navigable with up/down arrows and stored in
~/.hybridai/history.jsonl.
- OpenRouter:
https://openrouter.ai/api/v1/chat/completionswithmessages,tools,tool_choice. - HybridAI:
{HYBRIDAI_BASE_URL}/v1/chat/completionswithmessages,tools,tool_choice,enable_rag, andchatbot_id.- Chatbot list:
GET {HYBRIDAI_BASE_URL}/api/v1/bot-management/bots.
- Chatbot list:
- HybridAI tool calling depends on the local endpoint honoring the OpenAI-style tools schema.
debug.logcaptures request/response payloads for troubleshooting.