Client setup
Crush setup
Crush supports custom OpenAI-compatible providers. Export the key first:
export LUMOSWITCH_API_KEY="your-lumoswitch-access-key"Edit ~/.config/crush/crush.json:
{
"$schema": "https://charm.land/crush.json",
"providers": {
"lumoswitch": {
"type": "openai-compat",
"base_url": "https://api.lumoswitch.com/v1",
"api_key": "$LUMOSWITCH_API_KEY",
"models": [
{
"id": "your-client-facing-model-name",
"name": "Lumoswitch model",
"context_window": 128000,
"default_max_tokens": 8192
}
]
}
}
}Replace context and output limits with the real model values. Use openai-compat for the Lumoswitch endpoint; openai is intended for direct OpenAI behavior.
Crush expands environment values and may execute shell expressions in
crush.json. Do not trust repository configuration you have not reviewed.
Reference: Crush custom providers documentation.