Skip to content

Running OpenCode Desktop application with local model & censorship #6783

Closed

Description

@Noorababi

Question

Hi, im using LM studio to run an inference server for my local use.

I have created this config file in my %USERPROFILE%.config\opencode folder.

{ "$schema": "https://opencode.ai/config.json", "provider": { "lmstudio": { "npm": "@ai-sdk/openai-compatible", "name": "LM Studio (Local)", "options": { "baseURL": "localhost:15432/v1" }, "models": { "mistralai/devstral-small-2-2512": { "name": "Mistral Devstral Small", "limit": { "context": 32280, "output": 8192 } } } } } }

But I got two problems.

  1. The model when used through opencode, it refuses to do any pen testing tasks (considered illegal by some, but im using my own model, so its overwriting the actual model default system prompt inside LM studio that removes the censorship)
Image
  1. The local model list displayed inside opencode is not actually any model that I have, however, if I do select any of them, the messages do come to my actual local model (mistral). So im not sure why the real model tag is not showing inside opencode. its just causing confusion, but not important.

Activity

  1. github-actions commented on Jan 3, 2026

    @github-actions
    Contributor

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

    These issues specifically address the second problem you mentioned (incorrect model list display). For your first issue regarding content censorship/pen testing refusal, this appears to be related to system prompt handling. You may want to check issue #5005 (unexpected system prompt parts despite disabling default agents) for related system prompt injection concerns.

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

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

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions