Integrate Cloudflare cf CLI and OAuth agent tooling #312
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#312
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adapt the official Cloudflare agent setup to the shared NixOS environment.
Scope:
Implementation and review: PR #314, feat/cloudflare-agent-setup. Milestone: Cloudflare Agent Tooling.
Acceptance:
Already verified: full nix flake check, PNG rendering, disposable local Worker, command search, no-op input refresh, both OAuth logins, and a live read-only Cloudflare API request on Electra. No fleet NixOS activation yet.
Implemented locally in commit
00e8486on feat/cloudflare-agent-setup; not published.Validation: nix flake check passed; nixfmt and diff whitespace checks passed. Evaluated registry outputs: Codex uses Streamable HTTP without a bearer token; OpenCode has enabled=true/oauth={}; Pi has the remote URL; Antigravity and Hermes receive the same endpoint. Existing stdenv.isLinux/isDarwin warnings traced to the pinned upstream Framework tooling flake, not the Cloudflare module.
Electra: installed all 17 official vendor skills in ~/.codex/skills using the skill-installer GitHub helper, and verified the global Codex cloudflare registration. OAuth login initiated and browser authorization opened on Electra; account approval remains pending. Optional cf CLI skipped absent opt-in. Fleet deployment and MR publication have not been requested. Keep issue open for authentication/deployment evidence.
Follow-up completed: user opted into the beta cf CLI and explicitly requested that it follow flake updates rather than a manual version pin.
The final package reads latest-release metadata from the flake-locked npm cf/latest endpoint and runtime dependencies from Cloudflare's upstream pnpm lock, with pnpm2nix assembling integrity-checked dependencies. Release metadata/source manifest agreement is enforced; the two inputs are refreshed together by the fleet update policy. No hand-maintained application version or combined npm dependency hash remains. The pnpm2nix build input is also classified for all four AI-client hosts.
On Electra, Codex MCP login and cf's independent OAuth login are both confirmed. The installed cf successfully read the Cloudflare API. User-level Codex instructions now prefer cf except in Wrangler projects; the same instruction is in the pending Nix profile.
Validation: full nix flake check passed; dedicated package smoke check passed (command search, actual sharp PNG rendering, disposable local Miniflare Worker); all root inputs covered exactly once by update policy; a subsequent refresh of the three Cloudflare/build inputs was a no-op. Nix's libvips replaces the prebuilt image library that crashed on load; workerd and the native addon are patched for NixOS. Existing Framework tooling deprecation warnings remain unrelated.
A temporary user-profile launcher uses this validated package now and prefers Home Manager's cf after future deployment, preventing the temporary installation from masking fleet upgrades. No NixOS fleet activation, MR, or branch publication performed. Issue remains open for publication/deployment acceptance.
Add Cloudflare agent MCP setupto Integrate Cloudflare cf CLI and OAuth agent toolingOpen-issue audit after merged PR #314: implementation/review is complete and source is in main. Read-only live evidence on Electra now confirms the normal detached auto-update switch completed successfully, active configuration revision is
3c6dbe8382, and /etc/profiles/per-user/nimmo/bin/cf resolves to the Nix-managed cloudflare-agent-cli package. The earlier statement that no NixOS activation had occurred is superseded for Electra.Keeping this issue open because its explicit deployment/no-op follow-up acceptance is not yet complete. The inspected update journal shows the genuine switch, but no subsequent no-op update evidence; this audit did not trigger any activation or privileged updater command. Other fleet rollout acceptance is also not inferred from Electra alone.