claude-ollama-live guide

Overview

claude-ollama-live defines a deterministic CLI probe and a reusable GitHub Actions workflow that qualifies Claude Code (@anthropic-ai/claude-code@2.1.316) against Ollama Cloud's Anthropic-compatible Messages endpoint (https://ollama.com) alongside a loopback lmmock Anthropic handler.

Direct Ollama Cloud configuration and compatibility contract

Starting in Ollama 0.14.0, Ollama exposes an Anthropic-compatible /v1/messages endpoint. Rather than running a local Ollama proxy daemon in CI, claude-ollama-live connects Claude Code directly to https://ollama.com using bearer authentication:

Organization-secret boundary and reusable workflow architecture

The live operator secret OLLAMA_API_KEY belongs to the private lmctlhq GitHub organization and is never copied into the public lmctl-ai organization:

Loopback lmmock qualification and semantic negative controls

Every run proves both positive transport and negative failure detection: