The snippet was only the provider entry, which an empty or missing opencode.json can't take,
and without a "model" opencode starts on its own hosted default and asks for that service's
key. It is now a whole config (schema, provider, model), as `llmhost opencode-config` prints,
with instructions for merging into an existing file.
The key-saving command was two lines; pasted together, the first line's `read` swallowed the
second as the key and no file was written. It's one line now, and writes only a non-empty key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>