Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug: Kitty provider fails with "opencode: executable file not found in $PATH" despite opencode being in PATH #180

Closed as not planned
Closed as not planned
bug: Kitty provider fails with "opencode: executable file not found in $PATH" despite opencode being in PATH#180
Labels
bugSomething isn't working

Description

Did you check docs and existing issues?

  • I have read the plugin docs
  • I have read the opencode docs
  • I have searched the existing plugin issues
  • I have searched the existing opencode issues

:checkhealth opencode output

opencode: 5 opencode.nvim ~ - OS: Darwin 25.3.0 (arm64) - nvim version: 0.11.4+v0.11.4. - opencode.nvim git commit hash: e876696dc93c1962eaeff8ca5114c23c20485d09. - vim.g.opencode_opts: { provider = { enabled = "kitty", kitty = {} } } opencode.nvim [binaries] ~ - OK opencode available with version 1.2.6. - WARNING opencode version has an older patch version than latest tested version 1.1.11: may cause compatibility issues. - ADVICE: - Update opencode. - OK curl available. - OK pgrep available. - OK lsof available. opencode.nvim [snacks] ~ - WARNING snacks.nvim is not available: ask() and select() will not be enhanced. opencode.nvim [providers] ~ - OK Configured opencode provider: kitty. - WARNING The snacks provider is not available -- snacks.nvim is not available. - ADVICE: - Install snacks.nvim and enable snacks.terminal. - OK The kitty provider is available. - WARNING The wezterm provider is not available -- wezterm executable not found in $PATH. - ADVICE: - Install wezterm and ensure it's in your $PATH. - WARNING The tmux provider is not available -- tmux executable not found in $PATH. - ADVICE: - Install tmux and ensure it's in your $PATH. - OK The terminal provider is available.

Describe the bug

I've configured opencode.nvim to use the Kitty provider as documented and have the opencode CLI installed and accessible in my $PATH. However, when attempting to use the Kitty provider, I receive the following error:
opencode failed to start with error: exec: "opencode": executable file not found in $PATH

Steps To Reproduce

  1. Install opencode CLI and verify it's in $PATH (e.g., which opencode returns the executable path)
  2. Configure opencode.nvim with the Kitty provider:
    vim.g.opencode_opts = {
    provider = {
    enabled = "kitty",
    kitty = {
    -- ...
    }
    }
    }
    3. Enable Kitty remote control as documented (via command line or kitty.conf)
  3. Attempt to trigger opencode from Neovim
  4. Error occurs in new window: "opencode failed to start with error: exec: "opencode": executable file not found in $PATH"

Expected Behavior

The Kitty provider should successfully spawn an opencode instance inside nvim (vsplit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions