From 52d1a05426fcf3e162ce44936e43fe0238497031 Mon Sep 17 00:00:00 2001 From: Daniel Santillan Date: Wed, 23 Sep 2026 16:37:02 -0400 Subject: [PATCH] Deploy path: pass OPENCODE_API_KEY through, not only JEV_API_KEY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gateway hands you a variable called OPENCODE_API_KEY, and the compose lists the environment explicitly — a variable that is not named there reaches Dokploy and never reaches the container. Pasting the key under the name the console gave it would have left the second opinion reading as unconfigured, which is exactly the shape of bug that looks like the feature is broken rather than unconfigured. --- deploy/compose-build-at-deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/compose-build-at-deploy.yml b/deploy/compose-build-at-deploy.yml index ecb34ce..107de16 100644 --- a/deploy/compose-build-at-deploy.yml +++ b/deploy/compose-build-at-deploy.yml @@ -125,6 +125,11 @@ services: COACH_DISABLED: ${COACH_DISABLED:-} COACH_JOB_TIMEOUT_MS: ${COACH_JOB_TIMEOUT_MS:-} JEV_API_KEY: ${JEV_API_KEY:-} + # The gateway's own variable name, because that is what the OpenCode Zen console gives you to + # copy. Listed here or the key reaches Dokploy and never reaches the container: a variable + # that is not named in this file is not passed, and the feature would look configured while + # `GET /api/insights` kept saying it was not. + OPENCODE_API_KEY: ${OPENCODE_API_KEY:-} JEV_MODEL: ${JEV_MODEL:-} JEV_BASE_URL: ${JEV_BASE_URL:-} JEV_MAX_PER_DAY: ${JEV_MAX_PER_DAY:-}