Coder integration
Keep a Coder deployment's model picker truthful.
If this machine backs an openai-compat AI provider in a Coder deployment, vllm-helper can keep the deployment's model picker truthful: every profile gets a model-config entry, and only the loaded model is enabled.
Configure it
- Set
CODER_URLandCODER_AI_PROVIDER_IDin~/.config/vllm-helper/config.env. - Set
CODER_API_TOKENin~/.config/vllm-helper/secrets.env. - On a deployment with more than one organization, set
CODER_ORGANIZATIONinconfig.envto yours. It defaults todefault.
Sync failures never block a local switch: a deployment that cannot be reached is reported, and the model loads anyway.
What syncs when
Every switch updates the deployment. Removing a profile removes its entry.
vllm-helper coder-sync also takes verbs of its own:
vllm-helper coder-sync register <profile> # (re-)create the entry for one profile
vllm-helper coder-sync register-all # backfill entries for every profile
vllm-helper coder-sync prune # entries no local profile accounts for
register-alladds a disabled entry for any profile that does not have one yet; entries that exist are left as they are.prunereports entries this provider offers that no local profile can serve, and deletes them with--yes. An entry naming a model this machine cannot serve is one the picker offers and the server then refuses, so they are worth clearing.
Entries are matched by model, so a renamed profile, or a second machine serving the same model, adopts the existing entry instead of adding a second row for it.
If a model already has more than one entry, prune names it but never picks which to keep.
Entries belonging to other providers are never touched.
vllm-helper doctor verifies the configured URL and token against the API, and warns when the token is within two days of expiring.
Coder caps token lifetime, and an expired token only shows up as the picker no longer being updated.
Longer replies
Coder caps a reply at its own server-side default of 32,000 tokens.
Set CODER_MAX_OUTPUT_TOKENS in config.env to raise it for the models this machine serves.
Left unset, vllm-helper sends nothing, so whatever is configured in Coder stays.
One note on stopping
Stopping the server with vllm-helper stop does not disable the active model in Coder's picker — it stays enabled until the next switch.
Next steps
- Profiles — what gets an entry.
- CLI reference — every verb and flag.