fix(cliproxyapi): inject OPENCODE_API_KEY into config during startup

Merged
SH
7mo ago
+1-0

Changes

  • Added __OPENCODE_API_KEY__ substitution to the sed block in start.sh

Root Cause

Commit #1058 added the opencodezen provider (for minimax-m2.5) to config.template.yaml and set minimax-m2.5 as the default openclaw model, but the corresponding OPENCODE_API_KEY injection was missing from start.sh. As a result, cliproxyapi was authenticating to opencode.ai/zen/v1 with the literal string __OPENCODE_API_KEY__, causing all minimax-m2.5 requests to fail and breaking openclaw's gateway.

Testing

  • Restart cliproxyapi and verify minimax-m2.5 requests succeed via cliproxy
  • Ensure OPENCODE_API_KEY is set in ~/dotfiles/.env on Kyber

Generated with Claude Code by claude-sonnet-4-6


Summary by cubic

Injects OPENCODE_API_KEY into cliproxyapi startup config to restore auth against opencode.ai/zen/v1, fixing failed minimax-m2.5 requests and unblocking the openclaw gateway. Also updates fish tests and an internal function name to match the _cltxe/_cltxeh/_clwxe/_clwxeh rename, resolving the fish-test CI failure.