Dobby

Dobby SDK

Official SDKs for integrating with the Dobby AI Platform. Build AI agent workflows, manage tasks, handle approvals, and track costs — all from your codebase.

Quick Start

from dobby_sdk import DobbyClient

client = DobbyClient(api_key="gk_user_...")

# Make an LLM call through Dobby Gateway
response = client.chat.completions.create(
    model="claude-sonnet-4-20250514",
    messages=[{"role": "user", "content": "Hello from Dobby!"}],
)
print(response.choices[0].message.content)

# Create a task
task = client.tasks.create(title="Review PR #42", priority="high")

# Check costs
costs = client.costs.summary(period="30d")

SDK Capabilities

OpenAI Compatible

Use standard OpenAI SDK patterns — just point to Dobby Gateway

Task Management

Create, list, update tasks programmatically

Approvals (HITL)

List pending approvals, approve or reject from code

Agent Fleet

Register external agents, pause/resume, monitor health

Cost Tracking

Query FinOps data — per-agent, per-provider breakdowns

Key Management

Create, rotate, revoke gateway API keys

Authentication

All SDK calls are authenticated with a Dobby Gateway API key. You can pass it directly or set the DOBBY_API_KEY environment variable.

Key TierPrefixUse CaseRate Limit
Usergk_user_*IDE users100 RPM
Servicegk_svc_*Agents, CI/CD500 RPM
Temporarygk_tmp_*Short-lived30 RPM