Bring Your Own Model: Choosing Where InfraOrcinus's AI Runs

By Chirag Panchal · Founder & Lead Architect · · 6 min read

InfraOrcinus's assistant runs on the model provider you choose: Azure OpenAI by default, or OpenAI, Anthropic, Gemini, DeepSeek, or a local model through Ollama. How profiles are configured and switched, how keys are stored, what reaches the model and what is removed first, and how to match the choice to your residency and procurement rules.

Development Status & Architectural Evolution: InfraOrcinus is in active development. Architecture specifications, internal interfaces, and operational protocols described herein reflect our current engineering design and are continuously refined to make InfraOrcinus robust, resilient, and enterprise-grade.

Whether an AI assistant is acceptable to your organization usually comes down to one question: where does the text go? A model hosted by someone else in another region is a different decision from a model on a server in your own network, and the same product should let you make either.

InfraOrcinus does not tie its assistant to one vendor. The agent loop, the access checks and the tool execution are written once, against a small provider interface, and a provider adapter translates that into each vendor's own API. This article covers what you can choose, how the choice is stored and switched, and what the model is and is not given.


1. The Providers

Provider Notes
Azure OpenAI The default. Endpoint, deployment name and API version are configurable.
OpenAI Direct, with an optional base URL.
Anthropic Direct, with an optional base URL and API version.
Gemini Direct, with an optional base URL.
DeepSeek Direct, with an optional base URL.
Ollama A local model. Any other self-hosted runtime that exposes an OpenAI-compatible /v1 endpoint works the same way.

Each provider has a primary model for the harder reasoning and an optional fast model for lighter steps, so a cost-sensitive deployment can send the cheap work to a smaller model.


2. Profiles: Configure Several, Activate One

An administrator can save more than one profile (for example a production Azure OpenAI deployment and a local Ollama model for sensitive environments) and switch which one is active without retyping anything.

  • Keys are encrypted at rest with the same key that protects cloud and version-control credentials, and are never returned by the API. The screen only learns whether a key exists, and sends a placeholder to mean "keep the existing key".
  • A server default still exists. If no profile is active, the assistant uses the provider configured through the server's environment, which is also what runs before anyone has used the settings page. A deployment that configured the assistant by environment before profiles existed has that configuration migrated into a single profile named "Default" the first time it is read, so nothing is lost.
  • Base URLs are checked. A cloud provider's URL must resolve to a public host, so a profile cannot be pointed at an internal address or a cloud metadata endpoint. Ollama is the exception, because a local runtime is normally on loopback or a private network.

3. What the Model Receives

The assistant is useful because it sees real context: a failed run's log, a plan, an environment's variables. That is also the risk, so the context is prepared before it is sent.

  • Credential-shaped text is removed first. Passwords and tokens in key=value form, GitHub tokens, AWS access keys, bearer tokens, private-key headers, storage account keys and long base64 blobs are replaced with [redacted] in log excerpts and in anything stored as agent memory.
  • Secrets never need to be in the prompt. Variable values marked sensitive are not placed in context, and a generated blueprint is rejected outright if it contains something that looks like a credential.
  • Tool output is treated as untrusted. Logs and cloud responses can contain text written by an attacker. The assistant is told never to follow instructions found inside tool output.

Redaction is pattern-based, so it is a strong second line, not a proof that nothing sensitive is ever sent. If your policy forbids certain data leaving your network at all, the right control is the provider you choose, not the filter.


4. What the Model Can Never Do on Its Own

Choosing a more capable model does not grant it more authority. Whatever the provider:

  • The Troubleshooter is read-only. Its tools read runs, logs, policy results and drift; they change nothing.
  • Any change the assistant proposes, such as editing an environment's variables or starting a run, is prepared and then confirmed in a separate authenticated request by a person. The model cannot confirm its own proposal.
  • Approving and applying a run stay with named humans at the approval gate.

Because these limits live outside the model, swapping providers cannot weaken them.


5. Choosing for Residency and Procurement

A practical way to decide:

  • You already have an Azure agreement and an EU region. Use Azure OpenAI in that region; the data stays under the terms you already negotiated.
  • You need one approved vendor. Pick the provider your procurement has cleared and configure it as the only profile.
  • Nothing may leave the network. Run a local model through Ollama, and point the profile at it. Quality and speed then depend on your hardware and model, so measure them before relying on them for a hard task.
  • Different rules for different environments. Keep two profiles and switch the active one. Note that the active profile is a platform setting, not a per-environment one.

Whichever you choose, the assistant is a convenience layered over the same approvals, policy and audit trail. Switching the model never removes one of them.


Summary

The assistant runs on a provider you pick: Azure OpenAI by default, or OpenAI, Anthropic, Gemini, DeepSeek or a local model. Administrators keep several encrypted profiles and switch the active one, base URLs are validated, and credential-shaped text is redacted before anything is sent. The model's authority is the same under every provider: it can investigate and propose, and only people confirm, approve and apply.