diff options
| author | Cason Adams <[email protected]> | 2025-12-04 13:49:51 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-04 14:49:51 -0600 |
| commit | 48dc520fb85387cf9754f0a80c0e3ce283f6a09c (patch) | |
| tree | 62e34c10372a1c630924f0c3022c2cf253763267 | |
| parent | 668d5a76d54d4b137264d79048ea0b6c9d0ce24d (diff) | |
| download | opencode-48dc520fb85387cf9754f0a80c0e3ce283f6a09c.tar.gz opencode-48dc520fb85387cf9754f0a80c0e3ce283f6a09c.zip | |
docs: add CodeCompanion.nvim integration instructions (#5079)
| -rw-r--r-- | packages/web/src/content/docs/acp.mdx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/acp.mdx b/packages/web/src/content/docs/acp.mdx index bca30923c..9d421235c 100644 --- a/packages/web/src/content/docs/acp.mdx +++ b/packages/web/src/content/docs/acp.mdx @@ -100,6 +100,27 @@ If you need to pass environment variables: --- +### CodeCompanion.nvim + +To use OpenCode as an ACP agent in [CodeCompanion.nvim](https://github.com/olimorris/codecompanion.nvim), add the following to your Neovim config: + +```lua +require("codecompanion").setup({ + strategies = { + chat = { + adapter = { + name = "opencode", + model = "claude-sonnet-4", + }, + }, + }, +}) +``` + +This config sets up CodeCompanion to use OpenCode as the ACP agent for chat. + +If you need to pass environment variables (like `OPENCODE_API_KEY`), refer to [Configuring Adapters: Environment Variables](https://codecompanion.olimorris.dev/configuration/adapters#environment-variables-setting-an-api-key) in the CodeCompanion.nvim documentation for full details. + ## Support OpenCode works the same via ACP as it does in the terminal. All features are supported: |
