Ollama is a local LLM runtime that makes it easy to run open-source models on your machine. Agdi integrates with Ollama’s native API (/api/chat), supports streaming and tool calling, and can auto-discover local Ollama models when you opt in with OLLAMA_API_KEY (or an auth profile) and do not define an explicit models.providers.ollama entry.
Remote Ollama users: Do not use the /v1 OpenAI-compatible URL (http://host:11434/v1) with Agdi. This breaks tool calling and models may output raw tool JSON as plain text. Use the native Ollama API URL instead: baseUrl: "http://host:11434" (no /v1).
Quick start
Onboarding (recommended)
The fastest way to set up Ollama is through onboarding:
agdi onboard
Select Ollama from the provider list. Onboarding will:
Ask for the Ollama base URL where your instance can be reached (default http://127.0.0.1:11434).
Let you choose Cloud + Local (cloud models and local models) or Local (local models only).
Open a browser sign-in flow if you choose Cloud + Local and are not signed in to ollama.com.
Discover available models and suggest defaults.
Auto-pull the selected model if it is not available locally.
If you prefer manual setup, enable Ollama for Agdi directly (any value works; Ollama doesn’t require a real key):
# Set environment variableexport OLLAMA_API_KEY="ollama-local"# Or configure in your config fileagdi config set models.providers.ollama.apiKey "ollama-local"
Inspect or switch models:
agdi models listagdi models set ollama/glm-4.7-flash
When you set OLLAMA_API_KEY (or an auth profile) and do not define models.providers.ollama, Agdi discovers models from the local Ollama instance at http://127.0.0.1:11434:
Queries /api/tags
Uses best-effort /api/show lookups to read contextWindow when available
Marks reasoning with a model-name heuristic (r1, reasoning, think)
Sets maxTokens to the default Ollama max-token cap used by Agdi
Sets all costs to 0
This avoids manual model entries while keeping the catalog aligned with the local Ollama instance.To see what models are available:
ollama listagdi models list
To add a new model, simply pull it with Ollama:
ollama pull mistral
The new model will be automatically discovered and available to use.If you set models.providers.ollama explicitly, auto-discovery is skipped and you must define models manually (see below).
Configuration
Basic setup (implicit discovery)
The simplest way to enable Ollama is via environment variable:
export OLLAMA_API_KEY="ollama-local"
Explicit setup (manual models)
Use explicit config when:
Ollama runs on another host/port.
You want to force specific context windows or model lists.
If OLLAMA_API_KEY is set, you can omit apiKey in the provider entry and Agdi will fill it for availability checks.
Custom base URL (explicit config)
If Ollama is running on a different host or port (explicit config disables auto-discovery, so define models manually):
{ models: { providers: { ollama: { apiKey: "ollama-local", baseUrl: "http://ollama-host:11434", // No /v1 - use native Ollama API URL api: "ollama", // Set explicitly to guarantee native tool-calling behavior }, }, },}
Do not add /v1 to the URL. The /v1 path uses OpenAI-compatible mode, where tool calling is not reliable. Use the base Ollama URL without a path suffix.
Model selection
Once configured, all your Ollama models are available:
Cloud models let you run cloud-hosted models (for example kimi-k2.5:cloud, minimax-m2.5:cloud, glm-5:cloud) alongside your local models.To use cloud models, select Cloud + Local mode during setup. The wizard checks whether you are signed in and opens a browser sign-in flow when needed. If authentication cannot be verified, the wizard falls back to local model defaults.You can also sign in directly at ollama.com/signin.
Advanced
Reasoning models
Agdi treats models with names such as deepseek-r1, reasoning, or think as reasoning-capable by default:
ollama pull deepseek-r1:32b
Model Costs
Ollama is free and runs locally, so all model costs are set to $0.
Streaming Configuration
Agdi’s Ollama integration uses the native Ollama API (/api/chat) by default, which fully supports streaming and tool calling simultaneously. No special configuration is needed.
Legacy OpenAI-Compatible Mode
Tool calling is not reliable in OpenAI-compatible mode. Use this mode only if you need OpenAI format for a proxy and do not depend on native tool calling behavior.
If you need to use the OpenAI-compatible endpoint instead (e.g., behind a proxy that only supports OpenAI format), set api: "openai-completions" explicitly:
This mode may not support streaming + tool calling simultaneously. You may need to disable streaming with params: { streaming: false } in model config.When api: "openai-completions" is used with Ollama, Agdi injects options.num_ctx by default so Ollama does not silently fall back to a 4096 context window. If your proxy/upstream rejects unknown options fields, disable this behavior:
For auto-discovered models, Agdi uses the context window reported by Ollama when available, otherwise it falls back to the default Ollama context window used by Agdi. You can override contextWindow and maxTokens in explicit provider config.
Troubleshooting
Ollama not detected
Make sure Ollama is running and that you set OLLAMA_API_KEY (or an auth profile), and that you did not define an explicit models.providers.ollama entry:
ollama serve
And that the API is accessible:
curl http://localhost:11434/api/tags
No models available
If your model is not listed, either:
Pull the model locally, or
Define the model explicitly in models.providers.ollama.
To add models:
ollama list # See what's installedollama pull glm-4.7-flashollama pull gpt-oss:20bollama pull llama3.3 # Or another model
Connection refused
Check that Ollama is running on the correct port:
# Check if Ollama is runningps aux | grep ollama# Or restart Ollamaollama serve
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agdi","description":"Local-first agent workspace for assistants, automations, connected chat apps, and real tool execution on your own machine or private host.","colors":{"primary":"#2D7FF5","light":"#5BA0FF","dark":"#2266CC"},"logo":{"light":"https://mintcdn.com/agdiai-597e782f/655WPadtB96t29Rn/assets/agdi-mark.svg?fit=max\u0026auto=format\u0026n=655WPadtB96t29Rn\u0026q=85\u0026s=6ee0846be8797573d4bffde5f0eff316","dark":"https://mintcdn.com/agdiai-597e782f/655WPadtB96t29Rn/assets/agdi-mark.svg?fit=max\u0026auto=format\u0026n=655WPadtB96t29Rn\u0026q=85\u0026s=6ee0846be8797573d4bffde5f0eff316"},"favicon":"https://mintcdn.com/agdiai-597e782f/655WPadtB96t29Rn/assets/agdi-mark.svg?fit=max\u0026auto=format\u0026n=655WPadtB96t29Rn\u0026q=85\u0026s=6ee0846be8797573d4bffde5f0eff316","navbar":{"links":[{"icon":"github","href":"https://github.com/anassagd432/Agdi","label":"GitHub"},{"icon":"package","href":"https://github.com/anassagd432/Agdi/releases","label":"Releases"}]},"fonts":{"heading":{"family":"DM Sans"},"body":{"family":"Fragment Mono"}},"icons":{"library":"lucide"},"styling":{"codeblocks":{"theme":{"light":"min-light","dark":"min-dark"}},"latex":true},"navigation":{"languages":[{"language":"en","href":""},{"language":"zh-Hans","href":"zh-CN"},{"language":"ja","href":"ja-JP"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agdiai-597e782f","hasAudioNarration":false,"actualSubdomain":"agdiai-597e782f","customDomains":[],"gitSource":{"type":"github","owner":"anassagd432","repo":"agdi","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ab33d680f22712cd987acc8","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"en","tag":"Reference","count":73},{"language":"zh-Hans","tag":"参考","count":63},{"language":"en","tag":"Tools \u0026 Plugins","count":61},{"language":"en","tag":"Workspace \u0026 Ops","count":55},{"language":"zh-Hans","tag":"工具","count":48},{"language":"en","tag":"CLI commands","count":47},{"language":"en","tag":"Models","count":41},{"language":"zh-Hans","tag":"CLI 命令","count":41},{"language":"zh-Hans","tag":"网关与运维","count":37},{"language":"en","tag":"Providers","count":36},{"language":"en","tag":"Runtime","count":34},{"language":"en","tag":"Channels","count":30},{"language":"en","tag":"Install","count":28},{"language":"zh-Hans","tag":"消息渠道","count":28},{"language":"en","tag":"Tools","count":27},{"language":"zh-Hans","tag":"网关","count":26},{"language":"zh-Hans","tag":"平台","count":26},{"language":"zh-Hans","tag":"模型","count":24},{"language":"zh-Hans","tag":"帮助","count":20},{"language":"zh-Hans","tag":"消息平台","count":20},{"language":"ja","tag":"はじめに","count":3},{"language":"ja","tag":"初回セットアップ","count":2},{"language":"ja","tag":"概要","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#content>h1:first-of-type{display:none!important}.nav-tabs{position:relative}.nav-tabs-item>div{opacity:0}.nav-tabs-underline{position:absolute;left:0;bottom:0;height:1.5px;width:var(--nav-tab-underline-width, 0);transform:translateX(var(--nav-tab-underline-x, 0));background-color:rgb(var(--primary));border-radius:999px;pointer-events:none;opacity:0;transition:transform 260ms ease-in-out,\n width 260ms ease-in-out,\n opacity 160ms ease-in-out;will-change:transform, width}html.dark .nav-tabs-underline{background-color:rgb(var(--primary-light))}.nav-tabs-underline-ready .nav-tabs-underline{opacity:1}"}],"page":{"pagePath":"providers/ollama","slug":"/providers/ollama","pageMetadata":{"summary":"Run Agdi with Ollama (cloud and local models)","read_when":["You want to run Agdi with cloud or local models via Ollama","You need Ollama setup and configuration guidance"],"title":"Ollama","description":null,"href":"/providers/ollama"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`ollama`,children:`Ollama`}),`\n`,_jsxs(_components.p,{children:[`Ollama is a local LLM runtime that makes it easy to run open-source models on your machine. Agdi integrates with Ollama’s native API (`,_jsx(_components.code,{children:`/api/chat`}),`), supports streaming and tool calling, and can auto-discover local Ollama models when you opt in with `,_jsx(_components.code,{children:`OLLAMA_API_KEY`}),` (or an auth profile) and do not define an explicit `,_jsx(_components.code,{children:`models.providers.ollama`}),` entry.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Remote Ollama users`}),`: Do not use the `,_jsx(_components.code,{children:`/v1`}),` OpenAI-compatible URL (`,_jsx(_components.code,{children:`http://host:11434/v1`}),`) with Agdi. This breaks tool calling and models may output raw tool JSON as plain text. Use the native Ollama API URL instead: `,_jsx(_components.code,{children:`baseUrl: \"http://host:11434\"`}),` (no `,_jsx(_components.code,{children:`/v1`}),`).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick start`}),`\n`,_jsx(Heading,{level:`3`,id:`onboarding-recommended`,children:`Onboarding (recommended)`}),`\n`,_jsx(_components.p,{children:`The fastest way to set up Ollama is through onboarding:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`agdi`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` onboard`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Ollama`}),` from the provider list. Onboarding will:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Ask for the Ollama base URL where your instance can be reached (default `,_jsx(_components.code,{children:`http://127.0.0.1:11434`}),`).`]}),`\n`,_jsxs(_components.li,{children:[`Let you choose `,_jsx(_components.strong,{children:`Cloud + Local`}),` (cloud models and local models) or `,_jsx(_components.strong,{children:`Local`}),` (local models only).`]}),`\n`,_jsxs(_components.li,{children:[`Open a browser sign-in flow if you choose `,_jsx(_components.strong,{children:`Cloud + Local`}),` and are not signed in to ollama.com.`]}),`\n`,_jsx(_components.li,{children:`Discover available models and suggest defaults.`}),`\n`,_jsx(_components.li,{children:`Auto-pull the selected model if it is not available locally.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Non-interactive mode is also supported:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`agdi`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` onboard`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` --non-interactive`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` --auth-choice`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` ollama`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` --accept-risk`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Optionally specify a custom base URL or model:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`agdi`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` onboard`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` --non-interactive`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` --auth-choice`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` ollama`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` --custom-base-url`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"http://ollama-host:11434\"`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` --custom-model-id`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"qwen3.5:27b\"`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` --accept-risk`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`manual-setup`,children:`Manual setup`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Install Ollama: `,_jsx(_components.a,{href:`https://ollama.com/download`,children:`https://ollama.com/download`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Pull a local model if you want local inference:`}),`\n`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` pull`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` glm-4.7-flash`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:`# or`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` pull`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` gpt-oss:20b`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:`# or`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` pull`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` llama3.3`})]}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`3`,children:[`\n`,_jsx(_components.li,{children:`If you want cloud models too, sign in:`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` signin`})]}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsxs(_components.li,{children:[`Run onboarding and choose `,_jsx(_components.code,{children:`Ollama`}),`:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`agdi`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` onboard`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Local`}),`: local models only`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Cloud + Local`}),`: local models plus cloud models`]}),`\n`,_jsxs(_components.li,{children:[`Cloud models such as `,_jsx(_components.code,{children:`kimi-k2.5:cloud`}),`, `,_jsx(_components.code,{children:`minimax-m2.5:cloud`}),`, and `,_jsx(_components.code,{children:`glm-5:cloud`}),` do `,_jsx(_components.strong,{children:`not`}),` require a local `,_jsx(_components.code,{children:`ollama pull`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Agdi currently suggests:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`local default: `,_jsx(_components.code,{children:`glm-4.7-flash`})]}),`\n`,_jsxs(_components.li,{children:[`cloud defaults: `,_jsx(_components.code,{children:`kimi-k2.5:cloud`}),`, `,_jsx(_components.code,{children:`minimax-m2.5:cloud`}),`, `,_jsx(_components.code,{children:`glm-5:cloud`})]}),`\n`]}),`\n`,_jsxs(_components.ol,{start:`5`,children:[`\n`,_jsx(_components.li,{children:`If you prefer manual setup, enable Ollama for Agdi directly (any value works; Ollama doesn’t require a real key):`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:`# Set environment variable`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D32F2F`,\"--shiki-dark\":`#F97583`},children:`export`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` OLLAMA_API_KEY`}),_jsx(_components.span,{style:{color:`#D32F2F`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:`\"ollama-local\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:`# Or configure in your config file`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`agdi`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` config`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` set`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models.providers.ollama.apiKey`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama-local\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`6`,children:[`\n`,_jsx(_components.li,{children:`Inspect or switch models:`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`agdi`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` list`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`agdi`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` set`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` ollama/glm-4.7-flash`})]}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`7`,children:[`\n`,_jsx(_components.li,{children:`Or set the default in config:`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json5`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`json5`,children:_jsxs(_components.code,{language:`json5`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` agents`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` defaults`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` model`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` { `}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:`primary`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama/glm-4.7-flash\"`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`model-discovery-implicit-provider`,children:`Model discovery (implicit provider)`}),`\n`,_jsxs(_components.p,{children:[`When you set `,_jsx(_components.code,{children:`OLLAMA_API_KEY`}),` (or an auth profile) and `,_jsx(_components.strong,{children:`do not`}),` define `,_jsx(_components.code,{children:`models.providers.ollama`}),`, Agdi discovers models from the local Ollama instance at `,_jsx(_components.code,{children:`http://127.0.0.1:11434`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Queries `,_jsx(_components.code,{children:`/api/tags`})]}),`\n`,_jsxs(_components.li,{children:[`Uses best-effort `,_jsx(_components.code,{children:`/api/show`}),` lookups to read `,_jsx(_components.code,{children:`contextWindow`}),` when available`]}),`\n`,_jsxs(_components.li,{children:[`Marks `,_jsx(_components.code,{children:`reasoning`}),` with a model-name heuristic (`,_jsx(_components.code,{children:`r1`}),`, `,_jsx(_components.code,{children:`reasoning`}),`, `,_jsx(_components.code,{children:`think`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Sets `,_jsx(_components.code,{children:`maxTokens`}),` to the default Ollama max-token cap used by Agdi`]}),`\n`,_jsxs(_components.li,{children:[`Sets all costs to `,_jsx(_components.code,{children:`0`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This avoids manual model entries while keeping the catalog aligned with the local Ollama instance.`}),`\n`,_jsx(_components.p,{children:`To see what models are available:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` list`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`agdi`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` list`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`To add a new model, simply pull it with Ollama:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` pull`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` mistral`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The new model will be automatically discovered and available to use.`}),`\n`,_jsxs(_components.p,{children:[`If you set `,_jsx(_components.code,{children:`models.providers.ollama`}),` explicitly, auto-discovery is skipped and you must define models manually (see below).`]}),`\n`,_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),`\n`,_jsx(Heading,{level:`3`,id:`basic-setup-implicit-discovery`,children:`Basic setup (implicit discovery)`}),`\n`,_jsx(_components.p,{children:`The simplest way to enable Ollama is via environment variable:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D32F2F`,\"--shiki-dark\":`#F97583`},children:`export`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` OLLAMA_API_KEY`}),_jsx(_components.span,{style:{color:`#D32F2F`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:`\"ollama-local\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`explicit-setup-manual-models`,children:`Explicit setup (manual models)`}),`\n`,_jsx(_components.p,{children:`Use explicit config when:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Ollama runs on another host/port.`}),`\n`,_jsx(_components.li,{children:`You want to force specific context windows or model lists.`}),`\n`,_jsx(_components.li,{children:`You want fully manual model definitions.`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`json5`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`json5`,children:_jsxs(_components.code,{language:`json5`,numberOfLines:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` providers`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` ollama`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` baseUrl`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"http://ollama-host:11434\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama-local\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` api`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` id`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"gpt-oss:20b\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` name`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"GPT-OSS 20B\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` reasoning`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#1976D2`,\"--shiki-dark\":`#79B8FF`},children:` false`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` input`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` [`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`]`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` cost`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` { `}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:`input`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` 0`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` output`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` 0`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` cacheRead`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` 0`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` cacheWrite`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` 0 }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` contextWindow`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` 8192`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` maxTokens`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` 8192 * 10`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`OLLAMA_API_KEY`}),` is set, you can omit `,_jsx(_components.code,{children:`apiKey`}),` in the provider entry and Agdi will fill it for availability checks.`]}),`\n`,_jsx(Heading,{level:`3`,id:`custom-base-url-explicit-config`,children:`Custom base URL (explicit config)`}),`\n`,_jsx(_components.p,{children:`If Ollama is running on a different host or port (explicit config disables auto-discovery, so define models manually):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json5`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`json5`,children:_jsxs(_components.code,{language:`json5`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` providers`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` ollama`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama-local\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` baseUrl`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"http://ollama-host:11434\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:` // No /v1 - use native Ollama API URL`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` api`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:` // Set explicitly to guarantee native tool-calling behavior`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not add `,_jsx(_components.code,{children:`/v1`}),` to the URL. The `,_jsx(_components.code,{children:`/v1`}),` path uses OpenAI-compatible mode, where tool calling is not reliable. Use the base Ollama URL without a path suffix.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`model-selection`,children:`Model selection`}),`\n`,_jsx(_components.p,{children:`Once configured, all your Ollama models are available:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json5`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`json5`,children:_jsxs(_components.code,{language:`json5`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` agents`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` defaults`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` model`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` primary`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama/gpt-oss:20b\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` fallbacks`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` [`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:`\"ollama/llama3.3\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama/qwen2.5-coder:32b\"`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`]`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`cloud-models`,children:`Cloud models`}),`\n`,_jsxs(_components.p,{children:[`Cloud models let you run cloud-hosted models (for example `,_jsx(_components.code,{children:`kimi-k2.5:cloud`}),`, `,_jsx(_components.code,{children:`minimax-m2.5:cloud`}),`, `,_jsx(_components.code,{children:`glm-5:cloud`}),`) alongside your local models.`]}),`\n`,_jsxs(_components.p,{children:[`To use cloud models, select `,_jsx(_components.strong,{children:`Cloud + Local`}),` mode during setup. The wizard checks whether you are signed in and opens a browser sign-in flow when needed. If authentication cannot be verified, the wizard falls back to local model defaults.`]}),`\n`,_jsxs(_components.p,{children:[`You can also sign in directly at `,_jsx(_components.a,{href:`https://ollama.com/signin`,children:`ollama.com/signin`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`advanced`,children:`Advanced`}),`\n`,_jsx(Heading,{level:`3`,id:`reasoning-models`,children:`Reasoning models`}),`\n`,_jsxs(_components.p,{children:[`Agdi treats models with names such as `,_jsx(_components.code,{children:`deepseek-r1`}),`, `,_jsx(_components.code,{children:`reasoning`}),`, or `,_jsx(_components.code,{children:`think`}),` as reasoning-capable by default:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` pull`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` deepseek-r1:32b`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`model-costs`,children:`Model Costs`}),`\n`,_jsx(_components.p,{children:`Ollama is free and runs locally, so all model costs are set to $0.`}),`\n`,_jsx(Heading,{level:`3`,id:`streaming-configuration`,children:`Streaming Configuration`}),`\n`,_jsxs(_components.p,{children:[`Agdi’s Ollama integration uses the `,_jsx(_components.strong,{children:`native Ollama API`}),` (`,_jsx(_components.code,{children:`/api/chat`}),`) by default, which fully supports streaming and tool calling simultaneously. No special configuration is needed.`]}),`\n`,_jsx(Heading,{level:`4`,id:`legacy-openai-compatible-mode`,children:`Legacy OpenAI-Compatible Mode`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Tool calling is not reliable in OpenAI-compatible mode.`}),` Use this mode only if you need OpenAI format for a proxy and do not depend on native tool calling behavior.`]})}),`\n`,_jsxs(_components.p,{children:[`If you need to use the OpenAI-compatible endpoint instead (e.g., behind a proxy that only supports OpenAI format), set `,_jsx(_components.code,{children:`api: \"openai-completions\"`}),` explicitly:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json5`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`json5`,children:_jsxs(_components.code,{language:`json5`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` providers`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` ollama`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` baseUrl`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"http://ollama-host:11434/v1\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` api`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"openai-completions\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` injectNumCtxForOpenAICompat`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#1976D2`,\"--shiki-dark\":`#79B8FF`},children:` true`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`}),_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:` // default: true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama-local\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` [...]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This mode may not support streaming + tool calling simultaneously. You may need to disable streaming with `,_jsx(_components.code,{children:`params: { streaming: false }`}),` in model config.`]}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`api: \"openai-completions\"`}),` is used with Ollama, Agdi injects `,_jsx(_components.code,{children:`options.num_ctx`}),` by default so Ollama does not silently fall back to a 4096 context window. If your proxy/upstream rejects unknown `,_jsx(_components.code,{children:`options`}),` fields, disable this behavior:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json5`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`json5`,children:_jsxs(_components.code,{language:`json5`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` providers`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` ollama`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` baseUrl`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"http://ollama-host:11434/v1\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` api`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"openai-completions\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` injectNumCtxForOpenAICompat`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#1976D2`,\"--shiki-dark\":`#79B8FF`},children:` false`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFAB70`},children:` \"ollama-local\"`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` models`}),_jsx(_components.span,{style:{color:`#212121`,\"--shiki-dark\":`#BBBBBB`},children:`:`}),_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` [...]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292EFF`,\"--shiki-dark\":`#B392F0`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`context-windows`,children:`Context windows`}),`\n`,_jsxs(_components.p,{children:[`For auto-discovered models, Agdi uses the context window reported by Ollama when available, otherwise it falls back to the default Ollama context window used by Agdi. You can override `,_jsx(_components.code,{children:`contextWindow`}),` and `,_jsx(_components.code,{children:`maxTokens`}),` in explicit provider config.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Heading,{level:`3`,id:`ollama-not-detected`,children:`Ollama not detected`}),`\n`,_jsxs(_components.p,{children:[`Make sure Ollama is running and that you set `,_jsx(_components.code,{children:`OLLAMA_API_KEY`}),` (or an auth profile), and that you did `,_jsx(_components.strong,{children:`not`}),` define an explicit `,_jsx(_components.code,{children:`models.providers.ollama`}),` entry:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` serve`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`And that the API is accessible:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` http://localhost:11434/api/tags`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`no-models-available`,children:`No models available`}),`\n`,_jsx(_components.p,{children:`If your model is not listed, either:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Pull the model locally, or`}),`\n`,_jsxs(_components.li,{children:[`Define the model explicitly in `,_jsx(_components.code,{children:`models.providers.ollama`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`To add models:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` list`}),_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:` # See what's installed`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` pull`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` glm-4.7-flash`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` pull`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` gpt-oss:20b`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` pull`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` llama3.3`}),_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:` # Or another model`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`connection-refused`,children:`Connection refused`}),`\n`,_jsx(_components.p,{children:`Check that Ollama is running on the correct port:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes min-light min-dark`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1f1f1f`,color:`#24292eff`,\"--shiki-dark\":`#b392f0`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:`# Check if Ollama is running`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ps`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` aux`}),_jsx(_components.span,{style:{color:`#D32F2F`,\"--shiki-dark\":`#F97583`},children:` |`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` grep`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` ollama`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#C2C3C5`,\"--shiki-dark\":`#6B737C`},children:`# Or restart Ollama`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`ollama`}),_jsx(_components.span,{style:{color:`#2B5581`,\"--shiki-dark\":`#9DB1C5`},children:` serve`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See Also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/concepts/model-providers`,children:`Model Providers`}),` - Overview of all providers`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/concepts/models`,children:`Model Selection`}),` - How to choose models`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/gateway/configuration`,children:`Configuration`}),` - Full config reference`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"min-light","dark":"min-dark"}},"config":{},"pageMetadata":{"summary":"Run Agdi with Ollama (cloud and local models)","read_when":["You want to run Agdi with cloud or local models via Ollama","You need Ollama setup and configuration guidance"],"title":"Ollama","description":null,"href":"/providers/ollama"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Ollama","slug":"ollama","depth":1,"children":[]},{"title":"Quick start","slug":"quick-start","depth":2,"children":[{"title":"Onboarding (recommended)","slug":"onboarding-recommended","depth":3,"children":[]},{"title":"Manual setup","slug":"manual-setup","depth":3,"children":[]}]},{"title":"Model discovery (implicit provider)","slug":"model-discovery-implicit-provider","depth":2,"children":[]},{"title":"Configuration","slug":"configuration","depth":2,"children":[{"title":"Basic setup (implicit discovery)","slug":"basic-setup-implicit-discovery","depth":3,"children":[]},{"title":"Explicit setup (manual models)","slug":"explicit-setup-manual-models","depth":3,"children":[]},{"title":"Custom base URL (explicit config)","slug":"custom-base-url-explicit-config","depth":3,"children":[]},{"title":"Model selection","slug":"model-selection","depth":3,"children":[]}]},{"title":"Cloud models","slug":"cloud-models","depth":2,"children":[]},{"title":"Advanced","slug":"advanced","depth":2,"children":[{"title":"Reasoning models","slug":"reasoning-models","depth":3,"children":[]},{"title":"Model Costs","slug":"model-costs","depth":3,"children":[]},{"title":"Streaming Configuration","slug":"streaming-configuration","depth":3,"children":[]},{"title":"Legacy OpenAI-Compatible Mode","slug":"legacy-openai-compatible-mode","depth":4,"children":[]},{"title":"Context windows","slug":"context-windows","depth":3,"children":[]}]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[{"title":"Ollama not detected","slug":"ollama-not-detected","depth":3,"children":[]},{"title":"No models available","slug":"no-models-available","depth":3,"children":[]},{"title":"Connection refused","slug":"connection-refused","depth":3,"children":[]}]},{"title":"See Also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/agdiai-597e782f/27fa1e35cfee10a0/nav-tabs-underline.js"],"subdomain":"agdiai-597e782f","siteName":"Agdi","title":"Ollama - Agdi","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/providers/ollama","matchLevel":0},"zh-Hans":{"href":"/zh-CN/providers/ollama","matchLevel":1},"ja":{"href":"/ja-JP","matchLevel":4}}},"lastModified":"2026-05-19T00:09:48.622Z","originalFileLocation":"providers/ollama.md","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Agdi\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ollama - Agdi\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agdi\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://agdiai-597e782f.mintlify.app/providers/ollama\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agdiai-597e782f.mintlify.site/_mintlify/api/og/v2?division=Providers\u0026amp;title=Ollama\u0026amp;theme=5f7e62ada99f9144d8a99b50\u0026amp;signature=9d18ef3f4c50158a76037d2ffc34b639f16b0066eaf7f9517a84e3cfd46f6f0e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Ollama - Agdi\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agdiai-597e782f.mintlify.site/_mintlify/api/og/v2?division=Providers\u0026amp;title=Ollama\u0026amp;theme=5f7e62ada99f9144d8a99b50\u0026amp;signature=9d18ef3f4c50158a76037d2ffc34b639f16b0066eaf7f9517a84e3cfd46f6f0e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/agdiai-597e782f/RRAJpq1o960cFJkG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agdi\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2D7FF5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://agdiai-597e782f.mintlify.app/providers/ollama\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/providers/ollama.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://agdiai-597e782f.mintlify.app/providers/ollama\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://agdiai-597e782f.mintlify.app/zh-CN/providers/ollama\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://agdiai-597e782f.mintlify.app/providers/ollama\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://agdiai-597e782f.mintlify.app/#organization\",\"name\":\"Agdi\",\"url\":\"https://agdiai-597e782f.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agdiai-597e782f/655WPadtB96t29Rn/assets/agdi-mark.svg?fit=max\u0026auto=format\u0026n=655WPadtB96t29Rn\u0026q=85\u0026s=6ee0846be8797573d4bffde5f0eff316\"}},{\"@type\":\"WebSite\",\"@id\":\"https://agdiai-597e782f.mintlify.app#website\",\"name\":\"Agdi\",\"url\":\"https://agdiai-597e782f.mintlify.app\",\"publisher\":{\"@id\":\"https://agdiai-597e782f.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://agdiai-597e782f.mintlify.app/providers/ollama#webpage\",\"url\":\"https://agdiai-597e782f.mintlify.app/providers/ollama\",\"name\":\"Ollama\",\"dateModified\":\"2026-05-19T00:09:48.622Z\",\"isPartOf\":{\"@id\":\"https://agdiai-597e782f.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://agdiai-597e782f.mintlify.app/providers/ollama#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://agdiai-597e782f.mintlify.app/providers/ollama#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Providers\",\"item\":\"https://agdiai-597e782f.mintlify.app/providers/anthropic\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ollama\",\"item\":\"https://agdiai-597e782f.mintlify.app/providers/ollama\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://agdiai-597e782f.mintlify.app/providers/ollama#article\",\"headline\":\"Ollama\",\"name\":\"Ollama\",\"url\":\"https://agdiai-597e782f.mintlify.app/providers/ollama\",\"mainEntityOfPage\":{\"@id\":\"https://agdiai-597e782f.mintlify.app/providers/ollama#webpage\"},\"dateModified\":\"2026-05-19T00:09:48.622Z\",\"publisher\":{\"@id\":\"https://agdiai-597e782f.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://agdiai-597e782f.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agdi\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agdi\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/providers/ollama.md","siteName":"Agdi","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":""}]},{"tab":"Install","pages":[{"title":"Install","href":"/install"}]},{"tab":"Channels","pages":[{"title":"Channels","href":"/channels"}]},{"tab":"Agents","pages":[{"title":"Agents","href":"/concepts/architecture"}]},{"tab":"Tools \u0026 Plugins","pages":[{"title":"Tools \u0026 Plugins","href":"/tools"}]},{"tab":"Models","groups":[{"group":"Overview","pages":[{"title":"Provider Directory","href":"/providers"},{"title":"Model Provider Quickstart","href":"/providers/models"}]},{"group":"Concepts and configuration","pages":[{"title":"Models CLI","href":"/concepts/models"},{"title":"Model Providers","href":"/concepts/model-providers"},{"title":"Model Failover","href":"/concepts/model-failover"}]},{"group":"Providers","pages":[{"title":"Anthropic","href":"/providers/anthropic"},{"title":"Amazon Bedrock","href":"/providers/bedrock"},{"title":"Claude Max API Proxy","href":"/providers/claude-max-api-proxy"},{"title":"Cloudflare AI Gateway","href":"/providers/cloudflare-ai-gateway"},{"title":"Deepgram","href":"/providers/deepgram"},{"title":null,"href":"/providers/deepseek"},{"title":"GitHub Copilot","href":"/providers/github-copilot"},{"title":"GLM Models","href":"/providers/glm"},{"title":"Google (Gemini)","href":"/providers/google"},{"title":"Groq","href":"/providers/groq"},{"title":"Hugging Face (Inference)","href":"/providers/huggingface"},{"title":"Kilo Gateway","href":"/providers/kilocode"},{"title":"LiteLLM","href":"/providers/litellm"},{"title":"MiniMax","href":"/providers/minimax"},{"title":"Mistral","href":"/providers/mistral"},{"title":"Moonshot AI","href":"/providers/moonshot"},{"title":"NVIDIA","description":null,"href":"/providers/nvidia"},{"title":"Ollama","href":"/providers/ollama"},{"title":"OpenAI","description":null,"href":"/providers/openai"},{"title":"OpenCode","href":"/providers/opencode"},{"title":"OpenCode Go","href":"/providers/opencode-go"},{"title":"OpenRouter","href":"/providers/openrouter"},{"title":"Perplexity (Provider)","href":"/providers/perplexity-provider"},{"title":"Qianfan","href":"/providers/qianfan"},{"title":"Qwen / Model Studio","href":"/providers/qwen_modelstudio"},{"title":"Qwen","href":"/providers/qwen"},{"title":"SGLang","href":"/providers/sglang"},{"title":"Synthetic","href":"/providers/synthetic"},{"title":"Together AI","href":"/providers/together"},{"title":"Venice AI","href":"/providers/venice"},{"title":"Vercel AI Gateway","href":"/providers/vercel-ai-gateway"},{"title":"vLLM","href":"/providers/vllm"},{"title":"Volcengine (Doubao)","href":"/providers/volcengine"},{"title":"xAI","href":"/providers/xai"},{"title":"Xiaomi MiMo","href":"/providers/xiaomi"},{"title":"Z.AI","href":"/providers/zai"}]}]},{"tab":"Platforms","pages":[{"title":"Platforms","href":"/platforms"}]},{"tab":"Workspace \u0026 Ops","pages":[{"title":"Workspace \u0026 Ops","href":"/gateway"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/cli"}]},{"tab":"Help","pages":[{"title":"Help","href":"/help"}]}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-CN/providers/ollama"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja-JP"}]}]},"basePath":"","title":"Ollama - Agdi","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}