Connect OpenCode to Studium
Add the Studium server to OpenCode, so that OpenCode plays your lessons through Studium's tools.
Before you start
- Read Connect your assistant: it explains the two ways to start the server
(
npx -y studium-mcp, ornodeon a file from a checkout or a release),/path/to/studium,BUNDLES_ROOTandLITELLM_BASE_URL. Thenpxform needs only Node; see Installation. - Install OpenCode and configure a provider following the OpenCode v2 documentation and its MCP page.
Do the task
For OpenCode v2, merge this into
opencode.jsoncat the project root. Withnpx(no checkout):{ "mcp": { "servers": { "studium": { "type": "local", "command": ["npx", "-y", "studium-mcp"], "environment": { "LITELLM_BASE_URL": "" } } } } }From a checkout, use
"command": ["node", "/path/to/studium/apps/studium-vscode/dist/lesson-mcp.cjs"].Run
opencode mcp listto see the connection.
What you get
opencode mcp list shows studium. To prove the connection, run the check in
Connect your assistant. The complete example is
opencode-v2.json.
Limits
- Older OpenCode versions use another configuration shape.
- An open model offered by your provider is neither free, local nor equal in quality by default.