Set the following environment variables (same ones used by aider):
export OPENAI_API_KEY=sk-rc-your-api-key-here
export OPENAI_API_BASE=https://chat.catholic-u.ai/api/v1
Add these to your shell profile (e.g., ~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish) to persist them.
The opencode.json in this project configures a custom OpenAI-compatible provider with two models:
RedHatAI/Qwen3-Coder-Next-NVFP4) - set as defaultSehyo/Qwen3.5-35B-A3B-NVFP4)opencode
This uses the model specified in the "model" field of opencode.json (currently custom/RedHatAI/Qwen3-Coder-Next-NVFP4).
opencode --model custom/RedHatAI/Qwen3-Coder-Next-NVFP4
opencode --model custom/Sehyo/Qwen3.5-35B-A3B-NVFP4
Edit the "model" field in opencode.json:
"model": "custom/Sehyo/Qwen3.5-35B-A3B-NVFP4"
These models can also be used with aider:
aider --model openai/RedHatAI/Qwen3-Coder-Next-NVFP4
aider --model openai/Sehyo/Qwen3.5-35B-A3B-NVFP4
echo $OPENAI_API_KEY{env:VARIABLE} syntax doesn't work, hardcode the values directly in opencode.json under options.baseURL and options.apiKey