-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·56 lines (47 loc) · 1.48 KB
/
quickstart.sh
File metadata and controls
executable file
·56 lines (47 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# Claude Code Telemetry - Ultra Quick Start
# One command to rule them all!
set -e
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${BLUE}🚀 Claude Code Telemetry - 30 Second Setup${NC}"
echo ""
# Check Docker
if ! docker info > /dev/null 2>&1; then
echo "❌ Docker is not running. Please start Docker and try again."
exit 1
fi
# Auto-accept and run setup
echo "y" | ./scripts/setup-langfuse.sh
# Generate config file for Claude
cat > claude-telemetry.env <<EOF
# Add this to your shell profile (.bashrc, .zshrc, etc) or run before using Claude
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_LOGS_EXPORTER=otlp
export OTEL_METRICS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_PROTOCOL=http/json
export OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=http/json
export OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318
export OTEL_LOG_USER_PROMPTS=1
EOF
echo ""
echo -e "${GREEN}✅ Setup complete!${NC}"
echo ""
echo -e "${YELLOW}Quick Start Commands:${NC}"
echo ""
echo "1. Configure Claude (run this in your terminal):"
echo -e "${GREEN} source claude-telemetry.env${NC}"
echo ""
echo "2. Test it:"
echo -e "${GREEN} claude \"What is 2+2?\"${NC}"
echo ""
echo "3. View your data:"
echo -e "${GREEN} open http://localhost:3000${NC}"
echo ""
echo -e "${YELLOW}📋 Your unique login credentials have been saved to:${NC}"
echo -e "${GREEN} langfuse-credentials.txt${NC}"
echo ""
echo -e "${BLUE}That's it! Your telemetry is now being tracked.${NC}"