Skip to content

docs(llm-analytics): Add Claude Agent SDK installation page#16502

Merged
andrewm4894 merged 1 commit into
masterfrom
docs-writer-ai-update-2026-04-21T19-59-08-465Z-rcnspy
Apr 22, 2026
Merged

docs(llm-analytics): Add Claude Agent SDK installation page#16502
andrewm4894 merged 1 commit into
masterfrom
docs-writer-ai-update-2026-04-21T19-59-08-465Z-rcnspy

Conversation

@inkeep
Copy link
Copy Markdown
Contributor

@inkeep inkeep Bot commented Apr 21, 2026

Changes

Adds the MDX wrapper page for Claude Agent SDK installation documentation at contents/docs/llm-analytics/installation/claude-agent-sdk.mdx.

This is the companion documentation PR for PostHog/posthog#53011, which added the shared onboarding content at docs/onboarding/llm-analytics/claude-agent-sdk.tsx.

What this page covers

  • Installing PostHog + Claude Agent SDK
  • Using the query() drop-in replacement for capturing LLM events ($ai_generation, $ai_span, $ai_trace)
  • Using instrument() for reusable PostHog configuration
  • Tool usage and multi-turn conversations
  • Multi-turn conversations with history using PostHogClaudeSDKClient

How it works

The page imports ClaudeAgentSDKInstallation from the monorepo and renders it through OnboardingContentWrapper, following the exact same architecture as openai-agents.mdx. The installation platforms list auto-generates from files in the installation folder, so this page will automatically appear in the LLM Analytics installation index.


This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.

Companion page for PostHog/posthog#53011 which added the shared
onboarding content at docs/onboarding/llm-analytics/claude-agent-sdk.tsx.

Follows the same pattern as openai-agents.mdx — imports the shared
component and wraps it with OnboardingContentWrapper and addNextStepsStep.
@inkeep inkeep Bot requested a review from andrewm4894 April 21, 2026 20:00
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Apr 21, 2026 08:08PM

@github-actions
Copy link
Copy Markdown
Contributor

Hey @andrewm4894! This docs PR was generated for you by an agent. You're responsible for reviewing and merging it into production.

  1. Review and approve the PR
  2. Merge the PR
    a. Check the preview env and CI build and merge it yourself
    b. Enable auto-merge if you're confident in the changes

@andrewm4894 andrewm4894 merged commit a3d7cb3 into master Apr 22, 2026
19 checks passed
@andrewm4894 andrewm4894 deleted the docs-writer-ai-update-2026-04-21T19-59-08-465Z-rcnspy branch April 22, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant