Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.14 KB

File metadata and controls

25 lines (17 loc) · 1.14 KB

Xcode26-openrouter-proxy

English | 中文

Overview

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.

Usage

Intsall

npm install -g @yuemingruoan/xcode26-openrouter-proxy

Start

export OPENROUTER_API_KEY="YOUR_API_KEY"
opentransapi

Q&A

Q: 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.