Skip to content
Docs

Quick Start (5 Minutes)

Step 1: Get API Key

Terminal window
# Login to AgentWatch Admin Panel
# Navigate to Admin → Tenants → Create New
# Copy the generated API key

Step 2: Update Your Application (pick your SDK)

# ── OpenAI SDK ──
client = OpenAI(
base_url="https://your-agentwatch-instance/v1",
api_key="ak_your_agentwatch_key"
)
# ── Azure OpenAI SDK ──
client = AzureOpenAI(
azure_endpoint="https://your-agentwatch-instance",
api_key="ak_your_agentwatch_key",
api_version="2024-10-21"
)
# ── Anthropic SDK ──
client = Anthropic(
base_url="https://your-agentwatch-instance",
api_key="ak_your_agentwatch_key"
)
# ── Google Gemini SDK ──
import google.generativeai as genai
genai.configure(
api_key="ak_your_agentwatch_key",
transport="rest",
client_options={"api_endpoint": "https://your-agentwatch-instance"}
)
# ── Cohere SDK ──
client = cohere.ClientV2(
base_url="https://your-agentwatch-instance",
api_key="ak_your_agentwatch_key"
)

Step 3: Verify

Terminal window
# OpenAI-compatible (works with any SDK)
curl -X POST https://your-agentwatch-instance/v1/chat/completions \
-H "Authorization: Bearer ak_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-5-20250929",
"messages": [{"role": "user", "content": "Hello!"}]
}'
# Azure SDK format
curl -X POST "https://your-agentwatch-instance/openai/deployments/gpt-4o/chat/completions?api-version=2024-10-21" \
-H "api-key: ak_your_key" \
-H "Content-Type: application/json" \
-d '{"messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 50}'
# Anthropic SDK format
curl -X POST https://your-agentwatch-instance/v1/messages \
-H "x-api-key: ak_your_key" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model": "claude-sonnet-4-5-20250929", "max_tokens": 100, "messages": [{"role": "user", "content": "Hello!"}]}'