openai/codex · error · anyhow::Error

ChatGPT connectors require Codex backend auth

Error message

ChatGPT connectors require Codex backend auth

What it means

Error "ChatGPT connectors require Codex backend auth" thrown in openai/codex.

Source

Thrown at codex-rs/chatgpt/src/connectors.rs:51

const DEFAULT_APPS_PRODUCT_SKU: &str = "codex";

async fn apps_enabled(config: &Config) -> anyhow::Result<bool> {
    let auth_manager =
        AuthManager::shared_from_config(config, /*enable_codex_api_key_env*/ false).await?;
    let auth = auth_manager.auth().await;
    Ok(config
        .features
        .apps_enabled_for_auth(auth.as_ref().is_some_and(CodexAuth::uses_codex_backend)))
}

async fn connector_auth(config: &Config) -> anyhow::Result<CodexAuth> {
    let auth_manager =
        AuthManager::shared_from_config(config, /*enable_codex_api_key_env*/ false).await?;
    let auth = auth_manager
        .auth()
        .await
        .ok_or_else(|| anyhow::anyhow!("ChatGPT auth not available"))?;
    anyhow::ensure!(
        auth.uses_codex_backend(),
        "ChatGPT connectors require Codex backend auth"
    );
    Ok(auth)
}

pub async fn list_connectors(config: &Config) -> anyhow::Result<Vec<AppInfo>> {
    if !apps_enabled(config).await? {
        return Ok(Vec::new());
    }
    let (connectors_result, accessible_result) = tokio::join!(
        list_all_connectors(config),
        list_accessible_connectors_from_mcp_tools(config),
    );
    let connectors = connectors_result?;
    let accessible = accessible_result?;
    Ok(
        AppToolPolicyEvaluator::new(&config.config_layer_stack).apply_app_enabled_state(

View on GitHub (pinned to 339751715c)

When it happens

Trigger: Thrown at codex-rs/chatgpt/src/connectors.rs:51 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/83009e1276aa6b90. Report an issue: GitHub.