Make avante work again after claude blocked max subscription to be used in the 3rd party tool like avante or opencode #2920
+41
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Anthropic's tool name validation
Also instead of using browser to open claude auth link, i asked avante to display the auth link in the message log, so that people can copy and paste to browser if they are in a terminal env instead of GUI, like you ssh to a remote machine and want to neovim there.
in lua/avante/config.lua, just add auth_type = 'max' to make it work like below:
Up to you guys if you want to use, but I won't be responsible for any punishment from Anthropic.