codecompanion
last updated: Jan 04, 2026
https://github.com/olimorris/codecompanion.nvim
Been using this for a while now and really like it.
setting up claude code (docs) and using the apple keyring for the API key:
- install claude ACP
npm install -g @zed-industries/claude-code-acp
- get a claude token
claude setup-token
- save the token to the keyring:
security add-generic-password -s 'anthropic-claude' -w 'sk-ant-<token-here>'
- configure codecompanion to use it:
acp = {
claude_code = function()
return require("codecompanion.adapters").extend("claude_code", {
env = {
CLAUDE_CODE_OAUTH_TOKEN = "cmd:security find-generic-password -ws 'anthropic-claude' | tr -d '\n'",
},
})
end,
},
Then update your config to use the claude_code adapter where you want to use it.
Here's the change I made to my dotfiles to implement this