fix(cli): allow Ollama apiKey config set without predeclared provider#29299
Merged
vincentkoc merged 3 commits intomainfrom Feb 28, 2026
Merged
fix(cli): allow Ollama apiKey config set without predeclared provider#29299vincentkoc merged 3 commits intomainfrom
vincentkoc merged 3 commits intomainfrom
Conversation
🔒 Aisle Security Analysis✅ We scanned this PR and did not find any security vulnerabilities. Aisle supplements but does not replace security review. Analyzed PR: #29299 at commit |
Contributor
Greptile SummaryThis PR fixes the documented Ollama onboarding path by auto-seeding a valid minimal provider object when setting
The fix aligns with the documented Quick Start instructions in Confidence Score: 5/5
Last reviewed commit: 562dfb8 |
vincentkoc
added a commit
that referenced
this pull request
Feb 28, 2026
vincentkoc
added a commit
that referenced
this pull request
Feb 28, 2026
18 tasks
stolyarchuk
pushed a commit
to llmxio/openclaw
that referenced
this pull request
Feb 28, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
stolyarchuk
pushed a commit
to llmxio/openclaw
that referenced
this pull request
Feb 28, 2026
r4jiv007
pushed a commit
to r4jiv007/openclaw
that referenced
this pull request
Feb 28, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
r4jiv007
pushed a commit
to r4jiv007/openclaw
that referenced
this pull request
Feb 28, 2026
mylukin
pushed a commit
to mylukin/openclaw
that referenced
this pull request
Feb 28, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
mylukin
pushed a commit
to mylukin/openclaw
that referenced
this pull request
Feb 28, 2026
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path (cherry picked from commit d6a87ae)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…penclaw#29579) (cherry picked from commit df15aa2)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path (cherry picked from commit d6a87ae)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…penclaw#29579) (cherry picked from commit df15aa2)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path (cherry picked from commit d6a87ae)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…penclaw#29579) (cherry picked from commit df15aa2)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Mar 1, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Mar 1, 2026
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Mar 1, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Mar 1, 2026
6 tasks
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
…penclaw#29579) (cherry picked from commit 5d51e99) # Conflicts: # CHANGELOG.md
ansh
pushed a commit
to vibecode/openclaw
that referenced
this pull request
Mar 2, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
ansh
pushed a commit
to vibecode/openclaw
that referenced
this pull request
Mar 2, 2026
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
This was referenced Mar 2, 2026
safzanpirani
pushed a commit
to safzanpirani/clawdbot
that referenced
this pull request
Mar 2, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
safzanpirani
pushed a commit
to safzanpirani/clawdbot
that referenced
this pull request
Mar 2, 2026
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
robertchang-ga
pushed a commit
to robertchang-ga/openclaw
that referenced
this pull request
Mar 2, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
robertchang-ga
pushed a commit
to robertchang-ga/openclaw
that referenced
this pull request
Mar 2, 2026
execute008
pushed a commit
to execute008/openclaw
that referenced
this pull request
Mar 2, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
execute008
pushed a commit
to execute008/openclaw
that referenced
this pull request
Mar 2, 2026
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
…penclaw#29579) (cherry picked from commit 5d51e99) # Conflicts: # CHANGELOG.md
dorgonman
pushed a commit
to kanohorizonia/openclaw
that referenced
this pull request
Mar 3, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
dorgonman
pushed a commit
to kanohorizonia/openclaw
that referenced
this pull request
Mar 3, 2026
sachinkundu
pushed a commit
to sachinkundu/openclaw
that referenced
this pull request
Mar 6, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
sachinkundu
pushed a commit
to sachinkundu/openclaw
that referenced
this pull request
Mar 6, 2026
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
Mateljan1
pushed a commit
to Mateljan1/openclaw
that referenced
this pull request
Mar 7, 2026
…openclaw#29299) * CLI: seed Ollama provider on apiKey set * Tests: cover Ollama apiKey config set path
Mateljan1
pushed a commit
to Mateljan1/openclaw
that referenced
this pull request
Mar 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Describe the problem and fix in 2–5 bullets:
openclaw config set models.providers.ollama.apiKey "ollama-local"fails validation unlessmodels.providers.ollama.baseUrlandmodels.providers.ollama.modelsare already present.config setnow auto-seeds a valid minimal Ollama provider object when settingmodels.providers.ollama.apiKeyand the provider object does not yet exist.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
openclaw config set models.providers.ollama.apiKey "ollama-local"now writes a valid provider object (with default base URL and empty model list) instead of failing config validation.Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation:Repro + Verification
Environment
~/.openclaw/openclaw.jsonSteps
{}config.openclaw config set models.providers.ollama.apiKey "ollama-local".Expected
Actual
baseUrl/models.Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
pnpm vitest run src/cli/config-cli.test.tspnpm checkopenclaw config set models.providers.ollama.apiKey "ollama-local".Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoFailure Recovery (if this breaks)
src/cli/config-cli.tsRisks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.models.providers.ollama.apiKey) and only runs when provider object is absent.