{"record":{"id":"9ac1bd9edf4fb946","repo":"zeroclaw-labs/zeroclaw","slug":"zeroclaw-agent-agent-agent-alias-is-not-conf","errorCode":null,"errorMessage":"`zeroclaw agent --agent {agent_alias}` is not configured (no [agents.{agent_alias}] entry)","messagePattern":"`zeroclaw agent --agent (.+?)` is not configured \\(no \\[agents\\.(.+?)\\] entry\\)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/main.rs","lineNumber":3687,"sourceCode":"                ta(\"cli-otp-enrollment-uri\", &[(\"uri\", &uri)], \"Enrollment URI\")\n            );\n        }\n    }\n\n    #[cfg(not(feature = \"agent-runtime\"))]\n    {\n        // Kernel-only mode: minimal CLI agent without channels/tools/gateway\n        match cli.command {\n            Commands::Agent {\n                agent: agent_alias,\n                message,\n                model_provider,\n                model,\n                temperature,\n                ..\n            } => {\n                if config.agent(&agent_alias).is_none() {\n                    anyhow::bail!(\n                        \"`zeroclaw agent --agent {agent_alias}` is not configured (no [agents.{agent_alias}] entry)\"\n                    );\n                }\n                let agent_entry = config.model_provider_for_agent(&agent_alias);\n                let final_temperature = temperature\n                    .unwrap_or_else(|| agent_entry.and_then(|e| e.temperature).unwrap_or(0.7));\n                if let Some(p) = &model_provider {\n                    // Parse --model-provider as \"type.alias\" or bare \"type\" (use agent alias as alias name).\n                    let (type_key, alias_key) =\n                        p.split_once('.').unwrap_or((p.as_str(), &agent_alias));\n                    let entry = config\n                        .providers\n                        .models\n                        .ensure(type_key, alias_key)\n                        .ok_or_else(|| {\n                            ::zeroclaw_log::record!(\n                                WARN,\n                                ::zeroclaw_log::Event::new(","sourceCodeStart":3669,"sourceCodeEnd":3705,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/main.rs#L3669-L3705","documentation":"Error \"`zeroclaw agent --agent {agent_alias}` is not configured (no [agents.{agent_alias}] entry)\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at src/main.rs:3687 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add an [agents.<alias>] section to config.toml or run `zeroclaw quickstart` to create the agent.","Run without --agent to use the default agent, or check the alias spelling against configured agents."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}