Repository navigation
Closed
Labels
P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
Description
I have set up my Companion with Github Copilot.
If I use Claude Opus 4.7, I get this:
⚠️ Agent failed before reply: Unknown model: openai/claude-opus-4.7.
Logs: openclaw logs --follow
If I use Gpt 5.5, I get this:
⚠️ Agent failed before reply: No API key found for provider "openai". Auth store: /home/openclaw/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /home/openclaw/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy only portable static auth profiles from the main agentDir.
Logs: openclaw logs --follow
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
Type
Fields
Priority
Medium
Projects
- StatusShow more project fieldsChannels
Activity
clawsweeper commentedon Jun 2, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 3, 2026, 5:52 AM ET / 09:52 UTC.
Summary
Keep open: current main has provider-aware model selection and configured-model filtering, but there is still no high-confidence proof that the reporter's GitHub Copilot setup/auth path now works. A collaborator already asked for setup provenance, and multiple related Copilot auth/provider reports remain open.
Reproducibility: no. The report includes concrete runtime errors, but a high-confidence current-main reproduction still requires a live Copilot-configured gateway and the setup provenance requested by a collaborator.
Ways to help us reproduce this
Next step
Human/provider triage is needed because setup provenance and gateway/provider ownership are unresolved, so there is no safe one-PR Windows-node repair shape yet.
Review details
Best possible solution:
Reproduce on current main or v0.6.12 with a Copilot-configured gateway, then fix the specific Companion wizard, model-routing, or gateway auth-provider gap while preserving the provider-aware picker behavior.
Do we have a high-confidence way to reproduce the issue?
No. The report includes concrete runtime errors, but a high-confidence current-main reproduction still requires a live Copilot-configured gateway and the setup provenance requested by a collaborator.
Is this the best way to solve the issue?
Unclear. The narrowest maintainable path is to first determine whether the remaining failure comes from Companion wizard input, gateway model catalog output, or the gateway Copilot provider/auth implementation.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 74604aebafef.
Label changes
Label justifications:
P2: The report blocks GitHub Copilot model use for affected users, but the blast radius is limited and the root cause still needs setup/auth clarification.impact:auth-provider: The observed failures are provider routing, model choice, and missing provider-auth errors after GitHub Copilot setup.Evidence reviewed
What I checked:
AGENTS.md:1, 74604aebafef)Unknown model: openai/claude-opus-4.7andNo API key found for provider "openai"after GitHub Copilot setup; collaborator ranjeshj asked whether setup used Companion onboarding or direct gateway/CLI configuration and suggestedopenclaw onboardto isolate configuration drift.models.listwithview = "configured", so the Windows app depends on the gateway's configured model/provider catalog rather than owning Copilot auth itself. (src/OpenClaw.Shared/OpenClawGatewayClient.cs:985, 74604aebafef)models.list, which is a partial implementation relevant to the reported wrong-provider model failures. (src/OpenClaw.Shared/OpenClawGatewayClient.cs:4138, 74604aebafef)src/OpenClaw.Chat/ChatModelChoice.cs:39, 74604aebafef)Likely related people:
src/OpenClaw.Chat/ChatModelChoice.cs,src/OpenClaw.Shared/OpenClawGatewayClient.cs,src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs)src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs,docs/ONBOARDING_WIZARD.md,src/OpenClaw.SetupEngine/default-config.json)src/OpenClaw.Shared/OpenClawGatewayClient.cs,src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs,tests/OpenClaw.Shared.Tests/OpenClawGatewayClientTests.cs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.ranjeshj commentedon Jun 2, 2026
Thanks for the report. Could you clarify how the gateway was set up?
Did you complete the setup flow from the Companion installer UI, or did you configure GitHub Copilot directly in the gateway/CLI environment?
If Copilot was configured directly outside the Companion setup flow, the gateway may not have all of the expected provider/auth configuration. In that case, please try running this in the gateway environment to complete the setup manually:
After that, restart/reconnect Companion and try the same model again. That will help confirm whether this is a gateway configuration issue or something else in the Companion flow.
github-actions commentedon Jun 17, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.
samanthamsong commentedon Jul 9, 2026
closing this issue due to inactivity - please reopen if still an issue
bkudiess commentedon Jul 30, 2026
Based on current source and history, this report does not match the later GitHub Copilot device-login polling bug. The original
openai/claude-opus-4.7and missing OpenAI key errors are consistent with the older Windows model-routing issue that could drop the selected provider and send a Copilot model through the wrong provider.The provider-aware model picker fix landed in PR #877 and first shipped in
v0.6.11.We’re closing this as completed by that Windows fix. If the same provider misrouting still occurs on v0.6.12 or newer, please follow up with the exact Companion and Gateway versions, whether Copilot was configured through Companion or
openclaw onboard, and a sanitized screenshot of the selected model and resulting error. Do not include tokens, device codes, or auth files.