AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證GitOps-managed Kubernetes infrastructure for AI-powered applications. Secure, reproducible, and ready to modify with your favourite AI coding assistant.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗GitOps-managed Kubernetes infrastructure for AI-powered applications powered by the Flux Operator and Flux CD. A single bootstrap application provisions a Kubernetes cluster, installs all infrastructure components, and enables continuous delivery from Git.
💾 Infrastructure as Code -- your entire cluster is defined in Git. Every change is versioned, reviewable, and reversible. You can modify infrastructure with AI coding assistants (Cursor, Copilot, Claude) that understand YAML and Helm values -- describe what you want in natural language and commit the result.
🔒 Security by default -- containers run as non-root with read-only filesystems and dropped capabilities. Network policies isolate workloads so pods can only communicate with explicitly allowed services. Secrets are encrypted at rest with SOPS/Age before they ever reach Git. SSL certificates are automatically managed by cert-manager.
🔄 Reproducible deployments -- the same bootstrap script produces an identical cluster every time, on any supported machine. Drift is automatically corrected by Flux reconciliation -- if someone manually changes a resource, Flux reverts it to match Git within minutes.
🔌 Scalable and flexible -- powered by Kubernetes, you can add worker nodes to grow capacity or drop in new components like Lego blocks. Need a database, a message queue, or another AI model? Add a HelmRelease to the repo and push -- Flux deploys it automatically.
If you already have Node.js on your Mac or Linux machine:
npx gitops-ai bootstrap
If Node is not installed yet, use the helper script — it installs Node when missing (on macOS, Homebrew is required for that step), then starts the wizard:
curl -sfL https://raw.githubusercontent.com/GitOpsAI/gitops-ai-bootstrapper/refs/heads/main/install.sh | bash
The interactive wizard will prompt for your Git provider (GitHub or GitLab), create or use a repository from the GitOps AI Template, and run the full bootstrap.
No server? Run the same command in a GitHub Codespace opened on your repo created from the template: the template's devcontainer provides Docker and the CLI tools, the cluster runs in k3d, and the Cloudflare Tunnel network mode publishes it on your domain behind Cloudflare Access, with no public IP. See Running in GitHub Codespaces for the limits of the free tier and the one-time setup.
| Resource | Minimum |
|---|---|
| CPU | 2+ cores |
| Memory | 4+ GB |
| Disk | 20+ GB free |
| OS | Ubuntu 25.04+ or macOS |
| Node.js | 18+ (installed automatically by install.sh) |
| Docker | macOS only — Docker Desktop; not used on Linux bootstrap |
You will also need a GitLab PAT, a Cloudflare API Token (if using automatic DNS/TLS), and an OpenAI API Key (if using OpenClaw). See Prerequisites for full details.
This CLI bootstraps clusters from the GitOps AI Template -- a ready-made GitOps repository structure that Flux uses as the single source of truth for your cluster.
The template contains the declarative Kubernetes manifests, HelmRelease definitions, Kustomization overlays, and SOPS encryption configuration that define a complete infrastructure stack. When you run npx gitops-ai bootstrap, the CLI forks this template into your GitLab namespace, customises it with your cluster variables (domain, tokens, component selections), and points Flux at the resulting repository. From that moment on, every git push to the repo triggers Flux reconciliation -- your cluster converges to match whatever is declared in Git.
Keeping the template in a separate repository means:
The upstream template (and your bootstrapped repo) is organised roughly as:
| Path | Role |
|---|---|
templates/<category>/… | Shared Helm bases and component manifests (e.g. templates/system/, templates/ai/, templates/monitoring/). |
clusters/_template/ | Prototype cluster layout; the CLI copies this to clusters/<your-cluster-name>/ during bootstrap. |
clusters/<name>/ | Your live cluster overlay (cluster-sync.yaml, components/, encrypted secrets). |
See Architecture for diagrams and a fuller tree.
The CLI provides these commands:
bootstrap (alias: install)Interactive wizard that provisions a complete Kubernetes cluster with Flux GitOps. Walks through repository setup, component selection, cluster creation, SOPS encryption, and Flux reconciliation.
npx gitops-ai bootstrap
See Bootstrap for a detailed walkthrough.
sops [subcommand] [file]SOPS secret encryption management. Run without arguments for an interactive menu, or specify a subcommand directly:
npx gitops-ai sops [subcommand] [file]
| Subcommand | Description |
|---|---|
init | First-time setup: generate age key, create .sops.yaml and K8s secret |
encrypt | Encrypt all unencrypted secret files |
encrypt <file> | Encrypt a specific file |
decrypt <file> | Decrypt a file for viewing (re-encrypt before commit) |
edit <file> | Open encrypted file in $EDITOR (auto re-encrypts on save) |
status | Show encryption status of all secret files |
import | Import an existing age key into a new cluster |
rotate | Rotate to a new age key and re-encrypt everything |
openclaw-pairPair an OpenClaw device with the cluster after bootstrap:
npx gitops-ai openclaw-pair
template syncFetch the upstream GitOps template and merge changes into your current branch. Run without flags for an interactive wizard (tag picker, diff preview with risk classification, merge/dry-run/cancel), or pass flags for non-interactive use:
npx gitops-ai template sync # interactive wizard
npx gitops-ai template sync --ref v1.0.0 # non-interactive merge
npx gitops-ai template sync --ref main --dry-run # non-interactive preview
The bootstrap wizard lets you select which components to install:
| Component | Required | Description |
|---|---|---|
| Helm Repositories | Yes | Shared Helm chart repos |
| Ingress Nginx (external) | Yes | External HTTP/HTTPS ingress controller |
| Prometheus CRDs | Yes | Monitoring custom resource definitions |
| Cert Manager | DNS/TLS | Automatic TLS certificates via Let's Encrypt |
| External DNS | DNS/TLS | Automatic DNS records in Cloudflare |
| Grafana Operator | No | Grafana dashboards and datasources via CRDs |
| Victoria Metrics Stack | No | Metrics collection, alerting and long-term storage |
| Flux Web UI | No | Web dashboard for Flux status |
| OpenClaw | No | AI assistant gateway (requires OpenAI key) |
| Cloudflare Tunnel | Tunnel | Public access via outbound tunnel + Access |
Components marked DNS/TLS are automatically enabled when you opt into automatic DNS and TLS management during the wizard. Cloudflare Tunnel is enabled by the Cloudflare Tunnel network mode, which replaces External DNS with one wildcard record pointing at the tunnel.
| Document | Description |
|---|---|
| Prerequisites | Node.js, Docker (macOS), Git provider, optional Cloudflare / OpenAI |
| Bootstrap | What the bootstrap does, wizard walkthrough, resume capability |
| Architecture | Repositories, bootstrap flow, Flux Operator & Instance, repo tree |
| Configuration | Cluster variables, SOPS defaults, post-bootstrap changes |
| Template synchronization | Upstream merges, template sync, CI parity, risk tiers |
| Scaling | Adding k3s worker and server nodes (Linux) |
| Security | SOPS, Git auth, hardening, network |
git clone https://gitlab.com/everythings-gonna-be-alright/gitops_ai_bootstrapper.git
cd gitops_ai_bootstrapper
npm install
npm run dev # Run CLI locally via tsx
npm run build # Compile TypeScript to dist/
npm run typecheck # Type-check without emitting
npm run test:sync # Unit tests for template sync logic
npm run test:unit # Unit tests: platform detection, components, Cloudflare Tunnel provisioning
npm run test:integration # Full k3d + Flux integration test (requires Docker)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.