Connect your tools to Lumen
Lumen exposes an OpenAI-compatible API at
https://lumen.ncsa.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)
The examples below use a generic
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.
Where to put this file:
- macOS / Linux:
~/.config/opencode/opencode.json - Windows:
%USERPROFILE%\.config\opencode\opencode.json - Or save
opencode.jsonin a project's root directory for per-project settings.
Read the Connect guide for more detail.