mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5342] [Feature]: Add OpenCode as a connection provider #2953
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2953
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Selene29 on GitHub (Aug 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5342
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Marinara users who already authenticate model providers through OpenCode must currently duplicate those credentials in Marinara or use a different connection path. This prevents them from using the model catalog already connected to their local OpenCode installation.
Proposed solution
Add OpenCode as a local-auth text connection provider. Marinara should start a loopback OpenCode server when needed, list models from connected OpenCode providers, send one-shot tool-denied chat requests through the selected provider/model, and clean up temporary sessions after each response.
Implementation owner: @Selene29
Alternatives considered
Additional context
The implementation uses the official OpenCode SDK and follows the local runtime approach demonstrated by t3code. It also refreshes Marinara's fallback Codex CLI catalog from the current visible authenticated model list.
Draft implementation: #5341
Template check
@SpicyMarinara commented on GitHub (Aug 20, 2026):
Can you explain to me what's the point is in adding OpenCode as a provider point if that is only a coding agent you download? From what I can see they don't actually provide any service on their own, you have to log into it with your existing subscriptions or BYOAK. Why not just sign in to ME with your Codex/Claude Code subscriptions directly; we already support that.
@Selene29 commented on GitHub (Aug 21, 2026):
It's an incredible convenient way to get access to tons of providers (with and without subscription) without implementing & maintaining each backend individually.
Eg. i import my Deepseek API key via OpenCode and get as result all available DeepSeek models currently available.
Or you could just maintain OpenCode backend and get OpenAI Subscribtion + API backend & Anthropic API for free.
With one backend you suddenly support all these providers https://opencode.ai/docs/providers at once without any additional work at your end.
@SpicyMarinara commented on GitHub (Aug 21, 2026):
Thank you for the PR and for the information. I asked ME's userbase and no one is really using it nor asking for it as of now. Plus, I'm not sure if I see a point of provisioning this connection, especially with a loopback since based on the description, people can circumvent that already and it's not a blocker. Closing for now.