Using OpenCode with NanoGPT
A quick guide to set up NanoGPT inside OpenCode (CLI, VS Code extension, or desktop app).Setup Instructions
- Generate an API key at nano-gpt.com/api.
- Add
NANOGPT_API_KEYto your.envor shell environment. - Create or update
opencode.jsonwith a NanoGPT provider block:
- Restart OpenCode and run
/connectso NanoGPT shows up in the provider list.
NanoGPT/<model> list.