opencode.json or opencode.jsonc. Use this guide to connect OpenCode to the hosted Lightsage MCP endpoint.
1
Get your Lightsage API key
Open the Lightsage dashboard, copy your API key, and store it as Do not put your API key in shared project config, screenshots, issue reports, or public repositories.
LIGHTSAGE_API_KEY:2
Add Lightsage MCP to OpenCode
Add Lightsage MCP to
opencode.json or opencode.jsonc:3
Verify OpenCode can use Lightsage
Run OpenCode and ask it to use the
lightsage MCP server. Use opencode mcp list if you need to inspect connection state.Then run a read-only prompt: