Skip to main content
Use a remote MCP connection to make Glasser available to OpenCode. For the Skill and CLI workflow, use the OpenCode Skill guide.
1

Add the server configuration

Open or create ~/.config/opencode/opencode.json to make Glasser available across your local projects. Add glasser under mcp, keeping any existing servers:
To limit it to one project, use opencode.json in the project root instead.
2

Sign in

Run this in a terminal:
In the browser, sign in to Glasser, choose your Workspace, and select Allow. Create an account and Workspace if needed. Then run opencode mcp list and check that glasser is connected.
3

Check the connection

In a new session, ask:
The agent should use Glasser’s balance tool and return your balance. This check is free; a zero balance still means the connection works. If you need funds for a paid Run, add them in the Glasser console.

Try your first request

After you approve, the agent can retrieve the data and report the result and charge. See the OpenCode MCP documentation for configuration options and authentication help.