Repository navigation
feat: Command Code OpenCode plugin — Go ($1) OAuth, Laguna S 2.1 - #1
Merged
Merged
Conversation
Proxy OpenCode chat completions to api.commandcode.ai/alpha/generate with CLI/API-key auth, Laguna S 2.1 free as default, tool/MCP park-resume, attachment handling, context compact, and session usage accounting. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
Primary auth matches `cmd login`: Studio CLI callback posts a session credential for the Command Code Go plan. Laguna S 2.1 free stays $0 credits. Remove paste-API-key as the primary path. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
Correct /alpha/generate payload (structure[] + mode=agent), harden live tests for streamed deltas, and verify Go-plan session end-to-end on poolside/laguna-s-2.1-free via proxy and opencode run. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
@otto-assistant/opencode-commandcode— OpenCode plugin that proxies chat completions through Command Code’s gateway (POST /alpha/generate), same stack asnpm i -g command-code@latest.Default model: free Laguna S 2.1 (
poolside/laguna-s-2.1-free).Auth (Go plan $1 — no API key)
Primary path matches
cmd loginStudio CLI OAuth. Laguna S 2.1 free bills $0 credits on Go.Verified live (Go-plan session)
bun run test— mocked gateway ✅bun run test:liveon Laguna S 2.1 ✅opencode run … --model command-code/laguna-s-2.1-free✅ →opencode-laguna-okArchitecture