Answer: You configure the Cline Agent constructor with `new Agent(config: AgentRuntimeConfig)`, where `AgentRuntimeConfig` accepts either a prebuilt `model: AgentModel`, or `providerId`, `modelId`, and optional provider credentials (`apiKey`, `baseUrl`, `headers`). Status: Confirmed Entry: tool/cline/agents-and-automation/agent-constructor-config Revision: 1 Digest: sha256:76345c6413f062d5 (changes whenever the content changes) Timeline: Created: 2026-11-13T12:19:49Z Last changed: 2026-11-13T12:19:49Z Last verified: 2026-11-20T12:30:59Z Next check: 2026-11-21T12:30:59Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Constructor signature | new Agent(config: AgentRuntimeConfig) | [1] | 2026-11-20 Alternative option | model: AgentModel | [1] | 2026-11-20 providerId | providerId | [1] | 2026-11-20 modelId | modelId | [1] | 2026-11-20 Optional credentials | apiKey | [1] | 2026-11-20 providerId required | Yes, unless `model` supplied | [1] | 2026-11-20 modelId required | Yes, unless `model` supplied | [1] | 2026-11-20 Sources: [1] Cline. "Agent". https://docs.cline.bot/sdk/reference/agent.md Role: primary. Accessed: 2026-11-20T12:30:59Z Quote: "new Agent(config: AgentRuntimeConfig)" (Supports: Constructor signature) Quote: "a prebuilt `model: AgentModel`, or" (Supports: Alternative option) Quote: "`providerId`, `modelId`, and optional provider credentials (`apiKey`, `baseUrl`, `headers`)." (Supports: providerId, modelId) Quote: "optional provider credentials (`apiKey`, `baseUrl`, `headers`)" (Supports: Optional credentials) Quote: "| `providerId` | `string` | Yes, unless `model` supplied | Provider ID |" (Supports: providerId required) Quote: "| `modelId` | `string` | Yes, unless `model` supplied | Model ID |" (Supports: modelId required) Published: 2026-11-20T06:00:43Z Snapshot SHA-256: 363e1c3d62b69d55787f9cf3b12b780efd4dc40c45ba3e32107c9a0e25834928 (captured 2026-11-13T03:07:48Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T12:19:49Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:30:59Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:30:59Z Last attempt: 2026-11-20T12:30:59Z Notes and limitations: Extracted automatically from a single official source (section "Constructor"). Related: https://latestn.com/tool/cline/agents-and-automation/agent-event-types Which agent events does Cline emit through AgentConfig.onEvent? https://latestn.com/tool/cline/agents-and-automation/agent-prerequisites What are the prerequisites for building an agent with the Cline SDK? https://latestn.com/tool/cline/agents-and-automation/agent-result-fields What fields does the Cline AgentResult type contain, including finishReason values? https://latestn.com/tool/cline/admin-and-enterprise/vertex-ai-prerequisites What do I need before configuring Google Vertex AI as the organization-wide provider in Cline? https://latestn.com/tool/cline/admin-and-enterprise/yolo-mode-policies-by-org-size What YOLO Mode policies does Cline recommend for different organization sizes? https://latestn.com/tool/cline/agents-and-automation/abort-agent-run How do I abort a running Cline Agent run? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T12:19:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/agents-and-automation/agent-constructor-config/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cline/agents-and-automation/agent-constructor-config POST: https://latestn.com/dispute/tool/cline/agents-and-automation/agent-constructor-config with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/agents-and-automation/agent-constructor-config?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure the Cline Agent constructor with a provider and model? Revision 1, last verified 2026-11-20T12:30:59Z. https://latestn.com/tool/cline/agents-and-automation/agent-constructor-config (accessed 2026-11-21T10:03:44Z). @misc{LatestN_tool_cline_agents_and_automation_agent_constructor_config_r1, title = {How do I configure the Cline Agent constructor with a provider and model?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/agents-and-automation/agent-constructor-config}}, note = {Revision 1; digest sha256:76345c6413f062d5; last verified 2026-11-20T12:30:59Z; accessed 2026-11-21T10:03:44Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cline/agents-and-automation/agent-constructor-config