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:

npm install -g @zed-industries/claude-code-acp
claude setup-token
security add-generic-password -s 'anthropic-claude' -w 'sk-ant-<token-here>'
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

↑ up