Skip to main content
Back to blog

Local-First AI DevOps: The Architecture That Changes Where Trust Lives

Local-first AI DevOps keeps credentials on your machine, routes queries directly to cloud APIs, and gates every write with explicit approval.

Merged article

This topic now lives on one canonical page

This local-first AI DevOps article was consolidated into the canonical category page so the definition, tradeoffs, alternatives, and product fit live on one stable URL.

Read the canonical article

The tooling debate in AI DevOps is not about features. It is about architecture — specifically, about where trust lives and which machine makes decisions on behalf of your infrastructure.

Most AI-assisted DevOps tools follow the same model: connect your cloud accounts to the vendor's platform, let the vendor proxy your queries through their AI layer, and consume insights through a hosted dashboard. It works, until it does not.

Local-first AI DevOps is the architectural alternative. The term is borrowed from the local-first software movement, but the principles translate directly to infrastructure tooling: your machine is the trust boundary, credentials never leave it, and every write operation requires your explicit approval. This article defines what local-first means as an architectural property, explains why it emerged as a response to real failure modes, and makes the case for it as the right foundation for AI-driven infrastructure operations in 2026.


Why the AI DevOps Tooling Architecture Debate Matters Now

The timing is not accidental. AI-assisted infrastructure tooling became mainstream in 2025, precisely when the attack surface of cloud credentials became better understood. Engineers using AI DevOps platforms were being asked to do something they would never do with raw credentials: hand them to a third party and trust that the third party's security posture was adequate.

This is not a theoretical concern. The CircleCI breach in January 2023 exposed customer secrets — including AWS keys and GitHub tokens — because they were stored in CircleCI's environment. The Codecov supply-chain attack in 2021 exfiltrated credentials from CI pipelines by compromising a shared build script. In both cases, the attack surface was created by the vendor layer that touched credentials, not the customer's own infrastructure.

AI DevOps tools that ingest your cloud credentials to a hosted platform create the same attack surface. If a vendor holds your AWS access keys, your GCP service account credentials, and your kubeconfig, you have introduced a third party into your credential trust chain.

Local-first is the architectural response to this problem.


The Hosted AI DevOps Model and Its Failure Modes

The hosted model works like this. You create a service account or IAM role, grant it read (and sometimes write) access to your cloud accounts, and provide those credentials to the vendor. The vendor stores them, uses them to pull your infrastructure telemetry, and routes your natural language queries through their AI layer before returning answers.

There are three structural failure modes:

Vendor breach surface. Any credential stored in a third-party platform is only as secure as that platform's security posture. You have visibility into none of this at runtime.

Opaque AI routing. In most hosted tools, you do not know which model is processing your infrastructure queries, what context data is retained, or whether your topology is being used to train vendor models.

Token markup. Bundled AI means the vendor controls which model answers your queries. You cannot switch to claude-opus-4-6 for a complex incident investigation or drop to a local gemma4:26b for routine status checks. The AI layer is fixed.


Three Architectural Properties of Local-First

Local-first AI DevOps is defined by three architectural properties. These are not features — they are design constraints that determine the entire trust model.

1. Credential Locality

Credentials are read from local files and environment variables and are never transmitted to vendor infrastructure. This means ~/.aws/credentials, ~/.kube/config, GCP Application Default Credentials, and any other cloud SDK credential chain remain on your machine. The tool reads them the same way the AWS CLI or kubectl reads them — as a local process with local file access.

There is no service account to create for the vendor. There is no IAM role to grant. There is no credential to rotate when you offboard from the tool. The trust relationship is between your machine and your cloud providers, exactly as it was before you introduced AI tooling.

2. Direct Provider Access

Queries follow the path: your machine → cloud provider API. Not: your machine → vendor proxy → cloud provider API.

This distinction matters because the proxy introduces a third party into every infrastructure query. When you ask "show me all pods in namespace production," in a hosted tool that query leaves your machine, hits the vendor's servers, gets augmented with your stored credentials, and then hits the Kubernetes API. In a local-first tool, the query hits the Kubernetes API directly from your machine with your local kubeconfig — the vendor's infrastructure is not in the path at all.

3. Explicit Action Gates

Read operations are instant. Write operations require human approval at every step.

This is the operational safety property. A local-first AI DevOps tool can tell you that billing-worker has been running at 3% CPU average across four replicas for thirty days and that you could save $140 per month by scaling it down. What it cannot do is scale it down without your explicit approval. Every change — every kubectl apply, every Terraform plan execution, every cloud API mutation — passes through an approval gate before it touches your infrastructure.


Local-First Does Not Mean Offline

The phrase "local-first" sometimes reads as "air-gapped" or "disconnected." It is neither.

Your machine queries your cloud providers in real time. When you ask about the health of your production cluster, the tool reads live pod status from the Kubernetes API. When you ask why checkout latency is spiking, the tool traces the dependency graph across live services. The data is current. The queries are live.

The difference is where the trust boundary sits. In the hosted model, the trust boundary is the vendor's platform. Your credentials are inside the vendor's perimeter, and the vendor's security posture determines whether they stay safe. In the local-first model, the trust boundary is your machine. Your credentials never leave it. The queries your machine makes to cloud providers are authenticated by credentials that exist only on your machine — the same way any CLI tool works.

Local-first means your machine is the control plane, not an offline box.


The BYOK Corollary

If the argument for credential locality applies to cloud credentials, it applies equally to AI model keys.

In the hosted AI DevOps model, the vendor also controls the AI layer. Your OpenAI or Anthropic API key is either replaced entirely by the vendor's bundled model subscription or — in some hybrid tools — transmitted to the vendor's proxy before being forwarded to the AI provider. Either way, there is a markup layer and a third party in the path.

The local-first architecture extends naturally to AI keys: you configure your own API keys for whatever model you want to use, those keys live on your machine, and your queries go from your machine directly to the AI provider's API. There is no vendor in the path and no markup.

This is the BYOK (bring your own keys) model. For an AI DevOps tool, it means you choose claude-opus-4-6 for deep incident analysis, gpt-5.4 Thinking for structured cost investigations, gemma4:26b via Ollama for routine status checks at zero cost, or hermes3:70b (MIT) for agentic tool-use workflows. You pay the AI provider directly at their listed rates. The tool vendor is not in the billing chain.


Maker Mode: The Action Gate That Makes Local-First Safe for Production

Credential locality and direct provider access define the read-side trust model. The explicit action gate defines the write-side trust model.

Maker Mode is the implementation of the third architectural property. It is the enforcement mechanism for the principle that AI tools should show you what they are about to do and require you to say yes before they do it.

The workflow follows four steps that cannot be short-circuited: Ask (query live state), Inspect (review topology and context), Plan (receive a concrete change plan with cost impact), Apply (explicitly approve before anything executes).

This is the same philosophy that has made terraform plan before terraform apply standard practice for a decade. AI can produce complex change plans quickly. That speed is only safe with an approval gate between generation and execution.

In the Clanker Cloud CLI, this is the --maker flag. In the desktop app, every write operation surfaces a reviewed plan before execution. Read operations — status checks, topology queries, cost lookups — are instant. Writes are gated. The distinction is architectural.


Clanker Cloud as the Reference Implementation

Clanker Cloud is a desktop application for macOS, Windows, and Linux that implements all three local-first architectural properties plus Maker Mode.

Credential locality in practice:

The app reads ~/.aws/credentials and ~/.aws/config, ~/.kube/config, GCP Application Default Credentials, and the credential chains for Azure, Cloudflare, Hetzner, DigitalOcean, and GitHub. Nothing is transmitted to Clanker Cloud's servers. There is no service account to provision and no credential store outside your machine.

Direct provider access in practice:

# Local-first: Clanker reads YOUR local kubeconfig
cat ~/.kube/config  # Clanker Cloud reads this directly
clanker ask "show me all pods in namespace production"
# No agent rollout. No DaemonSet. No data forwarded to any vendor.

# Compare: the hosted tool approach
# Step 1: install a DaemonSet on every node
kubectl apply -f datadog-agent-daemonset.yaml
# Step 2: all metrics stream to vendor cloud indefinitely

When you ask "why is checkout latency spiking?" the query goes from your machine to your Kubernetes API and your cloud provider APIs. The answer — in this case, that session-cache is degraded and reads are falling through to orders-postgres, causing the checkout-api to spike — is assembled on your machine from live API responses. The live demo shows this in action.

BYOK in practice:

Your AI model keys are configured locally. Queries go from your machine to the AI provider directly. The MCP server, when enabled, runs on 127.0.0.1:39393 — a loopback address not reachable from any external network. See the full model and agent documentation for configuration details.

Maker Mode in practice:

The --maker flag activates the approval gate for CLI operations. In the desktop app, every change plan surfaces before execution with the affected resources, the intended change, the estimated cost impact, and an explicit approve/reject prompt. See the for AI agents page for how agents interact with Maker Mode via MCP.


The Developer Experience Advantage: The Same Credential Chain You Already Trust

There is a practical argument for local-first alongside the security argument: you already maintain local credentials, and local-first tools use them without modification.

Your ~/.aws/credentials file contains profiles you have configured and trust. Your ~/.kube/config contains contexts for every cluster you have access to. A local-first AI DevOps tool adds an AI query layer on top of this credential chain. There is no migration, no re-provisioning, no new service account to create. You install the tool, it reads the same credential files your existing tools read, and you start asking questions.

This is additive to your existing setup rather than requiring a parallel credential management workflow. Teams moving from vibe coding to production particularly benefit — there is no new credential surface to manage as you scale from prototype to live infrastructure.


Local-First for Teams: Business and Business Pro Tiers

Local-first scales to teams. The architectural properties — credential locality, direct provider access, explicit action gates — apply whether one engineer is using the tool or twenty.

Clanker Cloud for teams is available at the Business ($200/month) and Business Pro ($3,000/month) tiers. Both support custom agents in Python or Node.js via the local MCP surface. Teams can run OpenClaw for autonomous runbooks, Hermes for monitoring, and Claude Code for deployment correlation — all sharing the same MCP context, with Maker Mode enforcing the approval gate on every write.

The Deep Research feature fans out across all connected providers, returning severity-graded findings across cost, security, and reliability — CRITICAL/HIGH/MEDIUM with concrete dollar estimates. AI costs remain BYOK, billed directly by your chosen provider at their listed rates.


FAQ

What does "local-first" mean in the context of AI DevOps tools?

Local-first AI DevOps means that cloud credentials are stored and used only on your local machine, queries go from your machine directly to cloud provider APIs without passing through a vendor's servers, and write operations require explicit human approval. The trust boundary is your machine, not the vendor's platform.

Does local-first AI DevOps mean the tool works without an internet connection?

No. Local-first refers to where credentials live and where queries originate, not to connectivity. A local-first AI DevOps tool queries your cloud providers in real time — Kubernetes APIs, AWS APIs, GCP APIs — and requires an internet connection to reach those providers. The difference from hosted tools is that your credentials never leave your machine to reach those APIs.

Why is BYOK (bring your own keys) considered part of the local-first model?

BYOK is the natural extension of credential locality to AI model keys. If the argument for keeping cloud credentials on your machine is that third-party credential storage creates an attack surface, the same argument applies to OpenAI or Anthropic API keys. In a fully local-first architecture, AI model keys are configured locally and queries go from your machine directly to the AI provider's API — no vendor proxy, no markup.

How is the explicit action gate different from a confirmation dialog?

The explicit action gate in Maker Mode is not a confirmation dialog. It is a full change plan — the specific resources affected, the intended modification, the current state, the estimated cost impact, and an assessment of risk. Only after reviewing this plan does the engineer approve or reject. Read operations (queries, status checks, topology inspection) are instant. Write operations always pass through this gate. See the FAQ page for more detail on how Maker Mode handles different operation types.


Start with Local-First

The architecture of your DevOps tooling determines your credential attack surface, your AI cost structure, and how much confidence you can have before any infrastructure change. Local-first AI DevOps is not a philosophy in opposition to capability — it is the architecture that makes AI-driven infrastructure operations safe to use in production.

Download Clanker Cloud and connect your existing credential chain. Your ~/.aws and ~/.kube/config are already there. The tool reads them the same way kubectl does. The documentation covers provider setup, BYOK model configuration, and MCP agent integration in detail.

Local-first is not a constraint. It is the foundation that makes everything else trustworthy.

Next step

Turn this playbook into a live infrastructure check

Download the desktop app, connect existing credentials locally, and ask Clanker Cloud the same kind of question against your real cloud, Kubernetes, GitHub, or cost data.

Download Clanker CloudRead canonical article