{"id":50139053,"url":"https://github.com/cuihairu/cockpit","last_synced_at":"2026-05-26T03:01:23.905Z","repository":{"id":359822512,"uuid":"1228384280","full_name":"cuihairu/cockpit","owner":"cuihairu","description":"Personal Hybrid Infrastructure Console","archived":false,"fork":false,"pushed_at":"2026-05-24T00:04:19.000Z","size":57792,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T00:08:05.269Z","etag":null,"topics":["cmdb","homelab","nas","openwrt","pve","server-management"],"latest_commit_sha":null,"homepage":"https://cuihairu.github.io/cockpit/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuihairu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-04T00:38:02.000Z","updated_at":"2026-05-24T00:04:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cuihairu/cockpit","commit_stats":null,"previous_names":["cuihairu/cockpit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cuihairu/cockpit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuihairu%2Fcockpit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuihairu%2Fcockpit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuihairu%2Fcockpit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuihairu%2Fcockpit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuihairu","download_url":"https://codeload.github.com/cuihairu/cockpit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuihairu%2Fcockpit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33501704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"online","status_checked_at":"2026-05-26T02:00:06.821Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmdb","homelab","nas","openwrt","pve","server-management"],"created_at":"2026-05-24T00:04:28.692Z","updated_at":"2026-05-26T03:01:23.892Z","avatar_url":"https://github.com/cuihairu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cockpit\n\n\u003e 个人混合基础设施控制台 —— Git-first 的 Homelab CMDB 与监控平台\n\n[![Go](https://github.com/cuihairu/cockpit/actions/workflows/go.yml/badge.svg)](https://github.com/cuihairu/cockpit/actions/workflows/go.yml)\n[![Docs](https://github.com/cuihairu/cockpit/actions/workflows/docs.yml/badge.svg)](https://github.com/cuihairu/cockpit/actions/workflows/docs.yml)\n[![codecov](https://codecov.io/gh/cuihairu/cockpit/branch/main/graph/badge.svg)](https://codecov.io/gh/cuihairu/cockpit)\n\n[![Go Version](https://img.shields.io/badge/Go-1.25+-00ADD8?logo=go)](https://go.dev/)\n[![Linux](https://img.shields.io/badge/Linux-FCC624?logo=linux\u0026logoColor=black)](https://github.com/cuihairu/cockpit/releases)\n[![macOS](https://img.shields.io/badge/macOS-000000?logo=apple)](https://github.com/cuihairu/cockpit/releases)\n[![Windows](https://img.shields.io/badge/Windows-00A4EF?logo=windows)](https://github.com/cuihairu/cockpit/releases)\n[![OpenWrt](https://img.shields.io/badge/OpenWrt-00B5E2?logo=openwrt)](https://github.com/cuihairu/cockpit/releases)\n\n## 介绍\n\nCockpit 是一个针对个人混合基础设施的管理平台，提供：\n\n- **统一资产视图**：物理机、PVE VM/LXC、Docker、域名、证书、CI/CD 等\n- **跨地域监控**：支持异地机房、NAT 后设备的主动上报心跳\n- **Git-first 配置**：所有配置存储在 Git，支持 diff/rollback\n- **第三方集成**：同步到 Nezha、Homepage 等已有工具\n\n## 架构\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                    Cockpit Server                           │\n│  ┌─────────────────────────────────────────────────────┐    │\n│  │  WebSocket Server (Agent 连接)                      │    │\n│  │  Agent Registry (连接池管理)                        │    │\n│  │  RPC Router (转发 API 调用)                         │    │\n│  │  SQLite (配置 + 运行时状态)                         │    │\n│  │  Web UI / API                                       │    │\n│  └─────────────────────────────────────────────────────┘    │\n└─────────────────────────────────────────────────────────────┘\n         ↑ WebSocket (Agent 主动连接)\n         │\n┌─────────────────────────────────────────────────────────────┐\n│  各地 Agent（物理机/VM/容器，跨地域/NAT 均可）                │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## 快速开始\n\n### 安装 Server\n\n```bash\n# 克隆仓库\ngit clone https://github.com/cuihairu/cockpit.git\ncd cockpit\n\n# 初始化配置\n./cockpit init\n\n# 启动 Server\n./cockpit server start\n```\n\n### 部署 Agent\n\n```bash\n# 在目标机器上\n./cockpit-agent start --server wss://your-server.com:8080\n```\n\n## 文档\n\n完整文档请访问：[cuihairu.github.io/cockpit](https://cuihairu.github.io/cockpit/)\n\n## 许可证\n\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuihairu%2Fcockpit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuihairu%2Fcockpit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuihairu%2Fcockpit/lists"}