Ollama Anthropic Compatibility API

Ollama provides compatibility with the Anthropic Messages API, enabling tools like Claude Code to work with locally-running open-source models. Supports messages, streaming, system prompts, tool calling, extended thinking, and vision input.

API entry from apis.yml

apis.yml Raw ↑
aid: ollama:ollama-anthropic-compatibility-api
name: Ollama Anthropic Compatibility API
tags:
- Anthropic
- Chat
- Compatibility
- Large Language Models
humanURL: https://docs.ollama.com/api/anthropic-compatibility
baseURL: http://localhost:11434
properties:
- url: https://docs.ollama.com/api/anthropic-compatibility
  type: Documentation
- url: https://ollama.com/blog/claude
  type: Blog
description: Ollama provides compatibility with the Anthropic Messages API, enabling tools like Claude
  Code to work with locally-running open-source models. Supports messages, streaming, system prompts,
  tool calling, extended thinking, and vision input.