What it is
Ollama is a tool for building with open models. It provides a CLI (ollama, ollama run, ollama launch), a REST API on localhost:11434, and official Python and JavaScript libraries. It can run chat models such as Gemma 4 and connect to agents and applications such as Claude Code, Codex, and OpenClaw. It lists llama.cpp as a supported backend.
Who it's for
- Developers who want to run and chat with open models from the command line
- Developers building apps against a local REST API or the Python/JavaScript libraries
- Users who want to connect open models to coding agents or assistants such as Claude Code, Codex, OpenCode, or OpenClaw
- Teams looking for existing community integrations (chat UIs, editors, RAG tools, SDKs, observability)
Requirements
Requirements
- macOS, Windows, or Linux (install scripts and manual downloads provided), or the ollama/ollama Docker image
- Python with pip for the
ollamaPython library - Node.js with npm for the
ollamaJavaScript library
Setup
Install on macOS or Linux
Run the install script (a manual macOS download is also offered).
bashcurl -fsSL https://ollama.com/install.sh | shInstall on Windows
Run the PowerShell install script (a manual download is also offered).
powershellirm https://ollama.com/install.ps1 | iexGet started
Run
ollamaand you'll be prompted to run a model or connect Ollama to existing agents or applications.bashollamaInstall the Python library
Install the official Python client.
bashpip install ollamaInstall the JavaScript library
Install the official JavaScript client.
bashnpm i ollama
Examples
Chat with a model
bashollama run gemma4What it does: Runs and chats with Gemma 4. The full model list is at ollama.com/library.
Launch a coding integration
bashollama launch claudeWhat it does: Launches a specific integration, here Claude Code.
REST API chat request
bashcurl http://localhost:11434/api/chat -d '{
"model": "gemma4",
"messages": [{
"role": "user",
"content": "Why is the sky blue?"
}],
"stream": false
}'What it does: Sends a chat message to the local REST API with streaming disabled.
Python chat
pythonfrom ollama import chat
response = chat(model='gemma4', messages=[
{
'role': 'user',
'content': 'Why is the sky blue?',
},
])
print(response.message.content)What it does: Uses the ollama Python library to send a chat message and print the reply.
Launch OpenClaw assistant
bashollama launch openclawWhat it does: Uses OpenClaw to turn Ollama into a personal AI assistant across WhatsApp, Telegram, Slack, Discord, and more.
Pros & cons
Pros
- Pro:Multiple access paths: CLI, REST API, and official Python and JavaScript libraries
- Pro:
ollama launchconnects to coding tools such as Claude Code, Codex, Copilot CLI, Droid, and OpenCode - Pro:Large catalog of community integrations (chat UIs, editors, RAG, SDKs, observability)
- Pro:Install options include scripts, manual downloads, a Docker image, and several package managers
Cons
- Con:The README doesn't state hardware requirements, so model sizing and GPU needs must be checked elsewhere
- Con:Community integrations are third-party projects listed in the README, not necessarily maintained by Ollama
Images
