Skip to the content.

Clike Gateway (FastAPI)

OpenAI-like endpoints backed by multiple providers (OpenAI, Anthropic, Ollama and other OpenAI-compatible endpoints), Harper model calls on the messages composed by the orchestrator, and telemetry. Every endpoint except /health requires Authorization: Bearer <CLIKE_API_TOKEN>.

Endpoints

Run

uv sync --frozen                      # Python 3.12, locked in uv.lock
export MODELS_CONFIG=$(pwd)/../configs/models.yaml CLIKE_API_TOKEN=…
uv run uvicorn main:app --host 127.0.0.1 --port 8000 --reload
uv run pytest -q                      # independent from orchestrator code

models.yaml (example)

See chat for a full example. Use container service names in Docker (e.g., http://ollama:11434).