Crush

Add FluxRouter as an OpenAI-compatible provider in crush.json at the /v1 base URL.

Crush talks to FluxRouter through an OpenAI-compatible provider, which uses the /v1 endpoint. Your Flux key is the only credential it needs.

Manual config

Add a flux block under providers in crush.json:

json
{
  "providers": {
    "flux": {
      "type": "openai-compat",
      "base_url": "https://api.fluxrouter.ai/v1",
      "api_key": "$FLUX_API_KEY"
    }
  }
}

Then export your Flux key:

bash
export FLUX_API_KEY=sk-YOUR-FLUX-KEY

Test it

Run crush and send a prompt. A reply confirms the connection. Check your FluxRouter dashboard to confirm the request landed.

Notes

flux-auto is the default and routes each request for you. If you want to pin a single lane, set the model to flux-fast, flux-standard, or flux-reasoning.

Crush executes any value wrapped in $(...) in crush.json as a shell command. Use a plain $FLUX_API_KEY reference for the key, never $(...).