| title | CLI Reference |
|---|
ollama run gemma4
ollama launch
Configure and launch external applications to use Ollama models. This provides an interactive way to set up and start integrations with supported apps.
- OpenCode - Open-source coding assistant
- Claude Code - Anthropic's agentic coding tool
- Codex - OpenAI's coding assistant
- VS Code - Microsoft's IDE with built-in AI chat
- Droid - Factory's AI coding agent
Launch an integration interactively:
ollama launch
Launch a specific integration:
ollama launch claude
Launch with a specific model:
ollama launch claude --model qwen3.5
Configure without launching:
ollama launch droid --config
For multiline input, you can wrap text with """:
>>> """Hello,
... world!
... """
I'm a basic program that prints the famous "Hello, world!" message to the console.
ollama run gemma4 "What's in this image? /Users/jmorgan/Desktop/smile.png"
ollama run embeddinggemma "Hello world"
Output is a JSON array:
echo "Hello world" | ollama run nomic-embed-text
ollama pull gemma4
ollama rm gemma4
ollama ls
ollama signin
ollama signout
First, create a Modelfile
FROM gemma4
SYSTEM """You are a happy cat."""
Then run ollama create:
ollama create -f Modelfile
ollama ps
ollama stop gemma4
ollama serve
To view a list of environment variables that can be set run ollama serve --help