You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-11Lines changed: 16 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,21 +65,25 @@ opencode plugin file://$PWD
65
65
66
66
## Authenticate
67
67
68
-
Requires the plugin to be installed (see above). Uses the **Command Code Go plan ($1/mo)**— same browser login as `cmd login`. No Studio API key.
68
+
Requires the plugin to be installed (see above). Preferred: **Command Code Go plan ($1/mo)** browser login (same as `cmd login`). You can also paste an API key / session token.
69
69
70
70
```bash
71
71
# Option A — sync from Command Code CLI (recommended)
72
72
npm i -g command-code@latest
73
-
cmd login # browser → Studio CLI auth (Go plan). Laguna S 2.1 is $0 credits.
73
+
cmd login # browser → Studio CLI auth (Go plan)
74
74
opencode auth login --provider command-code
75
75
# pick "Use existing cmd login session"
76
76
77
77
# Option B — browser OAuth (Go $1)
78
78
opencode auth login --provider command-code
79
79
# pick "Login with Command Code (Go $1)"
80
+
81
+
# Option C — paste API key / session token
82
+
opencode auth login --provider command-code
83
+
# pick "Enter Command Code API key" and paste into the prompt field
80
84
```
81
85
82
-
Then start OpenCode, pick provider **command-code**, and choose Laguna S 2.1 free:
86
+
Then start OpenCode, pick provider **command-code**, and choose any model from the live catalog (`cmd --list-models`). Laguna S 2.1 free is the default when available:
83
87
84
88
```bash
85
89
opencode run "Summarise this repository in five bullets." --model command-code/laguna-s-2.1-free
@@ -92,8 +96,9 @@ Laguna S 2.1 free requires an active Go (or higher) account with credits on file
92
96
|||
93
97
|---|---|
94
98
|**Gateway proxy**| Talks to `api.commandcode.ai/alpha/generate` — same transport as the `cmd` CLI (`mode=agent`). |
95
-
|**Laguna S 2.1 free**| 256k context, reasoning, $0 while the deal lasts. Default aliases resolve here. |
96
-
|**Go-plan auth**| Browser OAuth like `cmd login` ($1/mo). Syncs `~/.commandcode/auth.json`. No Studio API key. |
99
+
|**Live model catalog**| Discovered from `cmd --list-models` (enriched by the installed CLI’s models.md) — not hardcoded. |
100
+
|**Laguna S 2.1 free**| Default when present — 256k context, $0 while the deal lasts. |
101
+
|**Auth options**| Go-plan browser OAuth, sync from `cmd login`, or paste an API key / session token. |
97
102
|**Agent-grade tools**| OpenCode tool calls park and resume; MCP-prefixed tools are tracked separately. |
98
103
|**Attachments**| Images, PDFs, text/binary files from OpenCode. Text-only models get image placeholders (Command Code behavior). |
99
104
|**Auto-compact**| Context-fraction tips + tiered client compact before the 256k window overflows. |
@@ -109,9 +114,9 @@ OpenCode
109
114
└─ poolside/laguna-s-2.1-free (default)
110
115
```
111
116
112
-
Model catalog: aliases `laguna-s-2.1-free` / `laguna` / `default` (and siblings) map to
113
-
`poolside/laguna-s-2.1-free`. Auth credentials are mirrored between OpenCode `auth.json`
114
-
and `~/.commandcode/auth.json`.
117
+
Model catalog: live from `cmd --list-models`. Aliases like `laguna` / `laguna-s-2.1-free`
118
+
resolve to `poolside/laguna-s-2.1-free` when that model is present. Auth credentials are
119
+
mirrored between OpenCode `auth.json`and `~/.commandcode/auth.json`.
115
120
116
121
## Requirements
117
122
@@ -157,10 +162,10 @@ Local pin refresh after a release:
157
162
## FAQ
158
163
159
164
**Do I need a Studio API key?**
160
-
No. Use Go-plan browser login (or sync from `cmd login`).
165
+
No. Prefer Go-plan browser login or sync from `cmd login`. You can also use **Enter Command Code API key** if you already have a session token.
161
166
162
-
**Is Laguna free?**
163
-
Yes — `poolside/laguna-s-2.1-free`is the default free model ($0 while the deal lasts).
167
+
**Are only Laguna models available?**
168
+
No. The plugin loads the full live catalog from `cmd --list-models`. Laguna is just the default free model used for testing.
164
169
165
170
**Why isn’t Command Code listed without the plugin?**
166
171
OpenCode doesn’t ship Command Code as a built-in provider; this plugin registers it.
"Opens Command Code Studio CLI login (Go plan, $1/mo). Approve in the browser — session is posted back automatically. Laguna S 2.1 free costs $0 credits. No API key.",
421
+
"Opens Command Code Studio CLI login (Go plan, $1/mo). Approve in the browser — session is posted back automatically. Live models load from `cmd --list-models` after login.",
0 commit comments