Using LlamaBarn with OpenCode #44
erusev
started this conversation in
Integrations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
01— Configure LlamaBarnLlamaBarnis running.Settingsand set theContext lengthto32ktokens or more.02— Configure OpenCodeCreate
~/.config/opencode/opencode.json{ "$schema": "https://opencode.ai/config.json", "provider": { "LlamaBarn": { "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "http://localhost:2276/v1" }, "models": { "gpt-oss-20b": {}, "qwen3-coder": {} } } } }Replace
gpt-oss-20bandqwen3-coderwith the IDs of the models you want to use (right-click on a model to get its ID).03— Run OpenCode and select a LlamaBarn modelType
/modelsto bring up the model selection menu, then choose a LlamaBarn model.Recommended models
gpt-oss-20b— Requires Mac with 24GB+ memorygpt-oss-120b— Requires Mac with 96GB+ memoryqwen3-coder— Requires Mac with 32GB+ memoryBeta Was this translation helpful? Give feedback.
All reactions