Skip to content

How to set a local provider in opencode TUI? #10547

Description

@TangLaoya

Question

Dear all,

I noticed that opencode can set a local provider:
https://opencode.ai/docs/providers/#lm-studio

where should I put the file opencode.json, is the file correct?
{ "$schema": "https://opencode.ai/config.json", "provider": { "lmstudio": { "npm": "@ai-sdk/openai-compatible", "name": "LM Studio (local)", "options": { "baseURL": "http://localhost:8080/v1" }, "models": { "GLM-4.7-Flash-UD-Q5_K_XL.gguf": { "name": "GLM-4.7-Flash-UD-Q5_K_XL.gguf" } } } } }

Is there any entry to set the local provider from opencode TUI?

I use the Windows version (Windows Server 2019, latest version 1.1.35, OpenCode Desktop Installer.exe).

Thanks,
Tang Laoya

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions