Skip to content
AIRepoHub

ollama

by ollama

Run open models like Gemma, Qwen and DeepSeek on your own machine with a single command.

Local LLMsGoMIT licenseApp
Stars
188,035
stars
Forks
19k
forks
Last push
today
Activity
Active
ollama: quick start
# Install on macOS or Linux$ curl -fsSL https://ollama.com/install.sh | sh# Chat with a model$ ollama run gemma4# Use a local model in Claude Code$ ollama launch claude

Commands from the project's README. Run them after installing (see below).

Overview

Understand ollama in 60 seconds

What it does
Ollama lets you download and run open AI models like Gemma on your own computer with one command. It gives you a chat in the terminal, a local REST API, and Python and JavaScript libraries, and it can connect local models to tools like Claude Code, Codex and OpenClaw.
The problem it solves
Running open models usually means dealing with model files, GPU settings and inference servers. Ollama handles downloading and running models for you, so you can chat with or build on a model in minutes, with your data staying on your machine.
Why choose it
Choose it for the easiest way to run open models on macOS, Windows or Linux. For serving many users at high throughput on GPU servers, a serving engine like vLLM may suit better.
Who should use it
  • Beginners who want to try open models locally
  • Developers building apps on a local model API
  • Privacy-minded users who don't want to send data to the cloud
  • Coding agent users who want local models
Setup difficultyBeginner

You'll need:

  • macOS, Windows or Linux
  • Enough RAM or GPU memory for the model you choose

How ollama works

After installing, running ollama prompts you to run a model or connect Ollama to agents and apps such as Claude Code, OpenClaw, OpenCode, Codex and Copilot. ollama run gemma4 downloads Gemma 4 and opens a chat; the full list of models is in the library on ollama.com.

Ollama runs a REST API on localhost port 11434 for running and managing models, and official libraries ollama-python and ollama-js wrap it. ollama launch starts a specific integration, for example ollama launch claude for Claude Code or ollama launch openclaw for a personal assistant across messaging apps.

Ollama uses llama.cpp as its backend. An official Docker image, ollama/ollama, is on Docker Hub, and a large list of community apps such as Open WebUI, LobeChat, AnythingLLM and Dify integrate with it. It is MIT licensed.

Features

Key features

One-command models

ollama run downloads and starts a model.

Model library

Browse open models on ollama.com/library.

REST API

Local API on port 11434.

Python and JS libraries

pip install ollama or npm i ollama.

Agent integrations

ollama launch for Claude Code, Codex, OpenClaw and more.

Huge ecosystem

Works with Open WebUI, LobeChat, Dify and many others.

Strengths

  • Very easy to install and use
  • Runs on macOS, Windows and Linux
  • Keeps your data local
  • MIT licensed

Limitations

  • Model speed depends on your hardware
  • Large models need lots of memory
  • Not designed for high-throughput multi-user serving

Practical use cases

Private chat assistant

Chat with an open model offline.

Local backend for apps

Build on the REST API or SDKs.

Local models for coding agents

Launch Claude Code or Codex against a local model.

Installation

Install ollama

Based on official documentation

Commands come from Ollama's README. AIRepoHub hasn't run them yet. View source

Prerequisites

  • A computer with enough memory for your model

Supported systems

  • macOS
  • Windows
  • Linux
  1. 1

    Install

    Or download Ollama.dmg from ollama.com.

    Shell
    curl -fsSL https://ollama.com/install.sh | sh

Configuration and API keys

SettingWhat it's for

First run

  1. 1

    Start Ollama

    You'll be prompted to run a model or connect an app.

    Shell
    ollama
  2. 2

    Chat with Gemma 4

    Shell
    ollama run gemma4

ollama's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.

Your first project

Run a model and call it from your code

Chat with Gemma 4 locally, then call it through the REST API and the Python library.

Before you start

  • Ollama installed
  1. 1

    Run the model

    The first run downloads it.

    Shell
    ollama run gemma4
  2. 2

    Call the REST API

    Shell
    curl http://localhost:11434/api/chat -d '{  "model": "gemma4",  "messages": [{    "role": "user",    "content": "Why is the sky blue?"  }],  "stream": false}'
  3. 3

    Use the Python library

    Shell
    pip install ollama
  4. 4

    Chat from Python

    Text
    from ollama import chatresponse = chat(model='gemma4', messages=[  {'role': 'user', 'content': 'Why is the sky blue?'},])print(response.message.content)

What to expect

The model answers in the terminal, the API returns a JSON chat response, and the Python script prints the answer.

Next steps

  • Browse other models on ollama.com/library
  • Connect a coding agent with ollama launch
  • Read the Modelfile reference to customise models

Costs and requirements

What it costs to run

License
MIT.Free
Local models
Free to run on your own hardware.Free
Cloud models
The README mentions accessing models in the cloud; see ollama.com for details.Depends

Troubleshooting

Common setup issues

Not sure which model to run

Browse ollama.com/library and start with a smaller model if memory is limited.

Source: README.md

Linux install needs manual steps

Follow the manual install instructions at docs.ollama.com/linux.

Source: README.md

App can't reach Ollama

Check the API is running at http://localhost:11434.

Source: README.md

Alternatives

Similar AI repositories