Overview
A small wrapper that runs Claude Code as an agent inside Xcode 27 with your own API key or gateway. Xcode talks to agents over ACP, and an adapter (claude-agent-acp) bridges ACP to Claude Code. The README names two problems with using that adapter alone: Xcode starts the agent from the GUI, so there is no shell environment to hold a key or gateway URL, and the adapter hardcodes the setting sources, so your global ~/.claude/settings.json is applied to Xcode too. The script claude-acp.sh fixes both by running in two roles. As the agent, it loads config.json into the environment and starts the adapter. As claude, it swaps the setting sources for project,local, adds your MCP servers and starts the real claude. Both steps use exec, so no wrapper process stays alive. config.json is optional, and without it claude uses its own login. It can set an Anthropic API key, a gateway base URL with a bearer token or x-api-key, a default model, alias mappings for gateways that name models differently, and extra MCP servers next to the ones Xcode provides. The README tells you to chmod 600 the config file, because it holds your key. setup.sh installs node, claude and the adapter, then prints the path to paste into Xcode. Logs go to .runtime/agent.log. macOS only. Licence MIT. 44 stars on GitHub (created 2026-11-09).
Quick summary. This page gives a short overview of this tool. For installation steps, full documentation and the latest changes, read the official source; details such as features and versions can change there first.
Example prompts example
Illustrative examples written by FoxaMind's AI Trends Scout — not quoted from the source.
- In Xcode, open Settings, Intelligence, Add an Agent, and set Executable to the claude-acp.sh path that setup.sh printed.
- Use absolute paths for MCP servers in config.json, since Xcode does not start the agent with your shell's PATH.