Repository navigation
opencode 1.17.15-minimax (MiniMax inline reasoning — temporary fork)
⚠️ Temporary stopgap fork. This exists only to run MiniMax M3 on a self-hosted OpenAI-compatible endpoint until the change lands upstream. Use upstream opencode for everything else, and switch back to upstream once this is merged (or if you don't need MiniMax M3 inline reasoning).
Fork of opencode 1.17.15 adding support for MiniMax M3 inline reasoning tags (<mm:think>…</mm:think>) for models served over an OpenAI-compatible API (e.g. self-hosted vLLM).
- Reasoning emitted inline is extracted and shown as a separate "thinking" block instead of leaking into the message.
- Reasoning is re-inlined on follow-up requests, as MiniMax M3 expects.
- Auto-detected for openai-compatible models whose id contains
minimax-m3; or set"interleaved": { "tag": "mm:think" }on any model.
Stamped 1.17.15-minimax, built on the latest channel so it uses the standard opencode session store — your existing sessions stay visible (opencode -c / -s / session list work as normal).
⚠️ Disable autoupdate first (required)
opencode's autoupdate silently reinstalls upstream over this fork on next launch (it compares versions only, so upstream 1.17.16+ wins). Before/after installing, disable it — otherwise the fork won't stick:
- Add
"autoupdate": falseto your opencode config ($XDG_CONFIG_HOME/opencode/opencode.json, or~/.config/opencode/opencode.json), or export OPENCODE_DISABLE_AUTOUPDATE=1in your shell profile.
Also don't run opencode upgrade manually. To go back to upstream later, re-run the official installer (below).
Install (Linux / macOS)
# Linux x64
mkdir -p ~/.opencode/bin && curl -fsSL https://github.com/TensorTemplar/opencode/releases/download/v1.17.15-minimax/opencode-linux-x64.tar.gz | tar -xz -C ~/.opencode/bin
# Linux arm64
mkdir -p ~/.opencode/bin && curl -fsSL https://github.com/TensorTemplar/opencode/releases/download/v1.17.15-minimax/opencode-linux-arm64.tar.gz | tar -xz -C ~/.opencode/binmacOS (arm64 shown; use -x64 on Intel):
mkdir -p ~/.opencode/bin
curl -fsSL -o /tmp/opencode.zip https://github.com/TensorTemplar/opencode/releases/download/v1.17.15-minimax/opencode-darwin-arm64.zip
unzip -o /tmp/opencode.zip -d ~/.opencode/bin
xattr -d com.apple.quarantine ~/.opencode/bin/opencode 2>/dev/null || true # clear Gatekeeper quarantineMake sure ~/.opencode/bin is on your PATH, then opencode --version should print 1.17.15-minimax.
Reverting to upstream
curl -fsSL https://opencode.ai/install | bash