English | 中文
Apple has updated the AI features in Xcode 26, allowing calls to local or third-party AI services. However, OpenRouter does not seem to use the standard OpenAI API, which prevents Xcode from directly integrating with OpenRouter. This project provides a middleware layer that converts OpenRouter's API into a format supported by Xcode. This project is adapted from https://github.com/Kirow/OpenRouterXcodeProxy.git, but the original project is currently not functioning properly.
npm install -g @yuemingruoan/xcode26-openrouter-proxyexport OPENROUTER_API_KEY="YOUR_API_KEY"
opentransapiQ: Why can't the Claude-4-opus model be used?
A: Because OpenRouter defaults to using models provided by Anthropic, and there seems to be an issue with OpenRouter's routing here. This is not a problem with this project; you will get the same result if you access it directly on the OpenRouter official website. Currently, we can only wait for OpenRouter to fix the routing.