{"record":{"id":"f59ecbce501b5132","repo":"Hmbown/CodeWhale","slug":"this-codewhale-account-is-configured-for-agent-provider-f59ecb","errorCode":null,"errorMessage":"This Codewhale account is configured for agent provider `{provider}`, which this CLI build does not know. Upgrade `codewhale`, or choose a supported provider in the Codewhale app.","messagePattern":"This Codewhale account is configured for agent provider `(.+?)`, which this CLI build does not know\\. Upgrade `codewhale`, or choose a supported provider in the Codewhale app\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/cli/src/cloud/machine.rs","lineNumber":1183,"sourceCode":"/// Map the account's configured provider identifier onto a local route.\n///\n/// `codewhale review` hard-errors when a model resolves to several configured\n/// routes. When CI authenticates with a machine key the account has already\n/// answered that question, so the account's own provider is the disambiguator\n/// — no new flag, and no guess.\npub(crate) fn review_provider_from_agent(agent: &AgentState) -> Result<ProviderKind> {\n    if !agent.configured {\n        return Err(anyhow::Error::new(MachineError::new(\n            409,\n            \"account_agent_model_unconfigured\",\n            \"This Codewhale account has no agent model configured. Choose one in the Codewhale \\\napp, or run `codewhale account keys set <provider>`.\",\n            EXIT_AGENT_UNCONFIGURED,\n        )));\n    }\n    let provider = agent.model_provider.trim();\n    parse_route_kind(provider).ok_or_else(|| {\n        anyhow!(\n            \"This Codewhale account is configured for agent provider `{}`, which this CLI build \\\ndoes not know. Upgrade `codewhale`, or choose a supported provider in the Codewhale app.\",\n            printable(provider)\n        )\n    })\n}\n\n#[cfg(test)]\nmod tests;\n","sourceCodeStart":1165,"sourceCodeEnd":1193,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/cli/src/cloud/machine.rs#L1165-L1193","documentation":"The CLI reads the account's configured agent provider (`agent.model_provider`) and maps it via `parse_route_kind`. If the account is set to a provider identifier this build's route parser does not know, it throws this error advising an upgrade or a provider change in the Codewhale app.","triggerScenarios":"The Codewhale account (synced from the app) has `agent.model_provider` set to a provider id that `parse_route_kind` cannot resolve in the installed CLI build.","commonSituations":"Older CLI version predating a newly added provider; account switched to a beta/renamed provider in the web app; stale build distributed before the provider shipped.","solutions":["Upgrade `codewhale` to the latest release so the new provider id is known.","Choose a supported provider for the agent in the Codewhale web app, or run `codewhale account keys set <provider>`.","Check `codewhale --version` against the latest release if the provider is newly announced."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"// check the installed build knows the provider before syncing account config\nif parse_route_kind(account.agent.model_provider).is_none() {\n    eprintln!(\"upgrade codewhale or change the agent provider in the Codewhale app\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Keep the CLI on the latest release when switching providers in the web app.","Pick providers listed as supported by your CLI build.","Test account sync after provider changes."],"tags":["provider","versioning","configuration"],"backgroundTag":"unsupported-enum-value","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}