Skip to main content

Claude Code Integration

Automatically track telemetry events when using Claude Code.

Overview

The Arden CLI provides built-in hooks for Claude Code that automatically send telemetry events when you start, stop, or interact with Claude sessions.

Setup

1. Install Arden CLI

2. Configure Claude Hooks

Add hooks to your Claude Code configuration file:

3. Test the Integration

Start a Claude Code session. Arden will automatically:
  • Send a telemetry event when the session starts
  • Track each message exchange
  • Log session end events

Hook Types

Event Data

Each Claude hook automatically enriches telemetry with:

CLI Options

Troubleshooting

Hook not triggering?
  • Verify Claude Code hook configuration
  • Check Arden CLI is installed globally
  • Run arden --version to confirm installation
Events not appearing?
  • Check network connectivity
  • Verify API token if using authentication
  • Use --dry-run --print to debug payload

Manual Integration

You can also manually send Claude-related events:
This gives you full control over when and what telemetry is sent.