openclaw/openclaw · error · CodexAppServerAuthProfileUnavailableError

Codex app-server auth profile "${profileId}" was not found.

Error message

Codex app-server auth profile "${profileId}" was not found.

What it means

Error "Codex app-server auth profile "${profileId}" was not found." thrown in openclaw/openclaw.

Source

Thrown at extensions/codex/src/app-server/auth-bridge.ts:683

}

class CodexAppServerAuthProfileUnavailableError extends Error {}

async function resolveCodexAppServerAuthProfileLoginParams(params: {
  agentDir: string;
  authProfileId?: string;
  authProfileStore?: AuthProfileStore;
  config?: AuthProfileOrderConfig;
}): Promise<CodexLoginAccountParams | undefined> {
  const store = resolveCodexAppServerAuthProfileStore(params);
  const profileId = resolveCodexAppServerAuthProfileId({
    authProfileId: params.authProfileId,
    store,
    config: params.config,
  });
  const profile = profileId ? store.profiles[profileId] : undefined;
  if (profileId && !profile) {
    throw new CodexAppServerAuthProfileUnavailableError(
      `Codex app-server auth profile "${profileId}" was not found.`,
    );
  }
  if (profileId && profile && !isCodexAppServerAuthProfileCredential(profile)) {
    throw new CodexAppServerAuthProfileUnavailableError(
      `Codex app-server auth profile "${profileId}" must use the canonical OpenAI auth provider; run "openclaw doctor --fix" to migrate legacy provider IDs.`,
    );
  }
  return await resolveCodexAppServerAuthProfileLoginParamsInternal({
    ...params,
    authProfileStore: store,
  });
}

export async function refreshCodexAppServerAuthTokens(params: {
  agentDir: string;
  authProfileId?: string;
  authProfileStore?: AuthProfileStore;

View on GitHub (pinned to 01804a7531)

When it happens

Trigger: Thrown at extensions/codex/src/app-server/auth-bridge.ts:683 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openclaw/openclaw@01804a7531 (2026-08-12). Data as JSON: /api/errors/90f96af9f3ab530c. Report an issue: GitHub.