aider icon indicating copy to clipboard operation
aider copied to clipboard

Anthropic without OpenRouter middle man

Open aleclarson opened this issue 1 year ago • 3 comments

OpenRouter is a nice solution, but since Claude is so popular, it'd be nice to have direct support within Aider so extra costs can be avoided.

I found https://github.com/jtsang4/claude-to-chatgpt which acts as a client-side adapter for Claude models to be used as if they have an OpenAI-compatible API. There's no Claude 3 support quite yet, but perhaps Aider could be used to add support, or maybe we just use claude-to-chatgpt as inspiration for an adapter that lives in Aider's repository.

aleclarson avatar Apr 08 '24 21:04 aleclarson

As a workaround, it appears LiteLLM can be set up locally, as this comment describes.

aleclarson avatar Apr 08 '24 21:04 aleclarson

I guess I'll close this issue, since #172 covers the concern.

aleclarson avatar Apr 08 '24 21:04 aleclarson

Happy to keep this open, as direct Claude support is high priority for me at the moment.

paul-gauthier avatar Apr 08 '24 21:04 paul-gauthier

Aider now supports directly connecting to Anthropic and many other LLM providers.

https://aider.chat/docs/llms.html#anthropic

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

paul-gauthier avatar Apr 29 '24 18:04 paul-gauthier