Documentation Index
Fetch the complete documentation index at: https://docs.meshai.dev/llms.txt
Use this file to discover all available pages before exploring further.
Installation
pip install meshai-sdk[anthropic]
Usage
from meshai import MeshAI
from meshai.integrations.anthropic import wrap_anthropic
import anthropic
client = MeshAI(api_key="msh_...", agent_name="my-agent")
client.register(framework="custom", model_provider="anthropic")
ant = wrap_anthropic(anthropic.Anthropic(), meshai=client)
response = ant.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
# Model, input/output tokens captured automatically
Alternative: Proxy (Zero-Code)
export ANTHROPIC_BASE_URL=https://proxy.meshai.dev/v1/anthropic/k/msh_YOUR_PROXY_KEY