Skip to content

feat: Command Code OpenCode plugin — Go ($1) OAuth, Laguna S 2.1 - #1

Merged
sdziupin merged 4 commits into
mainfrom
feat/opencode-commandcode-36eb
Aug 8, 2026
Merged

sdziupin merged 4 commits into
mainfrom
feat/opencode-commandcode-36eb

Conversation

@sdziupin

@sdziupin sdziupin commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds @otto-assistant/opencode-commandcode — OpenCode plugin that proxies chat completions through Command Code’s gateway (POST /alpha/generate), same stack as npm 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 login Studio 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:live on Laguna S 2.1 ✅
    • plain completion
    • attachments (text file + image placeholder)
    • tools park/resume
    • usage totals
    • large-context / compact path
  • opencode run … --model command-code/laguna-s-2.1-free ✅ → opencode-laguna-ok

Architecture

OpenCode → Bun.serve :8797 /v1/chat/completions
        → api.commandcode.ai /alpha/generate (mode=agent)
Open in Web Open in Cursor 

Serhii Dziupin and others added 3 commits August 8, 2026 06:05
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>
@cursor cursor Bot changed the title feat: Command Code OpenCode plugin (Laguna S 2.1 gateway) feat: Command Code OpenCode plugin — Go ($1) OAuth, Laguna S 2.1 Aug 8, 2026
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>
@sdziupin
sdziupin marked this pull request as ready for review August 8, 2026 09:28
@sdziupin
sdziupin merged commit 611fb87 into main Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant