Run a model
ollama run gemma4
Launch integrations
ollama launch
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 launch
ollama launch claude
ollama launch claude --model qwen3.5
ollama launch droid --config
Multiline 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"
echo "Hello world" | ollama run nomic-embed-text
Download a model
ollama pull gemma4
Remove a model
ollama rm gemma4
List models
ollama ls
Sign in to Ollama
ollama signin
Sign out of Ollama
ollama signout
Create a customized model
First, create aModelfile
FROM gemma4
SYSTEM """You are a happy cat."""
ollama create:
ollama create -f Modelfile
List running models
ollama ps
Stop a running model
ollama stop gemma4
Start Ollama
ollama serve
ollama serve --help