05
Coding Intelligence and Agent connections
Xcode’s current Coding Intelligence workflow supports built-in agents, ChatGPT, Claude, ACP-compatible external agents, and chat providers that expose the expected compatible API. The connection method differs by provider, so do not treat every agent as an interchangeable endpoint.
Open Xcode > Settings > Intelligence in the graphical session. Apple’s documented setup flow includes agent installation, account sign-in, ChatGPT activation, Claude account access, ACP agent addition, and external chat provider configuration. The Coding Intelligence configuration reference is the correct source when the beta changes labels or settings paths.
Built-in agents and account-based providers
For an agent shown in the Agents section:
- Select Get.
- Click Install.
- Open the account row.
- Complete browser authentication.
- Return to Xcode and confirm the account state.
- Start a new coding conversation with a test project.
Do not paste a real token into an article, shell history, issue tracker, or team chat. Use the provider’s supported sign-in method or a secret-management process approved by the team.
For ChatGPT in Xcode, enable the feature under the Chat section and complete the browser sign-in flow if an account is required. For Claude, use the documented account connection in its Xcode settings. The important operational point is that browser authentication must happen inside the graphical workflow; SSH cannot substitute for a browser approval dialog.
ACP agents
An external agent that supports the Agent Client Protocol can be added from Intelligence > Agents > Add an Agent. Confirm the agent’s documentation, installation path, account scope, and project access before enabling it.
An ACP connection is not automatically safe because it uses a standard protocol. It may still read project files, invoke tools, or interact with Xcode capabilities. Start with a disposable repository and the narrowest available permission set.
Apple’s agent extension documentation provides the relevant framework for extending and customizing agents. Use it to distinguish an installed extension from a provider that only supplies chat responses.
External chat providers
Xcode supports an internet-hosted provider or a provider hosted locally on the Mac. Apple’s documentation says that compatible providers need to support the Chat Completions API and the model-list and completion endpoints:
{provider URL}/v1/models
{provider URL}/v1/chat/completions
Do not insert a real endpoint, API key, or access token into a public configuration example. For a local provider, confirm which user owns the process, which port is listening, and whether the service is reachable only from localhost or from the network.
The same screen also exposes privacy information. Read it before adding a repository containing customer data, unreleased product code, signing scripts, or credentials.