{"record":{"id":"ec090c330644ceed","repo":"Hmbown/CodeWhale","slug":"this-codewhale-account-is-configured-for-agent-provider","errorCode":null,"errorMessage":"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.","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/433685b2024e7bc4c99e1e2e326bcad39b4d9d65/crates/cli/src/cloud/machine.rs#L1165-L1193","documentation":"The account configuration (fetched from the Codewhale account) names an agent model provider that the installed CLI build does not recognize: `parse_route_kind(agent.model_provider.trim())` returned `None`. The CLI refuses to proceed and asks the user to upgrade the CLI or change the provider in the Codewhale app.","triggerScenarios":"Running a command that resolves the account's agent configuration when `agent.model_provider` holds a provider slug unknown to this build's `parse_route_kind` (newer server-side provider, or a typo/manual edit of account config).","commonSituations":"The Codewhale app onboarded a new provider before your CLI version learned about it; an older pinned CLI in CI; the account was switched to a provider your build never shipped with.","solutions":["Upgrade the CLI (`codewhale` update / reinstall latest) so `parse_route_kind` recognizes the provider.","Open the Codewhale app and switch the agent provider to a supported one, or run `codewhale account keys set <provider>`.","If the value should be valid, check for stray whitespace or casing in the account configuration."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// keep the set of providers your CLI build supports in sync before switching accounts\nlet supported: Vec<&str> = /* providers known to parse_route_kind in this build */ vec![];\nif !supported.contains(&agent.model_provider.trim()) {\n    eprintln!(\"account provider `{}` unsupported in this CLI build; upgrade codewhale\", agent.model_provider);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pin an up-to-date CLI version in CI and upgrade before the Codewhale app adds new providers.","Check the release notes for new provider support before switching your account's agent provider."],"tags":["provider","cli","version-mismatch"],"backgroundTag":"invalid-enum-value","analyzedSha":"433685b2024e7bc4c99e1e2e326bcad39b4d9d65","analyzedAt":"2026-09-15T12:24:24.634Z","contentChangedAt":"2026-09-15T12:24:24.634Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}