~/.magnitude/config.json. Declare the connection and the models you want Magnitude to show, then save the file. Magnitude applies valid changes automatically.
Configure a custom endpoint
Add an endpoint underproviders, preserving any other fields already in the file. This example configures OpenRouter with GLM 5.2:
Configuration shape
- use its API root as
baseUrl; do not include/chat/completions; - use each model’s exact API model ID as its key under
models; - declare the model’s actual context and output limits;
- reference secrets through environment variables instead of storing them in the file.