OpenCode
Configure Namera as a local MCP server in OpenCode.
Install Namera and complete
account setup on the machine
that will run the client. Make sure its process can find both namera and Node.js.
Add Namera
Add this to your project's opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"namera": {
"type": "local",
"command": ["namera", "mcp", "serve", "--profile", "opencode"],
"enabled": true
}
}
}OpenCode uses mcp and a single command array, not a separate args field.
See OpenCode's MCP configuration.
Merge the entry with existing settings. If needed, replace the first command array element with Namera's absolute path.
Authorize
namera mcp login --profile opencode
namera mcp status --profile opencodeApprove the connection in your browser and select the active session keys it may use. Run these commands as the same OS user that runs the client. Namera saves the connection in your OS keyring; no API key belongs in the client config.
Use Namera
Start OpenCode from the project containing the configuration. Make sure the selected agent's tool settings do not disable Namera's tools, then open a new conversation.
Ask in a new conversation:
Use Namera to list my accounts and session keys. Summarize their networks and permissions. Do not submit a transaction or sign a message.
Allow the read tools if prompted. If Namera requests browser authorization, complete it and retry the read request. An empty result means no resources were returned for this connection; do not ask the agent to invent account details.
Keep tool confirmations enabled for execution and signing where supported. See Permissions and Limits before granting broader access.
Disconnect
namera mcp logout --profile opencodeAlso remove or disable the namera server in the client to stop it launching.
Logout revokes the MCP connection without deleting imported keys. If revocation
fails, revoke the connection in the dashboard as instructed by the error.