feature: Support for Claude Pro/Max Subscriptions
Feature request
You can use an oauth flow to authenticate Claude Pro/Max subscriptions and then use that token to access the API. This would allow users to use their pro/max subscriptions with avante.
Motivation
This would allow users to use the subscriptions they already pay for with Avante.
Other
This has already been accomplished by OpenCode (Open source claude code alternative). See https://github.com/sst/opencode/blob/38879dee2ddfe5fa65fb4c274b8b167733d26a27/packages/opencode/src/cli/cmd/auth.ts#L94-L138
This would be amazing tbh
Yes, what would it take to do this?
Does this require an "auth flow"? Or could this be done with a config (non-interactively).
Here's more detail on how the auth works in opencode: https://github.com/sst/opencode/blob/38879dee2ddfe5fa65fb4c274b8b167733d26a27/packages/opencode/src/auth/anthropic.ts
This is what's keeping me from ditching the copilot plugin and copilot.
Does this require an "auth flow"? Or could this be done with a config (non-interactively).
I don't think this can be done non-interactively, would require a login/auth/setup step (similar to :Copilot setup)
check https://github.com/coder/claudecode.nvim - I'm not using Avante because it would make no sense to spend money on API calls when you can just use your pro max subscription. They've reversed engineered the protocol to have vim work with the IDE integration of claude code, I'm sure this could help to make this work on Avante
Yup, same with https://github.com/NickvanDyke/opencode.nvim
Maybe even just depend on those plugins and use their APIs, like avante does with copilot.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Don't let this go stale. This is an amazing feature!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
we still want this feature
Yes same. I like other ways like direct integrations into the editor but IMHO this doesn't really feel like integration. I can do the same using tmux. What is missing is actual Integration. Would love to see this working :)