Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save egyjs/7ef304bd1270a969b76672dd138a6bbe to your computer and use it in GitHub Desktop.

Select an option

Save egyjs/7ef304bd1270a969b76672dd138a6bbe to your computer and use it in GitHub Desktop.
Ollama launch Claude Code: pass `--resume`, `--dangerously-skip-permissions`, and other Claude CLI arguments

Ollama launch Claude Code: pass --resume, --dangerously-skip-permissions, and other Claude CLI arguments

TL;DR

Use -- to separate Ollama flags from Claude Code flags:

ollama launch claude --model minimax-m2.5:cloud -- --resume
ollama launch claude --model minimax-m2.5:cloud -- --dangerously-skip-permissions

Rule:

ollama launch claude [ollama flags] -- [claude code flags]

--model belongs to Ollama. Everything after the standalone -- is passed to Claude Code.

Examples

Resume Claude Code:

ollama launch claude --model minimax-m2.5:cloud -- --resume

Skip permission prompts:

ollama launch claude --model minimax-m2.5:cloud -- --dangerously-skip-permissions

Pass multiple Claude Code flags:

ollama launch claude --model minimax-m2.5:cloud -- --resume --dangerously-skip-permissions

Common mistake

Wrong:

ollama launch claude --model minimax-m2.5:cloud --resume

Right:

ollama launch claude --model minimax-m2.5:cloud -- --resume

Troubleshooting

Check Claude Code is installed:

which claude
claude --version

If the model is wrong, keep --model before --:

ollama launch claude --model minimax-m2.5:cloud -- --resume

Search keywords

ollama launch claude resume, ollama launch claude pass arguments, ollama launch claude double dash, ollama launch claude dangerously skip permissions, Claude Code with Ollama Cloud model, ollama launch claude --resume not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment