Get started
Download Ollama for macOS, Windows, or Linux. Open the app, or get started from your terminal:Connect a desktop app
On macOS, open Ollama and select Apps. Connect Claude or ChatGPT (Desktop). Follow the prompts to install or restart the app. Choose your Ollama models in Settings → Apps.- Claude Desktop — use Ollama models in Claude.
- ChatGPT Desktop — use Ollama models in Codex mode. Regular Chat and voice use your usual ChatGPT connection.
Use a coding agent
From your project directory, launch your agent:- Claude Code
- Codex CLI
- OpenCode
Build an application
Use cloud models with an API key, or run models locally without one. Cloud requests do not require an Ollama installation.1. Create an API key
For local models, skip this step and select Local under Send a request. For cloud models, sign in or create an account, then create an API key. Set your key in the terminal:2. Send a request
Make your first request to Ollama- Cloud
- Local
These examples use the Read the answer from OpenAI and Anthropic compatibility each cover a subset of the original API. See Cloud for models and usage limits.
gemma4:31b cloud model.- Ollama API
- OpenAI Chat Completions
- OpenAI Responses
- Anthropic Messages
message.content. See Ollama’s API and libraries.Run a model locally
Download Ollama, then run:/bye to leave.

