Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.langsight.dev/llms.txt

Use this file to discover all available pages before exploring further.

Setup

  1. Create an account at console.anthropic.com
  2. Generate an API key under API Keys
  3. Set the environment variable:
export ANTHROPIC_API_KEY=sk-ant-...
  1. Configure in .langsight.yaml:
investigate:
  provider: anthropic
  model: claude-sonnet-4-6    # default

Models

ModelContextBest for
claude-sonnet-4-6200KDefault — best balance of speed and quality
claude-opus-4-6200KDeepest analysis, complex multi-server incidents
claude-haiku-4-5200KFast, budget-friendly

Why Claude for RCA?

Claude uses adaptive thinking on Sonnet and Opus — it reasons through the evidence before producing a report, leading to more accurate root cause identification. This is especially useful for:
  • Correlating multiple degraded servers
  • Identifying supply chain attacks via schema drift
  • Distinguishing transient failures from persistent outages

Pricing

ModelInputOutputTypical investigate call
claude-sonnet-4-6$3/1M$15/1M~$0.03
claude-opus-4-6$5/1M$25/1M~$0.06
claude-haiku-4-5$1/1M$5/1M~$0.01