I’m using NewAPI as the aggregated API gateway, where I’ve added a channel for Claude Opus 4.5 deployed on Databricks via Azure. In Cursor, I configured it using the OpenAI-compatible setup with a custom API key. However, when in Agent Mode, the model can only generate automatic Q&A responses—its modifications fail to be applied to the code files.
Notably, under the exact same configuration, gemini 3 works flawlessly in Agent Mode (able to apply code changes as expected).
Could you help investigate why this compatibility issue occurs with Claude Opus 4.5?
claude request id 3a4fdd94-9706-48e2-9e87-41a45d757367
gemini request id 3dcc3bc4-4aff-4ea5-831f-7e8cbdf8926d
This is a known issue with BYOK Agent Mode for the Azure and Databricks providers. Cursor sends requests in a format that isn’t compatible with the standard API. It uses the wrong tools schema for file operations.
The team is working on improving BYOK support. A related bug was recently fixed for Azure GPT-5, but the issue still remains for Claude via Databricks.
Could you also share your current Cursor version (Help > About Cursor > Copy)?
Through my testing, if I use an API Gateway tool to map a model to a different name (e.g., mapping claude-opus-4.5 to internal-model), the request appears to follow the default OpenAI conversion rules—and this modification can be applied to the relevant files.
I’m guessing: Does Cursor automatically adapt the request body back and forth based on the model name?
Thanks for the details and for testing by renaming the model.
Yes, you’re right. Cursor adapts the request format based on the model name. When Cursor sees a model name like claude-*, it switches to a Claude-specific tool-calling format, which isn’t compatible with OpenAI-compatible API endpoints, including Azure and Databricks. When you map it to a different name, Cursor uses the standard OpenAI format, which works correctly.
This is a known bug and the team is tracking it. For now, your workaround of renaming the model via an API Gateway is the best solution for using Claude through Databricks in Agent Mode.