Run a model
ollama run gemma4Launch integrations
ollama launchConfigure and launch external applications to use Ollama models. This provides an interactive way to set up and start integrations with supported apps.
Supported integrations
- 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
Examples
Launch an integration interactively:
ollama launchLaunch a specific integration:
ollama launch claudeLaunch with a specific model:
ollama launch claude --model qwen3.5Configure without launching:
ollama launch droid --configMultiline input
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.Multimodal models
ollama run gemma4 "What's in this image? /Users/jmorgan/Desktop/smile.png"Generate embeddings
ollama run embeddinggemma "Hello world"Output is a JSON array:
echo "Hello world" | ollama run nomic-embed-textDownload a model
ollama pull gemma4Remove a model
ollama rm gemma4List models
ollama lsSign in to Ollama
ollama signinSign out of Ollama
ollama signoutCreate a customized model
First, create a Modelfile
FROM gemma4
SYSTEM """You are a happy cat."""Then run ollama create:
ollama create -f ModelfileList running models
ollama psStop a running model
ollama stop gemma4Start Ollama
ollama serveTo view a list of environment variables that can be set run ollama serve --help