In May 2026, InfoQ reported that Coder Agents Enable Running AI Coding Workflows on Self-Hosted Infrastructure, signaling that architectures where Coder (a self-hosted development environment platform) integrates AI agents to run Claude Code, Codex, and Copilot "inside self-hosted servers" have reached production readiness.
For client projects in regulated industries where "source code cannot leave the organization," this marks a turning point that shifts the reality from having to give up on AI coding entirely. This article outlines the implementation steps for client projects built on Coder Agents.
Why AI coding stalled in regulated industries
The four main obstacles that previously blocked the adoption of Claude Code, Cursor, and Copilot are as follows:
| Barrier | Impact in regulated industries |
|---|---|
| Source code export restrictions | Buffer contents are transmitted to the cloud |
| Cross-border data transfer | Prohibition on routing through overseas data centers |
| Audit compliance | Mandatory retention of prompts and responses |
| Model discretion | Cases prohibiting models other than government-approved ones |
Particularly across financial institutions, healthcare providers, and the public sector, standards such as FISC, the 3 Ministries' 2 Guidelines, and ISMAP (Information system Security Management and Assessment Program) mean that code traversing the internet is itself prohibited, stalling the adoption of AI coding. In the private sector as well, demands evaluating security implementation status as a transaction prerequisite are spreading, exemplified by METI's Security Compliance System (SCS).
How Coder Agents changes "self-hosted AI coding"
Coder Agents overcomes barriers in regulated industries through three structural features.
Feature 1: Confining the entire development environment within "internal infrastructure"
Coder hosts development environments including VS Code, Zed, and Cursor directly on the client's Kubernetes clusters or VMs. Because AI agents operate entirely within this isolated perimeter, it allows for an architecture where code never leaves the premises.
Feature 2: Bring Your Own Model (BYOM) support
Coder Agents can interface with multiple models—including Claude, GPT, Gemini, Llama, and Qwen—via a unified interface. This accommodates constraints such as "government-approved LLMs only." It aligns with the model-switching approach via MCP discussed in Private MCP Server Implementation.
Feature 3: Comprehensive audit logs "out of the box"
Coder records structured logs detailing "who sent what to which model and when." Having audit readiness built into the design rather than treated as an afterthought is accelerating adoption across regulated industries.
Four patterns for client delivery
Pattern 1: Migrating existing IDE environments to Coder
A pattern where existing teams using VS Code are moved from "local IDEs to Web IDEs hosted on Coder." Rather than permitting direct git clones to corporate laptops, direct cloning is prohibited and access is routed through Coder via a browser.
Pattern 2: Phased rollout of AI agent capabilities
A pattern where Coder is initially deployed with AI features disabled, after which Claude, Codex, and Copilot are enabled in stages. This allows ample time to build consensus with regulatory and compliance stakeholders.
Pattern 3: Model-switching gateway
An architecture placing a model-switching gateway upstream of Coder Agents to "switch models based on data sensitivity." Internal LLMs (Llama, Qwen, LLM-jp-4 Private LLM) and external LLMs are toggled per project.
Pattern 4: Managed operations for full audit compliance
A pattern encompassing turnkey delivery of infrastructure provisioning, operational maintenance, and audit report generation. This assists clients so that the IT team is not overwhelmed by audit compliance workloads.
Implementation components in client projects
| Component | Role | Recommended technology |
|---|---|---|
| Base cluster | Host for Coder Workspaces | Kubernetes(GKE / EKS / OpenShift) |
| Model gateway | LLM switching + auditing | LiteLLM / LangFuse |
| Secret management | API keys / credentials | HashiCorp Vault / GCP Secret Manager |
| Log aggregation | Long-term retention of audit logs | OpenTelemetry + S3 / GCS |
| Access control | SSO / SAML / mTLS | Okta / Entra ID / Pomerium |
In particular, pairing OpenTelemetry + S3 reflects the observability design discussed in Achieving Airbnb-Style Observability through OpenTelemetry Migration, easily satisfying long-term demands such as "retaining audit logs for seven years."
Comparison: Coder Agents vs. fully custom in-house build vs. cloud-based
| Item | Coder Agents for clients | Fully custom in-house build | Cursor / Copilot Enterprise |
|---|---|---|---|
| Code export | None | None | Yes (encrypted) |
| Implementation timeline | 2 to 3 months | 6 to 12 months | Immediate |
| Initial cost | Varies by regulatory requirements and user count | From 50,000,000 yen | Monthly fees only |
| Operational burden | Absorbable via client development partner | High | Low |
| Model selection flexibility | High | High | Limited |
For typical regulated industry demands of "cannot export source code + need immediate deployment," building on Coder Agents via a development partner is the pragmatic solution.
"Self-hosted AI coding clauses" to include in client contracts
| Clause | Details | What the client should verify |
|---|---|---|
| Infrastructure demarcation | Managing entity of the cluster | Skill set of client-side SREs |
| Model-switching authority | Approval workflow for adopting new models | Involvement of compliance departments |
| Audit log retention period | Legal requirements and retention SLAs | Storage costs |
| Incident response | Shutdown decision-making during model malfunctions | Off-hours communications |
| Upgrade policy | Update schedule for Coder and models | Operational impact |
Four common pitfalls
Pitfall 1: Confusing "Coder itself as the AI coding platform"
Coder itself is a development environment platform; AI capabilities are added downstream as Agents. Clarify upfront that "installing Coder does not mean AI works automatically."
Pitfall 2: Postponing compliance and regulatory approval
Proceeding solely within engineering teams leads to rejections during audit and legal review. Involving regulatory and compliance departments from Phase 0 is mandatory.
Pitfall 3: Ambiguous authority over model switching
Incidents occur where engineer requests to "try out a new model" bypass regulatory controls. Establish firmly in the contract that adding models requires regulatory approval.
Pitfall 4: Overlooking audit log costs
Satisfying seven-year retention alongside searchability can cost hundreds of thousands of yen monthly in storage and indexing. This item must be factored into initial estimates.
Conclusion — Bringing AI coding to regulated industries
Coder Agents overturns the premise that "AI coding is impossible in regulated sectors." In client projects, designing the triad of "infrastructure + models + auditing" represents the only solution that simultaneously satisfies compliance and drives productivity.
With a self-hosted AI coding platform, architecture and labor cannot be finalized until three things are decided: where the cluster resides, which models compliance will approve, and how many years and at what granularity audit logs must be retained. The roadmap also varies depending on which of the four patterns discussed here fits best, or whether consensus-building with compliance is needed starting from Phase 0. If you are exploring options like "introducing AI coding into an industry where source code cannot leave the premises" or "running Claude Code on internal infrastructure," we welcome inquiries via our inquiry form.



