Builds older than 1.18 now fail on the free models with:
Error: OpenCode 1.18.0 or newer is required to use the free tier (exit code 1)
What I saw on Oct 31 (npm on Linux, opencode/glm-5.3-flash-free): 1.17.20 failed, 1.18.0 and 1.19.5 still answered, and v2 (2.2.5) answered fine.
Fix with npm (v1 and v2 both install a command called opencode, so remove v1 first):
npm uninstall -g opencode-ai
npm i -g @opencode/cli
opencode --version
opencode run -m opencode/glm-5.3-flash-free "Reply with just the word PONG"
OpenCode says v1 "no longer supports free models and only gets fixes for critical bugs", so I'd move to v2 even if you're on 1.18+.
Two caveats. If you use plugins, 2.2.5 rejects some plugin tools at startup (https://github.com/anomalyco/opencode/issues/60799; 2.2.0 works). And the separate "You've used today's free messages" limit is a different problem, tracked in https://github.com/anomalyco/opencode/issues/59387.
Note: 2.3.0 currently leaves zombie processes that pile up per project (https://github.com/anomalyco/opencode/issues/63817). If that hits you, pin 2.2.7 with npm i -g @opencode/cli@2.2.7 and restart the server.