Connect to an opencode instance running in a container #94
-
|
Hi! ':checkhealth opencode' shows this:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Hmm, I think you could:
Then the plugin will communicate with |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I've tried with 'vim.g.opencode_opts.port=' and 'vim.g.opencode_opts.provider.cmd = opencode attach http://localhost:' with an opencode server instance hosted on a docker container with published port 5000, and it doesn't connect |
Beta Was this translation helpful? Give feedback.
You can ignore the provider and "missing
opencode" errors; they won't make much sense when you're runningopencodein a container. Don't usetoggle()in this case - justask()andselect(). Those will connect to the already-runningopencodein the container 🙂opencodeoffers a non-ACP API, whichopencode.nvimuses. So maybe try it withoutacp?opencode --port 50000 --print-logs --log-level INFO