xy-tuoren/agy-family
About
解决 Google AI Pro / Ultra(Antigravity)家庭组拼车看不清谁用超额的痛点:私有透明用量看板,只传纯数值不传隐私,支持 Cloudflare 免费部署与 Docker | Fair-use usage board for Antigravity family groups
Systems & InfrastructureMeasured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Originalagy-family
A private, transparent usage dashboard built for shared Google One AI Pro / Ultra (Antigravity) family groups.
简体中文 · English
The problem: A Google Family Group (up to 6 members) shares one Antigravity quota pool, yet Google only shows total remaining quota — never who used how much. When the shared pool drains early, nobody can tell who went over their fair share.
What
agy-familydoes: Each member runs a zero-dependency local client that reads numeric usage stats only (hour buckets, models, token counts, reference USD) into your private group dashboard so everyone can see per-member usage, pool share, and fair-use caps — prompts, replies, code, and Google credentials never leave your device.

More Screenshots (Member Detail · Dark Mode · Integrity Audit · Rules & Version Gate)
| Member Detail Drawer (Quota & 7d Trend) | Dark Mode & 24h Rhythm |
|---|---|
![]() |
![]() |
| Integrity Audit & Drop Correlation | Quotas, 3-Tier Pricing & Min Version Gate |
|---|---|
![]() |
![]() |
Pain Points Solved
- Pool drained with no visibility → Clear per-member share & caps: Tracks both Antigravity Desktop IDE and
agyCLI against the shared 5h / weekly pool, highlighting each member's share, agreed quota, over-quota multiplier, and optional Webhook alerts (Feishu / DingTalk / WeCom / Telegram / Discord). - Privacy worries → Numeric stats only, auditable anytime: Extracts only hour buckets, models, tokens, and reference USD strictly read-only. Prompts, replies, code, file paths, and Google credentials never leave your device. Verify exact payloads anytime with
agy-family audit. - Account switching & tamper risks → Auto-skip & anti-tamper reconciliation: Pauses reporting automatically when switched to a non-family Gmail; protects totals with server-side high-water locks, delete-tamper detection, multi-drop anomaly attribution, and a minimum client version gate.
- No server budget needed → Zero-cost self-hosting: Single zero-dependency package running comfortably on Cloudflare Workers + D1 Free Tier or self-hosted via Docker / Node.js SQLite.
Quick Start (Node.js ≥ 22.13)
1. Family Manager: Deploy Your Board (Pick One)
Option 1: Cloudflare Free Tier (Recommended · Serverless)
npm i -g agy-family
agy-family deploy
Follow the interactive wizard to pick your local family manager email — it handles Cloudflare D1 + Worker deployment → master quota binding → passwordless browser login automatically.
Option 2: Docker / VPS Self-Hosting (Built-in SQLite)
- One-line installer (generates a strong admin key, binds
127.0.0.1:8787by default):curl -fsSL https://raw.githubusercontent.com/xy-tuoren/agy-family/main/scripts/docker-deploy.sh | bash - Docker Compose (ideal with a custom domain & reverse proxy):
git clone https://github.com/xy-tuoren/agy-family.git && cd agy-family cp .env.example .env # Set a random AGY_FAMILY_ADMIN_KEY in .env (e.g. `openssl rand -hex 32`) # Behind Caddy / Nginx / Cloudflare Tunnel, also set PUBLIC_BASE_URL and TRUST_PROXY=1 docker compose up -d - Link to local CLI (for inviting members and passwordless login; upgrade with
docker compose pull && docker compose up -d):agy-family host link --url https://family.example.com --admin-key <AGY_FAMILY_ADMIN_KEY>
2. Family Manager: Invite Members
agy-family invite "Alice" --email "[email protected]" --quota 20
Outputs both an AI-chat prompt members can paste directly into Antigravity and a terminal one-liner.
3. Family Member: Join Once, Sync Automatically
npm i -g agy-family
agy-family join "agyfam://join?d=..."
Usage syncs automatically after each turn, and you can use zero-token /family slash commands inside Antigravity IDE / agy CLI:
/family(7d/cycle/30d) — view family leaderboard & personal quota progress/family open— passwordless browser dashboard login/family audit— inspect exact last uploaded JSON payload/family sync·agy-family update·agy-family uninstall— manual sync / upgrade / uninstall
4. Let AI Deploy & Manage for You (Agent Skill)
Install into Antigravity / Claude Code / Codex / Cursor (skills/agy-family/SKILL.md):
npx skills add xy-tuoren/agy-family
Then simply ask your AI to deploy agy-family or invite a new member.
More Options & Details
More Deployment Methods (Cloudflare Button · docker run · Bare-Metal Node.js · Curl Script)
1-Click Cloudflare Browser Deploy (zero CLI): click below, set
AGY_FAMILY_ADMIN_KEY, and optionally link viaagy-family host link.Direct
docker run(setTRUST_PROXY=1orcloudflarebehind a reverse proxy; setBIND_HOST=0.0.0.0only when exposing port8787directly):export AGY_FAMILY_ADMIN_KEY="$(openssl rand -hex 32)" docker run -d --name agy-family --restart unless-stopped \ --cap-drop ALL --security-opt no-new-privileges \ -p 127.0.0.1:8787:8787 \ -e AGY_FAMILY_ADMIN_KEY \ -e BOARD_TITLE="Antigravity Family Board" \ -e PUBLIC_BASE_URL="https://family.example.com" \ -e TRUST_PROXY=1 \ -v agy_family_data:/data \ ghcr.io/xy-tuoren/agy-family:latestBare-metal Node.js 22 (no Docker, built-in
node:sqlite):npm i -g agy-family agy-family serve --port 8787macOS / Linux curl installer (no npm; supports
AGY_FAMILY_VERSIONandAGY_FAMILY_SHA256):curl -fsSL https://raw.githubusercontent.com/xy-tuoren/agy-family/main/scripts/install.sh | bash -s -- "agyfam://join?d=..."
Multi-Group & Advanced CLI Commands
agy-family deploy --self --member "Owner" --email "[email protected]" # Non-interactive deploy
agy-family ls # List all hosted & joined family groups
agy-family host show [--reveal-key] # Show active hosted group info
agy-family host use <group-name|index> # Switch active hosted group
agy-family open <group-name|index> # Passwordless browser login
agy-family open --link # Print 5-minute single-use mobile link
agy-family master bind # Re-pick master quota account
agy-family update --server # Upgrade both local CLI & cloud board
How Privacy & Anti-Tamper Work
- Zero-Privacy Upload: Reads local
conversations/*.db(including live.db-walframes and compacted turns) strictly read-only, extracting only hour buckets, models, tokens, and reference USD. Google credentials stay on-device solely to query official quota endpoints. - Auto-Skip Non-Family Accounts: Compares member emails via SHA-256 hash only; skips reporting automatically when switched to another account.
- Multi-Layer Anti-Tamper: Server-side
MAX()monotonic high-water locks prevent undercounting; anonymous per-conversation session odometer (session.wipe), 14-day multi-drop time-slice correlation, solo-window drop-rate peer calibration (rate.underreportto surface proportional under-reporting), collaborative quota outlier rejection (quota.outlier), anonymized device fingerprint#xxxx, and admin-configurable minimum client version gate (426 Upgrade Required). - Free-Tier Friendly: Delta-bucket sync + batched D1 writes cut D1 writes by 98%+, keeping a full 6-member group well inside Cloudflare's free tier.
Repository Layout & Local Development
packages/
├── core/ # Zero-dep read-only SQLite + protobuf parser, pricing, buckets, quota
├── server-core/ # Shared server (API + light/dark UI + Admin Console + Webhooks)
├── worker/ # Cloudflare Workers + D1 adapter
├── server-node/ # Node.js >=22.13 built-in SQLite server
└── cli/ # Unified zero-dep CLI
skills/
└── agy-family/ # Standard Agent Skill (SKILL.md + REFERENCE.md)
npm test # Run unit, integration, and Cloudflare D1 adapter tests
HOST=127.0.0.1 npm run serve
Feedback, Acknowledgments & License
- Found a bug or have an idea? Please open an issue. If
agy-familyhelps your family group, a ⭐ star is appreciated! - Thanks to the LINUX DO community for feedback, discussions, and support.
- Released under the MIT license — 100% open source.
Star History
Explore related projects
Loading…



