{
  "schema_version": "1.0",
  "name": "Kalibr",
  "description": "Autonomous execution path routing for AI agents. Kalibr hooks into your agent's runtime, reads live telemetry, and routes to the optimal model + tool + parameter combination — preventing failures, degradations, and cost spikes before they impact users.",
  "version": "0.1.0",
  "url": "https://kalibr.systems",
  "docs": "https://kalibr.systems/docs",
  "dashboard": "https://dashboard.kalibr.systems",
  "status": "https://status.kalibr.systems",
  "category": ["agent-reliability", "execution-routing", "self-healing-agents", "agent-infrastructure"],
  "tags": [
    "llm-routing",
    "execution-intelligence",
    "ai-agents",
    "observability",
    "failover",
    "multi-provider",
    "thompson-sampling",
    "openai",
    "anthropic",
    "google-ai",
    "langchain",
    "crewai",
    "openclaw"
  ],
  "capabilities": [
    {
      "id": "auto_instrument",
      "name": "Zero-code LLM instrumentation",
      "description": "Automatically patches OpenAI, Anthropic, and Google AI Python SDKs on import. No code changes required beyond adding kalibr as the first import in your agent entry point.",
      "usage": "import kalibr  # must be first import",
      "latency_overhead_ms": "<5",
      "providers": ["openai", "anthropic", "google-generativeai"]
    },
    {
      "id": "get_policy",
      "name": "Outcome-conditioned model routing",
      "description": "Returns the optimal model and provider for a given goal type based on historical execution outcomes. Algorithm: Thompson Sampling with Wilson scoring over a Beta distribution per (goal x model x provider) triple.",
      "endpoint": "https://kalibr-intelligence.fly.dev/policy",
      "method": "POST",
      "auth": "Bearer KALIBR_API_KEY",
      "input_schema": {
        "goal": "string — task type identifier",
        "constraints": {
          "max_cost_usd": "number (optional)",
          "max_latency_ms": "number (optional)",
          "min_quality": "number 0-1 (optional)"
        }
      },
      "output_schema": {
        "recommended_model": "string",
        "provider": "string",
        "outcome_success_rate": "number 0-1",
        "expected_latency_ms": "number",
        "trace_id": "string"
      }
    },
    {
      "id": "report_outcome",
      "name": "Outcome reporting",
      "description": "Records execution outcome to update the routing model. Call after each agent run to improve future routing decisions.",
      "endpoint": "https://kalibr-backend.fly.dev/api/v1/traces",
      "method": "POST",
      "auth": "Bearer KALIBR_API_KEY",
      "input_schema": {
        "trace_id": "string",
        "goal": "string",
        "success": "boolean",
        "error": "string (optional)",
        "duration_ms": "number (optional)"
      }
    },
    {
      "id": "trace_capsule",
      "name": "Cross-agent trace propagation",
      "description": "Propagates execution context across agent boundaries via HTTP header. Enables end-to-end tracing in multi-agent systems with full cost and latency rollup.",
      "header": "X-Kalibr-Capsule",
      "format": "base64-encoded JSON"
    },
    {
      "id": "openclaw_plugin",
      "name": "OpenClaw native plugin",
      "description": "Hooks into before_model_resolve, before_prompt_build, and before_agent_start. Provides autonomous routing and telemetry for OpenClaw-based agents with zero code changes.",
      "install_command": "openclaw plugins install @kalibr/openclaw",
      "npm": "https://www.npmjs.com/package/@kalibr/openclaw",
      "config": {
        "enableRouting": "boolean — false for telemetry only, true for autonomous routing",
        "apiKey": "string — Kalibr API key"
      }
    }
  ],
  "install": {
    "python": {
      "command": "pip install kalibr",
      "quick_start": "import kalibr  # first import",
      "repo": "https://github.com/kalibr-ai/kalibr-sdk-python",
      "pypi": "https://pypi.org/project/kalibr/",
      "framework_extras": ["kalibr[langchain]", "kalibr[crewai]", "kalibr[openai-agents]"]
    },
    "openclaw": {
      "command": "openclaw plugins install @kalibr/openclaw",
      "config_command": "openclaw config set plugins.entries.kalibr.config.apiKey \"your-key\"",
      "routing_command": "openclaw config set plugins.entries.kalibr.config.enableRouting true",
      "npm": "https://www.npmjs.com/package/@kalibr/openclaw",
      "repo": "https://github.com/kalibr-ai/openclaw-kalibr"
    }
  },
  "config_schema": {
    "KALIBR_API_KEY": {
      "type": "string",
      "required": true,
      "description": "API key for Kalibr authentication",
      "obtain": "https://dashboard.kalibr.systems"
    },
    "KALIBR_TENANT_ID": {
      "type": "string",
      "required": false,
      "default": "default",
      "description": "Tenant identifier for multi-tenant deployments"
    },
    "KALIBR_SERVICE_NAME": {
      "type": "string",
      "required": false,
      "default": "kalibr-app"
    },
    "KALIBR_ENVIRONMENT": {
      "type": "string",
      "required": false,
      "default": "prod",
      "enum": ["prod", "staging", "dev"]
    },
    "KALIBR_AUTO_INSTRUMENT": {
      "type": "boolean",
      "required": false,
      "default": true
    }
  },
  "reliability_stats": {
    "success_rate_with_kalibr_routing": "0.88-1.00",
    "success_rate_hardcoded_during_incidents": "0.16-0.36",
    "routing_algorithm": "Thompson Sampling with Wilson scoring",
    "canary_traffic_percent": 10,
    "degradation_detection": "pre-emptive via canary, not reactive",
    "data_source": "production agent runs across design partners"
  },
  "pricing_model": "usage-based",
  "pricing_url": "https://kalibr.systems/pricing",
  "onboarding_steps": 4,
  "time_to_first_trace_minutes": 5
}
