1. The adoption challenge is not whether an agent can write code
At developer events, the demo often looks straightforward: describe a requirement, let AI inspect a project, change files, and run tests, and a few minutes later a feature is ready.
But when a team tries to turn that demo into everyday practice, the question changes from “Is the model smart enough?” to:
Who can open this agent? Which files can it read? Who manages model keys? Will the workspace survive a change of computer? How are costs controlled? And who can find out what happened when execution fails?
Coding agents make these questions particularly concrete. They do not merely return text. They execute commands, install tools, and modify code. Running them on a developer’s laptop is convenient, but it also distributes environment maintenance, credential management, and execution risk across individual users.
Consider a team using GitHub Copilot CLI, Claude Code, and Codex CLI. Its platform team faces six recurring problems:
| Adoption problem | Friction with individual installations | What the platform needs to provide |
|---|---|---|
| Three tools, installed and configured separately | Environment drift and difficult reproduction | Approved runtime images with pinned versions |
| Agents execute code | Local privileges and business data become intertwined | Workload isolation and controlled access |
| Model credentials live in terminals | Difficult distribution, rotation, and revocation | A centralized model endpoint and per-agent credentials |
| Multiple users work concurrently | Workspaces, accounts, and sessions may be mixed | Private HOME volumes, separate workspaces, and ownership checks |
| Long-running work needs durable state | Shutdowns and container restarts can lose context | Persistent storage and explicit lifecycle management |
| Tools, models, and costs need governance | Configuration depends on each user’s discipline | Enforceable policies, model scopes, and budget management |
This is how I approach CetiRun: it does not reinvent the agent; it gives existing agents a home that an organization can operate.
2. CetiRun addresses execution and governance, not code correctness
CetiRun is an open-source managed runtime for AI agents and applications on Azure Kubernetes Service (AKS). A platform team installs it in its own Azure subscription. Shared platform services support users, while each agent receives its own execution resources.[1][2]
“Managed runtime” should not be confused with an Azure-operated, maintenance-free SaaS. The organization remains responsible for identity, nodes, storage, images, model accounts, and platform upgrades.
Its central idea is:
Share the control plane and model governance; separate each agent’s execution environment and working state.
CetiRun is not limited to coding agents. It supports OpenClaw, Hermes, and administrator-approved Custom Agent images. The official Coding Agents example uses the Custom Agent contract to integrate three native coding CLIs; it does not add three built-in agent types.[3]
The platform does not replace a native CLI’s inference loop or automatically guarantee correct code. Code review, testing, release approval, and model-provider terms remain the team’s responsibility.
3. Four core concepts: Agent, Team, AgentPolicy, and Sandbox
CetiRun’s starting point is not a particular CLI. It is a long-lived Agent resource owned by a user and retaining private state. OpenClaw, Hermes, and Custom identify runtime types; Agent is the common platform object that manages them.
Four resources describe the platform’s model:[2]
| Resource | What it determines |
|---|---|
| Agent | Owner, runtime image, Team, Sandbox, model, and lifecycle settings |
| Team | Team context and skills; a policy-bound Team also specifies its policy and allowed Sandboxes |
| AgentPolicy | Permitted agent types, models, skills, budgets, rates, identity, and network rules for Sandbox Agents |
| Sandbox | Isolation type, CPU, memory, and HOME storage for Sandbox Agents |
These resources are cluster-scoped, but each agent’s workloads run in a separate namespace. The resource diagram describes references between objects, not four kinds of running processes:
Another distinction matters before discussing implementation:
| Concept | Standard Agent | Sandbox Agent |
|---|---|---|
| Configuration source | Deployment and agent chart defaults | Bound AgentPolicy and Sandbox |
| Isolation | Chart selects Kata RuntimeClass by default; cluster support is required | Sandbox selects Kata or container isolation |
| Policy rate limits | No AgentPolicy rate limits | Can be set through AgentPolicy |
| Execution prerequisite | Normal runtime requirements | Sandbox execution must also be enabled |
Creating a policy object does not automatically govern every agent. Sandbox execution is off by default. Platform teams must deliberately choose which agents enter the policy-governed execution path.
Also, a Team is not a user membership authorization group. The documentation states that users can see and select Teams; CetiRun does not check Team membership. Teams organize agent context and policy, rather than replacing user access authorization.[6]
4. Architecture: control, access, execution, and models
The most useful architectural distinction is between managing an agent and using it.
he Portal, Operator, and AI Gateway are shared services. Namespaces, HOME volumes, and Virtual Keys are separated per agent. The optional Connections path requires its own configuration: a running agent does not automatically have access to external accounts.[2]
4.1 Control plane: manage agent resources, not just containers
Users create or update agents through the Portal. The Portal writes Kubernetes custom resources. When enabled, admission validates resources and policies. The Operator then reconciles namespaces, Helm releases, workloads, routes, storage, and model access.[2]
That is the value of declarative management: users describe the agent they want, and the Operator reconciles the configuration into running workloads. The Portal provides self-service access, and the Operator coordinates the lifecycle. Neither replaces the engine that performs inference and executes tools.
4.2 Access: authentication does not establish ownership by itself
Browser requests pass through HTTPS and authentication. For agent routes, an ingress ownership check determines whether the user can open that agent’s terminal or interface. Once authorized, traffic goes directly to the corresponding service. The Portal and Operator are not in the native CLI’s inference loop.[2]
Three independent authorization questions must remain separate:
| Authorization layer | Question it answers | What it does not establish |
|---|---|---|
| Portal sign-in | Who are you, and can you enter the platform? | Entitlement to Copilot models |
| Model authorization | Which models may this agent call? | Access to a particular GitHub repository |
| Repository connection | Which code resources may the agent access? | Permission to use any model or elevate platform privileges |
The standard documented deployment uses Microsoft Entra ID, while the Istio authentication templates also support OIDC modes. Deployments with verified Entra tokens use tenant and object IDs for authorization; this is not merely a username comparison. Compatibility deployments without a token verifier retain alias-based authorization and require unique aliases that users cannot arbitrarily change.[6][7]
Deployment design should therefore specify the identity provider, token verification, and ownership binding, rather than treating a successful sign-in as proof that every authorization control is correctly configured.
4.3 Execution and storage: private workspaces, not a shared writable directory
Each agent retains its own HOME for working files, configuration, and state. In the Coding Agents example discussed later, the coding workspace is $HOME/workspace. Native sessions remain in each runtime’s HOME and do not automatically migrate between runtimes.[2][3][4]
The concept is a private, durable workspace for each agent, not a common writable directory for multiple agents. Code collaboration can use independent clones or branches and integrate results through a Git workflow.
The standard agent chart selects a Kata RuntimeClass by default. Sandbox Agents use the isolation type selected by their Sandbox. Container isolation and Kata VM isolation are not equivalent. A namespace or a SandboxReady condition cannot replace verification of the actual runtime.[2][6]
Persistent HOME preserves working state, but it is not a backup. Suspension normally scales the workload to zero while retaining HOME. CetiRun does not automatically suspend idle agents. Deleting an agent deletes its HOME along with its namespace, so backup and recovery require separate planning.[2]
4.4 Models: centralize provider keys and issue a Virtual Key per agent
The AI Gateway is based on LiteLLM and uses PostgreSQL and Valkey. The Operator configures a separate Virtual Key for each agent, binding model access and a monthly budget. For Sandbox Agents, AgentPolicy can also supply rate limits.[2]
In the Coding Agents example, startup requires the platform to inject:
OPENAI_BASE_URL = the platform AI Gateway endpoint OPENAI_API_KEY = this Agent’s Virtual Key, not a raw provider key
The native adapter prepares the protocol and launch configuration for each CLI. It does not fabricate a model catalog when access fails or automatically fall back to a personal model account.[4]
This reduces provider-key distribution, but it does not mean the agent contains no credentials. Its Virtual Key is present in the execution environment and can be read by processes in the container. Nor does it prove that every model request is impossible to route around the gateway. Standard Agents allow public IPv4 egress by default; user-supplied credentials may still allow direct service calls. Policy and network controls must address that boundary.[6]
Budget and spend values are management information, not provider invoices or quota guarantees. Pricing configuration, budget enforcement, and service terms require separate verification.
4.5 Skills, Memory, and Connections are different extension mechanisms
Teams can supply context and skills, and the optional Skill Marketplace publishes approved skills. Memory retains agent notes. Connections MCP, together with the Agent Identity Broker, uses owner-authorized external connections and short-lived tokens.[1][2]
These are distinct concepts: a skill provides behavior, Memory provides state, and a Connection provides authorization to an external service. The Coding Agents adapter integrates platform instructions and skills through native CLI mechanisms, with a separate MCP integration for Memory. Enabling Memory does not automatically enable Connections MCP.[4]
4.6 Observability: an operating platform needs to explain what happened
The Portal exposes agent status and events. Platform observability components use ADX-Mon to send logs, events, and metrics to Azure Data Explorer. The operations team still determines the actual collection scope and access permissions.[1][2]
Observability answers “What happened during execution?” Tests answer “Was the result correct?” An agent showing Ready, a successful health check, or a readable model catalog cannot individually establish that a business task completed.
5. The official Coding Agents example illustrates Custom Agent extensibility
With resource, identity, execution, and model boundaries established, examples/coding-agents becomes easier to understand. It is not a separate special-purpose platform. It is one concrete application of the Custom Agent concept.[3]
5.1 Unify the platform, not the tools’ internal implementations
| Example Agent | Native runtime | Native role configuration directory | Model integration path |
|---|---|---|---|
| coding-copilot | GitHub Copilot CLI | .github/agents/ | AI Gateway -> per-Agent private Copilot Proxy -> GitHub Copilot |
| coding-claude | Claude Code | .claude/agents/ | AI Gateway’s Anthropic Messages-compatible route |
| coding-codex | Codex CLI | .codex/agents/ | AI Gateway’s Responses route, with provider protocol translation as needed |
Each Custom Agent has a separate main runtime container, persistent HOME, Virtual Key, and authenticated terminal. The Custom Terminal is a separate workload and uses restricted exec into only its own agent’s main container.[3][4]
This is not three CLIs in one container or a shared writable checkout. The tools retain their own role formats, tool mechanisms, and session behavior. The platform supplies their common execution and governance needs.
The example hosts CLIs, not the GitHub cloud coding agent service, Claude hosted sessions, or Codex Web.
5.2 A tool’s name is not its model source, and readiness is not authorization
The Copilot model path requires the owner to complete GitHub Copilot authorization in the Portal and have access to the selected model. That authorization does not replace a repository connection or any separate product sign-in required by the native CLI.
Claude Code calling a third-party model through Anthropic Messages is a compatibility route, not a claim of official Claude model support. Codex also requires verification of the Responses route and any provider protocol translation. Each CLI, model, and provider combination needs its own tests for tool calls, streaming, errors, and cancellation.[3][4]
An agent showing Ready is therefore not proof that upstream authorization is complete or that its coding results are correct.
5.3 Distinguish the real runtime from the offline interface demonstration
| Directory | Purpose | What it establishes |
|---|---|---|
| app/ | Runtime application invoking real native CLIs | How real coding tools integrate with the platform |
| examples/coding-runtime/ | Interface demonstration labeled OFFLINE MOCK by default | The Custom Chat interface, not actual execution of models, tools, or subagents |
The latter returns fixed synthetic data by default. It is useful for learning the interface, not for establishing real model capabilities or production readiness.[4][5]
6. From concepts to operations: a minimal example verification workflow
Developer evangelism should not stop at a green status screenshot. A more convincing demonstration lets an agent create real files, execute tests, and then have a person independently verify the result.
The following workflow illustrates the concepts above. It is not an acceptance record for a deployment. Start a real task only after approving model authorization, costs, and the scope of data sent to providers.
Step 1: Open the agent’s authenticated terminal
https://<your-portal-host>/coding-copilot/term/
https://<your-portal-host>/coding-claude/term/
https://<your-portal-host>/coding-codex/term/
Use your own Portal domain and actual Agent names. Never put a platform password or model key into a prompt.
Step 2: Read the catalog actually authorized for that agent
Run this inside the Agent’s browser terminal, not on your workstation:
python3 -c ‘import sys; sys.path.insert(0,”/opt/cetirun-coding”); from native import Gateway; print(“\n”.join(Gateway.from_environment().models()))’
Select an exact model ID from the output:
MODEL='<authorized-model-id>’
python3 /opt/cetirun-coding/server.py doctor –model “$MODEL”
coding-tui –model “$MODEL”
doctor should return “requestedModelAuthorized”: true. It checks the catalog and authorization without performing inference. If it fails, stop and investigate rather than switching to a personal endpoint to bypass the gateway.[3]
Step 3: Give each tool the same task without sensitive data
Work only in a new smoke-test directory under the current workspace. Create calculator.py with add(a, b), and create test_calculator.py using Python unittest for integers, negative values, and decimals. Actually run python3 -m unittest discover -s smoke-test -p ‘test_*.py’ -v. Report changed files, test output, and the exit code. Do not install dependencies, read credentials, commit, or push.
After exiting the CLI, run the tests manually:
cd “$HOME/workspace”
python3 -m unittest discover -s smoke-test -p ‘test_*.py’ -v
Acceptance requires real files, passing tests, and an explicit exit code, not just a code listing in a conversation.
Separately check terminal reconnection, cancellation, and approved suspension and resumption. Files surviving reconnection do not establish that they survive a Pod restart or resumption. Cancellation also does not undo file changes or model charges already incurred.
This exercise checks basic runtime usability. It is not a CLI or model leaderboard. Fair comparisons require controlled models, tasks, environments, and cost conditions.
7. How platform teams can reuse the pattern
The objective is not to manually create three Deployments. It is to prepare approved images and let the Operator manage them through the Agent contract.
This YAML adapts the official Claude Code example to connect the resource concepts in section 3 with the native runtimes in section 5. It is a field illustration with placeholders, not a manifest to deploy unchanged.
apiVersion: cetirun.microsoft.com/v1alpha1
kind: Agent
metadata:
name: coding-claude
spec:
team: “<existing-policy-bound-team>”
sandboxRef: “<sandbox-allowed-by-team>”
user:
alias: “<your-user-alias>”
displayName: “<your-display-name>”
modelAccess:
sharedModels: true
githubCopilot: false
agent:
type: custom
image: “<your-registry>/cetirun-claude@sha256:<approved-digest>”
username: vibe
port: 8080
webUI: false
helm:
version: “<compatible-chart-version>”
values:
ttyd:
enabled: true
desktop:
enabled: false
Supply your own Team, Sandbox, user, image digest, and chart version. A policy-bound Sandbox Agent also requires Sandbox execution to be enabled. The documentation states that this execution capability is off by default; creating a Sandbox resource alone does not make it runnable.[2][3]
Administrators approve image digests through customRuntime.approvedImages. Image builds pin native binary versions and verify SHA-256 checksums. Credentials must never enter build arguments or image layers.
This runtime’s HTTP application has no public authentication layer of its own and does not implement the platform’s Web UI prefix contract. Keep webUI: false and do not expose port 8080 through an anonymous public endpoint.[4]
The official source provides these offline checks and build commands:
make -C examples/coding-agents/app test check
make -C examples/coding-agents/app build
The first checks adapter contracts. The second builds Linux amd64 images and requires downloading approved build dependencies. Even if both succeed, they do not establish live provider compatibility, identity authorization, or effective isolation.
8. Enterprise adoption requires explicit boundaries
CetiRun turns many scattered responsibilities into platform capabilities, but it should not be marketed as “deploy it and become compliant.”
First, Standard Agents and policy-bound Sandbox Agents differ. AgentPolicy does not automatically cover every user and every agent. Network restrictions, rate limits, isolation types, and execution settings must be checked against actual resources.
Second, administrators are part of the trust boundary. A Portal administrator does not gain the right to open another owner’s terminal solely through that role. However, platform administrators with cluster permissions, and CetiAdmin when enabled, can have stronger access. “Administrators cannot see agent data” is not an accurate blanket claim.[6]
Third, the source documents that default configurations can retain conversation content in the AI Gateway database, container logs, and Memory without automatic redaction. This affects internal code, prompts, and model responses. Organizations must define read permissions, retention, deletion, and provider data policies.[1][6]
Finally, persistent state is not business continuity, a model budget is not an invoice cap, and native CLI tool permissions are not infrastructure isolation. Production acceptance must test each real boundary, rather than relying on a green Ready condition.
9. The next step is an operable agent platform
The interesting part of CetiRun is not that it adds another AI platform. It demonstrates a reusable approach:
Let developers keep familiar tools, but run those tools within a platform that provides identity, isolation, persistence, and model governance.
Coding Agents illustrate that approach; they do not define its full scope. The same resource model and governance mechanisms also serve OpenClaw, Hermes, and other custom agents that implement the contract.
When teams move beyond “Can AI write code?” to “Who can use it, where does it execute, how are credentials managed, and how do we verify the result?”, they begin moving from agent demos to an agent platform they can actually operate.
References
- CetiRun README and Overview
- Architecture: control plane, resource model, isolation, and lifecycle
- Official Coding Agents example
- Native Coding Runtime application and native.py
- Offline Coding Runtime demonstration and its limits
- Security: identity, permissions, credentials, isolation, and data handling
- OAuth2 Proxy: Entra, OIDC, and PKCE configuration
- Portal API routes and Agent status API


