SecureAuth AI Gateway
IntegrationsAgents

OpenCode

Connect OpenCode to SecureAuth AI Gateway

Open-source AI coding assistant in the terminal.

Setup

  1. Add the MCP server — Add the following to opencode.json in your project (or ~/.config/opencode/opencode.json for global):
{
  "mcp": {
    "secureauth": {
      "type": "remote",
      "url": "https://your-gateway-url/gateway/mcp"
    }
  }
}
  1. Authenticate
opencode mcp auth secureauth
  1. Start OpenCode
opencode

The agent is auto-registered on first connect.

On this page