Xcode
Route Xcode's Coding Assistant through Edgee to cut token costs and gain full observability over every session.
Xcode's Coding Assistant runs a Claude agent under the hood, and reads its endpoint and headers from a settings file. Point it at Edgee to reduce token costs with lossless compression and gain full observability over every session.
Manual setup
Get your coding-agent key
Manual setup uses the key of your enrolled Claude Code agent, not a standard API key created for LLM Router applications.
For Xcode, enroll Claude Code, the agent used by its Coding Assistant.
- Open the Edgee Console and select your organization.
- In the header, click Set up coding agent or +, select Claude Code, and click Enroll. If your agent is already enrolled, use its existing icon.
- Click the agent's icon, then Advanced settings → Advanced.
- Under Edgee API key (for manual setup), click Reveal key, then the copy icon.
Use this key wherever the configuration below shows <YOUR_CODING_AGENT_KEY>.
Configure Xcode
The Coding Assistant reads ANTHROPIC_BASE_URL and ANTHROPIC_CUSTOM_HEADERS from its agent settings file. Create or edit ~/Library/Developer/Xcode/CodingAssistant/ClaudeAgentConfig/settings.json:
{
"env": {
"ANTHROPIC_BASE_URL": "https://edgee.io",
"ANTHROPIC_CUSTOM_HEADERS": "x-edgee-api-key:<YOUR_CODING_AGENT_KEY>"
}
}
Restart Xcode for the change to take effect. The Coding Assistant now routes through Edgee, and token compression is enabled automatically.
Next Steps
- Learn more about the Edgee CLI and its launch commands
- Set up observability to monitor usage and costs
- Explore routing strategies for resilient routing
Verify the connection
Send one request from the configured client, then open Logs in the same Edgee organization. Check the served model, provider, and key. For a CLI-launched coding agent, also inspect its session report.
If the request is missing, check that you launched through Edgee or saved the client’s gateway URL and coding-agent key. If it appears with an error, inspect the error before changing settings. See Troubleshooting and Gateway errors.