Skip to content

Gemini CLI

Connect Open Referral to Gemini CLI. The most reliable path today uses a personal Open Referral token via an HTTP header (it bypasses Gemini CLI's OAuth auto-discovery).

Info

🚧 Screenshots coming soon.

Prerequisites

Connect Open Referral

  1. Open your Gemini CLI config file: ~/.gemini/settings.json.
  2. Add Open Referral under mcpServers:
{
  "mcpServers": {
    "open-referral": {
      "httpUrl": "https://mcp.openreferral.io",
      "headers": {
        "Authorization": "Bearer ${OPEN_REFERRAL_TOKEN}"
      }
    }
  }
}
  1. Put your token in the OPEN_REFERRAL_TOKEN environment variable (do not paste it directly in the file).
  2. Restart Gemini CLI and run /mcp list — open-referral should show as connected.

Try it

Troubleshooting

Cannot perform dynamic registration without issuer — this is Gemini CLI's OAuth auto-discovery failing. Use the Bearer-token method above instead of /mcp auth.