Skip to content

Windows antivirus alert when running OpenCode. #8204

Closed

Description

@iceriver20002000

Question

Image

Activity

  1. github-actions commented on Jan 13, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. BaseBlank commented on Jan 13, 2026

    @BaseBlank
    Image

    I encountered exactly the same bug.

    Trojan:Script/Wacatac.C!ml

  3. magicprinc commented on Jan 13, 2026

    @magicprinc

    any chance? 😭

  4. BaseBlank commented on Jan 13, 2026

    @BaseBlank

    The current solution is to use the old version and disable any upgrades.
    Alternatively, you can ignore the warnings from Windows Defender and continue using the system, but I do not recommend this approach.
    It’s best to wait patiently for the author to fix this issue.

  5. okazakov commented on Jan 14, 2026

    @okazakov

    Alternatively, you can ignore the warnings from Windows Defender and continue using the system

    Well... you can't ignore it. The DLL that triggers Windows Defender keeps changing name every time Windows Defender blocks it. It's kinda chicken & egg situation that prevents us from adding it into exclusions. You don't know the name of the DLL until you run OpenCode, and once you run it, Windows Defender blocks the file and removes it. And you can go in circles indefinitely.

  6. norm2782 commented on Jan 14, 2026

    @norm2782

    The current solution is to use the old version and disable any upgrades. Alternatively, you can ignore the warnings from Windows Defender and continue using the system, but I do not recommend this approach. It’s best to wait patiently for the author to fix this issue.

    What is the latest version that does not have this problem?

  7. vip32 commented on Jan 15, 2026

    @vip32

    this just happened to me with the latest 1.1.23 version. downgrading to 1.1.20 makes the trojan alert go away.

    npm install -g opencode-ai@1.1.20

    i also note that opencode updates itself automaticaly to 1.1.23 when i ran it as 1.1.20. hows that? for now i can workaround that with npx opencode-ai@1.1.20

  8. marko-hologram commented on Jan 16, 2026

    @marko-hologram

    It's not just Windows Defender, it's Smart App Control that blocks the app from running. You also shouldn't disable Smart App Control because you cannot enable it again without doing a fresh Windows install.

    Image

    I tried just disabling various Windows Defender features and some in Smart App Control and I cannot get opencode to work. Worked fine like 8-10 hours ago. I guess it got updated when I ran it now?

    I've seen the team is working on code signing which should make things work fine so I guess we just have to wait in order to use latest version.


    Using npx opencode-ai@1.1.21, or bunx opencode-ai@1.1.21 seems to work fine at the moment. If you work with opencode a lot in a single repo, I'd suggest installing it there as a dev dependency (e.g npm i -D opencode-ai@1.1.21) and then just doing npx opencode-ai in that folder so that you don't have to type the version each time.

  9. AamiRobin commented on Jan 16, 2026

    @AamiRobin

    I ran into this issue, reinstalled Windows, and it worked for a day, but now it’s back again. I have no idea what’s causing it. I also have two PCs—it works fine on one but not the other, which is really confusing.

  10. jMerta commented on Jan 16, 2026

    @jMerta

    Happens to me on my corproate laptop when I finally got approved to use it through Copilot. :(

    On personal works just fine.

  11. vip32 commented on Jan 16, 2026

    @vip32

    Happens to me on my corproate laptop when I finally got approved to use it through Copilot. :(

    On personal works just fine.

    same versions on both? as it seems the issues started or reappeared with 1.1.23

  12. rekram1-node commented on Jan 16, 2026

    @rekram1-node
    Contributor

    this will probably keep happening until we get through the code signing process

    opencode has a few binary deps (opentui for example) and on first start extracts them to a tmp folder

    unfortunately some virus protectors are treating this is always malicious behavior

  13. jMerta commented on Jan 16, 2026

    @jMerta

    Happens to me on my corproate laptop when I finally got approved to use it through Copilot. :(
    On personal works just fine.

    same versions on both? as it seems the issues started or reappeared with 1.1.23

    Yes. On my personal windows machine im running 1.1.23 without alerts.

    1.1.23 is completely blocked on work laptop. Reverting to 1.1.21 allowed me to start it.

  14. boazcstrike commented on Mar 6, 2026

    @boazcstrike

    I'm currently experiencing exactly the same warning and quarantine file from windows defender antivirus.

  15. Hona commented on Mar 29, 2026

    @Hona
    Member

    As of OpenCode v1.3.4 across the CLI + Desktop apps, we have full code signing - so there should be no more warnings.

    Please let me know otherwise

    Image
  16. DerekLoadout commented on Mar 30, 2026

    @DerekLoadout

    1.3.7 it's back :D

  17. Hona commented on Mar 30, 2026

    @Hona
    Member

    the AV warning?
    desktop? cli?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions