Open Xcode. Go to Settings → Intelligence. Here, you can connect to ChatGPT or Claude. Click the service you want. Log in.