[GH-ISSUE #5342] [Feature]: Add OpenCode as a connection provider #2953

Closed
opened 2026-10-21 05:58:18 +07:00 by bsakaguchi · 3 comments
Owner

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

  • Ask users to configure every underlying provider directly in Marinara. This duplicates credentials and ignores OpenCode's existing provider configuration.
  • Treat OpenCode as a generic OpenAI-compatible endpoint. This does not expose OpenCode's connected-provider catalog or session lifecycle.

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

  • I DID NOT read this template and provide the requested details.
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 - Ask users to configure every underlying provider directly in Marinara. This duplicates credentials and ignores OpenCode's existing provider configuration. - Treat OpenCode as a generic OpenAI-compatible endpoint. This does not expose OpenCode's connected-provider catalog or session lifecycle. ## 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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:58:18 +07:00
  • closed this issue
  • added the
    in-pr
    label
Author
Owner

@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.

<!-- gh-comment-id:5362765542 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:5366812634 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:5368055551 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2953
No description provided.