Connect your tools to Lumen
Lumen exposes an OpenAI-compatible API at
https://lumen.computes.illinois.edu/v1. Create an API key on your
profile, then make it available to your tools as the
LUMEN_API_KEY environment variable:
export LUMEN_API_KEY="sk_…" # macOS / Linux
setx LUMEN_API_KEY "sk_…" # Windows (new terminals)
MODEL placeholder.
Log in to fill them in with the models you can access.
Configured with every model you can access. Uses {env:LUMEN_API_KEY} for the key.
- macOS / Linux:
~/.config/opencode/opencode.jsonc - Windows:
%USERPROFILE%\.config\opencode\opencode.jsonc - Or save
opencode.jsoncin a project's root directory for per-project settings.
opencode.jsonc as well as opencode.json; the generated file carries // comments, so it is named .jsonc.
A GitHub Copilot CLI provider file listing every text model you can access. The file holds the key
itself: replace YOUR_LUMEN_API_KEY with your API key and keep the file private.
- macOS / Linux:
~/.copilot/providers.json - Windows:
%USERPROFILE%\.copilot\providers.json
lumen.sh --copilot: it writes the same file with your real key, adds model aliases
and keeps the model list current on later runs.
Uses the ellmer package. The snippet's
credentials function reads your key from the LUMEN_API_KEY environment
variable — set it with usethis::edit_r_environ() (add
LUMEN_API_KEY="sk_…", save, then restart R), or export it before starting R.
Read the Connect guide for more detail.