[PR #14039] [MERGED] cmd: launch extra params #76777

Closed
opened 2026-05-05 09:26:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14039
Author: @ParthSareen
Created: 2/3/2026
Status: Merged
Merged: 2/3/2026
Merged by: @ParthSareen

Base: mainHead: parth-launch-extra-params


📝 Commits (4)

  • 569b25b cmd: ollama launch allow extra params
  • 54ead57 cmd: require -- separator for extra args in ollama launch
  • 5a5f3d6 cmd: rename extraArgs to args across integration interfaces
  • a0d9aaf update examples

📊 Changes

9 files changed (+182 additions, -37 deletions)

View changed files

📝 cmd/config/claude.go (+7 -5)
📝 cmd/config/claude_test.go (+8 -4)
📝 cmd/config/codex.go (+4 -3)
📝 cmd/config/codex_test.go (+7 -4)
📝 cmd/config/droid.go (+2 -2)
📝 cmd/config/integrations.go (+34 -11)
📝 cmd/config/integrations_test.go (+116 -4)
📝 cmd/config/openclaw.go (+2 -2)
📝 cmd/config/opencode.go (+2 -2)

📄 Description

  • Add support for passing extra arguments through to integrations via ollama launch --
    <args...>

    Examples

    ollama launch codex -- -p myprofile (-p myprofile will get passed to codex)
    ollama launch codex --model llama3.2 -- --sandbox workspace-write
    ollama launch claude --config -- --config (first is ollama's flag, second passes through to claude)
    ollama launch codex -- fork will run codex fork


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14039 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 2/3/2026 **Status:** ✅ Merged **Merged:** 2/3/2026 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `parth-launch-extra-params` --- ### 📝 Commits (4) - [`569b25b`](https://github.com/ollama/ollama/commit/569b25be3279680127f339651b3cb6aed87c897e) cmd: ollama launch allow extra params - [`54ead57`](https://github.com/ollama/ollama/commit/54ead5791428d4ccd04eac85810d8023f6cce564) cmd: require -- separator for extra args in ollama launch - [`5a5f3d6`](https://github.com/ollama/ollama/commit/5a5f3d628fc3096f60b331060223b347ba8a416c) cmd: rename extraArgs to args across integration interfaces - [`a0d9aaf`](https://github.com/ollama/ollama/commit/a0d9aaf34ef9adf8ad18eebefbd8b524900659a4) update examples ### 📊 Changes **9 files changed** (+182 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `cmd/config/claude.go` (+7 -5) 📝 `cmd/config/claude_test.go` (+8 -4) 📝 `cmd/config/codex.go` (+4 -3) 📝 `cmd/config/codex_test.go` (+7 -4) 📝 `cmd/config/droid.go` (+2 -2) 📝 `cmd/config/integrations.go` (+34 -11) 📝 `cmd/config/integrations_test.go` (+116 -4) 📝 `cmd/config/openclaw.go` (+2 -2) 📝 `cmd/config/opencode.go` (+2 -2) </details> ### 📄 Description - Add support for passing extra arguments through to integrations via ollama launch <integration> -- <args...> Examples `ollama launch codex -- -p myprofile` (`-p myprofile` will get passed to codex) `ollama launch codex --model llama3.2 -- --sandbox workspace-write` `ollama launch claude --config -- --config` (first is ollama's flag, second passes through to claude) `ollama launch codex -- fork` will run `codex fork` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 09:26:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#76777