pgx
AI 에이전트를 위한 경량 Postgres, Rust로 구현, 하나의 런타임에서 수천 개의 격리된 데이터베이스 제공
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Self-hosted analytics dashboard for monitoring Claude Code API usage, token consumption, and subscription value
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
A self-hosted web dashboard for tracking Claude Code usage statistics with automatic data collection and synchronization.
• 📊 Usage Analytics: Track daily usage metrics including tokens, costs, and model usage
• 🔄 Auto Sync: Automatic data collection from local Claude Code usage
• 📱 Responsive Dashboard: Clean, modern UI built with shadcn/ui components
• 🏠 Self-Hosted: Deploy on your own infrastructure
• 🔧 Easy Setup: Simple configuration and deploymentREADME 전문 보기 ↗A self-hosted web dashboard for tracking Claude Code usage statistics with automatic data collection and synchronization.
This is a monorepo built with:
├── apps/
│ └── web/ # Next.js dashboard application
├── packages/
│ ├── ui/ # Shared UI components (shadcn/ui)
│ ├── ccusage-collector/ # NPM package for data collection
│ ├── eslint-config/ # Shared ESLint configurations
│ └── typescript-config/ # Shared TypeScript configurations
git clone https://github.com/i-richardwang/MyCCusage.git
cd MyCCusage
pnpm install
# Set up your PostgreSQL database
cp apps/web/.env.example apps/web/.env.local
# Configure your database URL and API key
DATABASE_URL=postgresql://username:password@localhost:5432/myccusage
API_KEY=your-secret-api-key-here
# Run database migrations
cd apps/web
pnpm db:push
pnpm dev
Visit http://localhost:3000 to see your dashboard.
Install globally with Bun (recommended):
bun add -g ccusage-collector
Or with npm:
npm install -g ccusage-collector
Or run one-off commands without installing:
bunx ccusage-collector config
bunx ccusage-collector sync
# Interactive configuration
ccusage-collector config
# Install native background sync (macOS / Linux)
ccusage-collector service install
Native scheduling uses a macOS LaunchAgent or Linux systemd user timer, with no resident collector process. Inspect it with ccusage-collector service status and ccusage-collector service logs; remove it with ccusage-collector service uninstall.
For cloud or sandbox environments, inject MYCCUSAGE_API_KEY, MYCCUSAGE_ENDPOINT, MYCCUSAGE_AGENT_TYPES, and optional device variables, then run ccusage-collector sync directly. No JSON configuration is required; see the environment-only setup.
The ccusage-collector package automatically:
amp CLI (see the collector README)To import available Claude Code, Codex, OpenCode and Antigravity history older than the regular refresh
window, run ccusage-collector sync --full-history once. Add --dry-run to inspect
the upload first. Existing old days are preserved; only missing historical dates are filled. See the
collector backfill documentation.
Deploy the Next.js app to your preferred platform:
Supported PostgreSQL providers (PostgreSQL 15 or later):
Collectors and the dashboard must speak the same sync protocol, and each refuses the other otherwise. Update in this order:
pnpm db:migrate from apps/web/, then deploy the dashboard.# Development
pnpm dev # Start development server
pnpm build # Build all packages
pnpm lint # Lint all code
pnpm format # Format code with Prettier
# Database (run from apps/web/)
pnpm db:generate # Generate migration files
pnpm db:push # Push schema changes
pnpm db:migrate # Run migrations
pnpm db:studio # Open database studio
# Web App (run from apps/web/)
pnpm dev # Start Next.js dev server
pnpm build # Build production app
pnpm start # Start production server
pnpm lint # Run ESLint
pnpm typecheck # Run TypeScript checks
pnpm dlx shadcn@latest add button -c apps/web
This places components in packages/ui/src/components/ for shared use.
DATABASE_URL=postgresql://username:password@localhost:5432/myccusage
API_KEY=your-secret-api-key-here
# Optional: account time zone for daily buckets (default Asia/Shanghai)
USAGE_TIMEZONE=Asia/Shanghai
# Interactive configuration
ccusage-collector config
# Check configuration status
ccusage-collector status
# Test configuration and connection
ccusage-collector test
# Start scheduled sync
ccusage-collector service install
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT License - see LICENSE file for details.