You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
allow running custom tools without external dependencies #2802
impossible to run custom tools from local .opencode/tool/mytool.ts folder because you either rquired to use tool.schema from @opencode-ai/plugin or z from zod
use case
running opencode form local configuraion in .opencode/ without node_modules installed there with zod or opencode plugin sdk
solution
please allow us to use json schema for args along side with zod
Activity
github-actions commentedon Sep 26, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Sep 26, 2025
@kynnyhsap soon I think opencode will be resolving these dependencies automatically for you (just btw) so u wouldn't have to create a node_modules
dehidehidehi commentedon Nov 21, 2025
Hello, I also am encountering this issue:
Is it still mandatory to actively create a node_modules folder everywhere we run opencode if we want custom tools to work?
rekram1-node commentedon Nov 21, 2025
We automatically install the dep, but ig it is failing for u? and is there no node_modules for it?
dehidehidehi commentedon Nov 21, 2025
I cannot reproduce the issue, I guess we are all good;
Looking at the file logs produced by opencode helps knowing where the package is installed
HelloGGX commentedon Dec 19, 2025
I submitted a pull request to fix this issue: #5797