Model catalog
Only models listed in the effective catalog can be selected. The build ships a
small starter catalog: deepseek, openai, gemini, and ollama. The
anthropic protocol is built in but has no starter entry.
The maintained catalog lives in its own repository, CrystalCode.Defaults. It holds named endpoints, protocols, model ids, and per-model metadata: context windows, output caps, thinking efforts, selectable context budgets, and image input. Install it when you want more than the starter entries.
It is a file you copy, not a service the agent queries. Fetching a provider’s model list is not available in this build.
Install the catalog
Section titled “Install the catalog”Crystal Code reads providers.json from the Crystal home: ~/.crystal, or the
directory named by CRYSTAL_HOME. On Windows the default home is
%USERPROFILE%\.crystal.
mkdir -p ~/.crystalcurl --fail --location --show-error \ https://raw.githubusercontent.com/YELANDAOKONG/CrystalCode.Defaults/master/providers.json \ --output ~/.crystal/providers.jsonOn Windows PowerShell:
$crystalHome = "$env:USERPROFILE\.crystal"New-Item -ItemType Directory -Force $crystalHome | Out-NullInvoke-WebRequest ` -Uri https://raw.githubusercontent.com/YELANDAOKONG/CrystalCode.Defaults/master/providers.json ` -OutFile "$crystalHome\providers.json"The download replaces the file at that path. Back up or merge a
providers.json you already customized before you overwrite it. To keep your
own entries separate, put them in a file under ~/.crystal/providers/ instead;
see Split provider files. A
provider name may be defined in only one file.
Add keys and restart
Section titled “Add keys and restart”The catalog carries no keys. Write each one in ~/.crystal/credentials.json
under the provider name, or export <PROVIDER>_API_KEY for the process that
starts the agent. A provider entry may also name its own variable with
apiKeyEnvironment. The full lookup order is in
Credentials.
Provider definitions are read at startup. Restart, then select a model with
/model, or start with --provider and --model.
What installing it changes
Section titled “What installing it changes”| Before | After |
|---|---|
| Only the starter catalog is selectable | The catalog in the file overlays the built-in one |
config.json.providers is read when no provider file exists |
The legacy field is ignored once any provider file exists |
Crystal Code never rewrites a provider file, so comments and trailing commas in it survive. The field reference for provider and model entries is in Configuration.
Which providers and models the catalog lists, and which services are intentionally absent, are recorded in that repository. It changes when a provider adds, retires, or changes a model, so re-download it when you want those changes.