GUIDE

Self-Hosted AI Agent Platforms: What Actually Has to Run Inside Your Network

“Runs in Docker” and “operates inside your perimeter” are different claims, and only one of them satisfies a security review. Here is what a self-hosted AI agent platform really involves, what still crosses the boundary, and how to check before you sign.

YOUR NETWORK Reverse proxy · TLS · your certificates Gateway auth routing Auth RBAC · SSO Core agents · workflows Frontend console · widget PostgreSQL data · vectors Redis queue · cache Object storage documents · files Generated MCP containers → your databases, never leaving the perimeter outbound only Model API your key, your contract or local Self-hosting moves the trust boundary. It does not remove the operational work — plan for both.

Why the question comes up at all

Nobody self-hosts for fun. The reasons are almost always external: a regulator, a customer contract, a data-residency rule, or a security team that will not approve sending internal documents to a vendor's cloud. Occasionally it is cost at scale, and occasionally it is a strategic dislike of lock-in, but the compliance reason dominates.

That matters, because it changes what “good” looks like. If you are self-hosting to satisfy a control, the platform has to satisfy the control — not merely be installable on your hardware. Those are different bars, and plenty of tools clear the second while quietly failing the first.

The distinction worth holding on to: “runs in Docker” is not the same as “operates inside your perimeter.” A platform that installs locally but calls a vendor API for embeddings, licensing, telemetry, or search has moved the binary, not the trust boundary. Ask specifically which calls leave the network and what is in them.

What actually has to run inside

An AI agent platform is more than one process. Before comparing options, know what you are agreeing to operate. In Orckai's case, self-hosting means these components run on your infrastructure:

The deployment is Docker Compose, and the services bind to localhost with the proxy in front. That is a deliberately boring architecture, which is the correct kind of architecture for something your security team has to approve.

The one call that still leaves

Unless you run a model locally, inference is an outbound HTTPS call to your provider with your own key, under your own contract and their data-handling terms. Everything else — documents, embeddings, conversations, audit records, credentials — stays inside.

This is the point most self-hosting conversations skip, and it is the one your security review will not. Be precise about it: what is sent is the prompt and the retrieved context needed to answer, and the commercial terms are between you and the model provider. If even that is unacceptable, the remaining path is a locally hosted model, which Orckai supports through an OpenAI-compatible endpoint. Expect to trade some answer quality for it, and to own a GPU estate.

The checklist for evaluating any self-hosted platform

Run these questions past any candidate, including ours. The ones that cause visible discomfort are the ones worth pressing.

Question Why it matters
Which outbound calls does it make? Embeddings, licence checks, telemetry, and update pings are the usual surprises. Get the list in writing, then verify it with egress logging.
Does it work fully offline? Some platforms degrade quietly when they cannot reach home. Test it with egress blocked, not just with the firewall in mind.
Where do the embeddings live? A local install that indexes your documents into a hosted vector service has moved the data anyway.
How are secrets handled? Provider keys and database credentials should be encrypted at rest and never appear in prompts, logs, or workflow definitions.
Does SSO integrate with your IdP? Self-hosting and a separate user directory is a bad combination that surfaces at the first leaver.
What is the upgrade path? Pinned image versions, reversible database migrations, and a documented rollback. Ask what happens if an upgrade fails at 2am.
What is the backup unit? You need to know exactly which volumes and which database constitute a restorable system, and to have tested a restore.
What does support cover? On someone else’s infrastructure the vendor cannot see your logs. Establish who diagnoses what before you need to know.

What self-hosting costs you

It is worth being unsentimental about the trade. Self-hosting buys control and pays for it in ownership.

For an organisation with a platform team, this is routine — it is what they already do for every other internal system. For a five-person team with no infrastructure practice, the hosted option is usually the honest recommendation even when self-hosting is technically available.

A sensible deployment plan

A reasonable middle path: evaluate on the hosted platform, deploy the production instance yourself. The evaluation phase is where you need speed and iteration, and it usually runs on synthetic or already-public data. Once the use case is settled and real data is involved, move it inside. Orckai is the same platform in both places, so nothing is rebuilt.

Where Orckai fits

Orckai was built for deployment on customer infrastructure from the start, not retrofitted for it. The same workflow engine, agents, knowledge base, widget, and generated MCP connections run in both places, with the same multi-tenancy, RBAC, and audit log. Self-hosting is part of the Enterprise plan; the practical checklist above applies whichever platform you choose.

Frequently Asked Questions

What does self-hosting an AI agent platform actually include?

The application services, the database holding both operational data and document embeddings, a cache and job queue, object storage for uploaded files, a reverse proxy for TLS, any generated database connectors, and monitoring. For Orckai that is a Docker Compose deployment with services bound to localhost behind a proxy.

Does self-hosting mean no data leaves my network?

Not quite, unless you also host the model. Documents, embeddings, conversations, audit records, and credentials stay inside; inference is an outbound HTTPS call to your model provider using your own key and contract. If even that is unacceptable, a locally hosted model behind an OpenAI-compatible endpoint keeps everything internal, at some cost in answer quality and a GPU estate to run.

Can it run fully air-gapped?

With a locally hosted model, yes in principle — but treat it as a project rather than a configuration flag. Test it properly: block egress, run a real workload, and see what fails. That test is the single most informative thing you can do when evaluating any platform’s self-hosting claims.

What hardware do I need?

For the platform itself, far less than teams expect — a single adequately sized VM running Docker Compose handles a substantial workload, since the heavy computation happens at your model provider. If you host models locally that changes entirely, and GPU capacity becomes the dominant cost.

Is self-hosted the same product as the hosted version?

For Orckai, yes — the same workflow engine, agents, knowledge base, widget, MCP generation, multi-tenancy, RBAC, and audit log. Self-hosting is part of the Enterprise plan. Not every vendor works this way, so it is worth asking directly whether the on-premises build lags the cloud one.

Should we self-host if we do not have a platform team?

Usually not, even when it is available. Self-hosting transfers uptime, upgrades, capacity planning, and first-line diagnosis to you. If no one owns that, the hosted option is the more honest choice — unless a compliance requirement removes the decision, in which case budget for the operational work explicitly.

Deploy It Inside Your Own Perimeter

The same platform, hosted or on your infrastructure with Docker Compose — agents, workflows, retrieval, generated database connections, RBAC and audit, all within your network.