## TL;DR

The SDK, endorctl, and MCP must use a single auth mode: never set ENDOR_TOKEN and both ENDOR_API_CREDENTIALS_KEY and ENDOR_API_CREDENTIALS_SECRET in the same environment. Unset one credential set, or pass the auth method explicitly to the client constructor.

## Steps

1. 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 dual_mode_conflict - 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.
