MERIDIAN LOCK

Migrate from Anthropic to Meridian

Two drop-in paths to switch your existing Anthropic workloads to Meridian without rewriting your application logic.

PATH A

Use the Anthropic SDK with our /v1 endpoint

Point the official Anthropic Python or TypeScript SDK at Meridian’s API. Set the base URL and your Meridian key — the SDK speaks native Anthropic wire format.

# Python
import anthropic

client = anthropic.Anthropic(
  base_url="https://api.meridian.sh/v1",
  api_key="mrdn_...",
)
!

Currently returns 401

The /v1 endpoint is live but authentication is not yet wired for Anthropic SDK compatibility. This path will unlock once the auth layer is finalized.

PATH B — RECOMMENDED

Use the OpenAI SDK with claude-opus-4-8

Meridian exposes an OpenAI-compatible endpoint. Swap the model name and base URL — your existing OpenAI SDK code works unchanged.

# Python
from openai import OpenAI

client = OpenAI(
  base_url="https://api.meridian.sh/v1",
  api_key="mrdn_...",
)

response = client.chat.completions.create(
  model="claude-opus-4-8",
  messages=[{"role": "user", "content": "Hello"}],
)

Works today. No SDK changes beyond base URL and model name.