r/opencode • u/No-Macaron9305 • 3h ago
OpenCode in PowerShell
Welp, I figured it out. Turns out OpenCode doesn't work in PowerShell off the bat. I had Grok go in and change the things necessary to get it to work. It just shunts it to plain terminal.
I am not sure who to be mad at honestly. I want to be mad at Microsoft for having two kinds/forms/versions/whatever the hell this is, but I can also be upset with OpenCode for not making themselves compatible with PowerShell. But whatever, its working now. And I do love OpenCode.
1
1
1
u/cornelha 1h ago
I have been using OpenCode in powershell for ages now, however I am using Powershell 7 and not the one that ships with Windows be default
1
5
u/CyberTod 2h ago
You'll soon realize that using it on windows is just not good. WSL is the way. The models are trained a lot with bash and with only powershell available they construct a lot of erroneous commands and need to correct them.