openai/codex · error · anyhow::Error

plugin ` ` was not found in marketplace

Error message

plugin `{plugin_name}` was not found in marketplace `{marketplace_name}`

What it means

Bailed by run_plugin_remove when the marketplace scan produced no marketplace that both matches marketplace_name and contains plugin_name. The plugin being removed does not exist in any matching marketplace root.

Solutions

  1. Check the plugin and marketplace names
  2. List available plugins in the marketplace
  3. Ensure the marketplace snapshot is loaded/updated
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at codex-rs/cli/src/plugin_cmd.rs:678 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/5896931ceab02c94. Report an issue: GitHub.

Appendix: source

Thrown at codex-rs/cli/src/plugin_cmd.rs:678

        codex_home,
        plugins_input,
        &outcome.errors,
        Some(marketplace_name),
    )?;
    let matches = outcome
        .marketplaces
        .into_iter()
        .filter(|marketplace| marketplace.name == marketplace_name)
        .filter(|marketplace| {
            marketplace
                .plugins
                .iter()
                .any(|plugin| plugin.name == plugin_name)
        })
        .collect::<Vec<_>>();

    match matches.as_slice() {
        [] => bail!("plugin `{plugin_name}` was not found in marketplace `{marketplace_name}`"),
        [marketplace] => Ok(marketplace.clone()),
        _ => bail!(
            "plugin `{plugin_name}` in marketplace `{marketplace_name}` matched multiple marketplace roots"
        ),
    }
}

pub(crate) struct ConfiguredMarketplaceSnapshotIssue {
    pub(crate) marketplace_name: String,
    pub(crate) path: PathBuf,
    pub(crate) message: String,
}

fn ensure_configured_marketplace_snapshots_loaded(
    codex_home: &std::path::Path,
    plugins_input: &PluginsConfigInput,
    load_errors: &[MarketplaceListError],
    marketplace_name: Option<&str>,

View on GitHub (pinned to 339751715c)