Skip to content

fix(desktop): export configured OpenAI key to every harness - #3398

Open
filipkujawa wants to merge 1 commit into
block:mainfrom
filipkujawa:fix/goose-openai-credential-alias
Open

fix(desktop): export configured OpenAI key to every harness#3398
filipkujawa wants to merge 1 commit into
block:mainfrom
filipkujawa:fix/goose-openai-credential-alias

Conversation

@filipkujawa

@filipkujawa filipkujawa commented Jul 28, 2026

Copy link
Copy Markdown

Fixes #3395

When Buzz has OPENAI_COMPAT_API_KEY, also export it as OPENAI_API_KEY to managed agent processes. This keeps buzz-agent compatibility while allowing Goose and other harnesses to read the standard variable.

An explicitly configured OPENAI_API_KEY is not overwritten.

@filipkujawa
filipkujawa requested a review from a team as a code owner July 28, 2026 21:00
@filipkujawa
filipkujawa marked this pull request as draft July 28, 2026 21:07
@filipkujawa
filipkujawa force-pushed the fix/goose-openai-credential-alias branch from 2c90404 to 8e90d85 Compare July 28, 2026 21:11
@filipkujawa
filipkujawa marked this pull request as ready for review July 28, 2026 21:13
@michaelneale
michaelneale force-pushed the fix/goose-openai-credential-alias branch 2 times, most recently from 10836e6 to 3f3eb89 Compare August 7, 2026 02:42
@michaelneale

Copy link
Copy Markdown
Contributor

am taking this on - still not happy with shape, has to be simpler surely..

Keep Buzz's existing OPENAI_COMPAT_API_KEY configuration for buzz-agent, and mirror it to the standard OPENAI_API_KEY at the shared spawn boundary so Goose and future harnesses receive the credential they expect. Preserve an explicitly configured OPENAI_API_KEY.

Signed-off-by: Michael Neale <michael.neale@gmail.com>
@michaelneale
michaelneale force-pushed the fix/goose-openai-credential-alias branch from 3f3eb89 to e357e25 Compare August 7, 2026 03:41
@michaelneale michaelneale changed the title fix(desktop): give goose the OpenAI key under the env name it reads fix(desktop): export configured OpenAI key to every harness Aug 7, 2026
@michaelneale
michaelneale enabled auto-merge (squash) August 7, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

goose + provider openai: the API key never reaches the agent (401 every turn)

2 participants