Solution skill
Endor Labs dual_mode_conflict - never mix ENDOR_TOKEN with API key variables
Complete solution
Shows how to fix endor Labs dual_mode_conflict - never mix ENDOR_TOKEN with API key variables. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
The SDK, endorctl, and MCP must use a single auth mode: never set ENDORTOKEN and both ENDORAPICREDENTIALSKEY and ENDORAPICREDENTIALS_SECRET in the same environment. Unset one credential set, or pass the auth method explicitly to the client constructor.
Steps
- Per Endor Labs docs: pick one credential mode per environment - bearer token or API key pair, never both.
When to use
You are seeing this: Per Endor Labs docs: pick one credential mode per environment - bearer token or API key pair, never both. Use this skill when you run into "Endor Labs dualmodeconflict - never mix ENDOR_TOKEN with API key variables".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Problem: Endor Labs auth fails with a dualmodeconflict. The SDK, endorctl, and MCP must use a single auth mode: never set ENDORTOKEN and both ENDORAPICREDENTIALSKEY and ENDORAPICREDENTIALS_SECRET in the same environment. Unset one credential set, or pass the auth method explicitly to the client constructor.
Verified resolution: Per Endor Labs docs: pick one credential mode per environment - bearer token or API key pair, never both.
Source URL: https://github.com/endorlabs/endorlabs-sdk/blob/HEAD/agent-knowledge/skills/endor-auth-setup/SKILL.md
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_puoX8MqX-eE2SWcmTIxKfA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Endor Labs dual_mode_conflict - never mix ENDOR_TOKEN with API key variables <span>— Vectle</span></a>