Skip to content
MoorAI
Get MoorAI
Trust no AI™ Priced per server · contact us

MoorAI for AI Servers Control AI actions before they run.

Security for the production AI agents your company runs. Inspect model calls, check tool use, and enforce your policy on the server before the agent acts. Integrate through the Agent SDK, a sidecar or a proxy in your own environment.

Every component ships in the open-source MoorAI agent (MIT) and runs in your environment.

MoorAI for AI Servers runs in your environment. Your AI application's tool, model and MCP calls pass through MoorAI: the Agent SDK hook or moorai-serve sidecar checks tool calls before they run, the model proxy checks model calls and replies, the MCP gateway controls remote tool access and the egress proxy governs every other connection to local models, hosted model APIs, remote MCP servers and other hosts. Placeholder API keys stay in the app; the real keys stay in the gateway. MoorAI Management Server sends signed policy and receives content-free signals when enrolled.
MoorAI for AI Servers: checks in your service, gateways around its connections, central policy when enrolled. Illustrative architecture; enforcement depends on your policy, integration and routing. Zoom into the diagram · Full runtime specifications →

Inside your service, or beside it.

For a service built on the Claude Agent SDK, @moorai/agent-sdk runs MoorAI’s hook in your own process, so the model doesn’t decide whether it is consulted. Any other loop, such as the OpenAI Agents SDK, LangGraph or CrewAI, asks the localhost moorai-serve sidecar before a tool runs. The sidecar binds loopback only: run it in the agent’s pod or compose network and no port is opened.

Every component →
import { moorAIHooks } from "@moorai/agent-sdk";
query({ prompt, options: { hooks: moorAIHooks({ serviceId: "invoice-agent" }) } })

Tool calls checked before they run.

Point your model SDK’s base URL at the model proxy. It scans what the agent sends, tool results included, and decides every tool call in the model’s response before your framework receives it. It starts report-only; enforce mode refuses a denied call in the provider’s own error shape. Local OpenAI-compatible servers such as Ollama, LM Studio, llama.cpp and vLLM go through the same parser.

Only clean documents get embedded.

A poisoned document in a retrieval index reaches a later user’s context with no tool call. MoorAI scans each chunk before it is embedded, for untrusted directives and hidden instructions, in the Agent SDK, on the sidecar and on MCP vector-store writes. It reports by default; set the index-scan action to block and a chunk that carries an instruction is dropped.

const addDocs = guardEmbed((docs) => vectorStore.addDocuments(docs), { source: "kb/handbook" });
await addDocs(docs);   // under "block", denied documents never reach addDocuments

Files checked before the model sees them.

A document or image an agent forwards can carry malware the model then summarises, runs or passes on. Turn on file scanning and the model proxy checks every inline file, document and image with VirusTotal before the request goes upstream. Hash mode sends only the file’s SHA-256, and a lookup adds that hash to VirusTotal’s dataset; upload mode is a separate opt-in, and uploads to VirusTotal are not private. Commercial use needs a paid VirusTotal licence: the free public API allows 4 requests a minute and is not for commercial products or services. A malicious file blocks the request or raises an alert, by policy. The proxy scans what it forwards: a file field is read under every key case Ollama accepts, and in enforce mode a request that repeats a key, or names one field twice in different case, is refused rather than guessed at.

"fileScan": { "provider": "virustotal", "mode": "hash",
              "onMalicious": "block", "onUnknown": "allow" }
// off unless set; API keys never sit in the policy

Each tool call held to the task.

A model can be steered, or fine-tuned with a backdoor, into turning a plain request into a harmful call. MoorAI checks each high-impact tool call against the person’s request, deterministically, with no second model guarding the first. The target of an MCP write, a payment, a role grant or any tool your policy names must be named in the request: under “cut the apple”, cut(target: "hand") is flagged, or held by policy. For a task you list, only the listed tools and argument values pass and an unlisted argument is denied. It runs in the model proxy, moorai-serve and the Agent SDK, and your service can name the task by id.

How the checks read a call →
"taskAllowlists": [{
  "task": "pay-vendor",
  "match": { "taskId": "pay-vendor-1" },
  "tools": { "transfer": { "args": {
    "amount": [{ "max": 500 }],
    "to_account": ["4471"] } } },
  "default": "deny" }]
// other tools and values are denied

Only the model files you approved.

List the SHA-256 of each approved model file in the policy. moorai-model-scan --pin checks a model directory against that list and exits 1 on a file that is not approved, so a build or deploy step can refuse it. Where an agent runs under the MoorAI hook, its own llama-server, vllm serve, ollama run or Python load of an unpinned file is reported, held or denied, and an Ollama blob is checked against its own hash, never its name. A pin proves which file runs; the task check above holds what it does.

Model pinning →
"modelPinMode": "block",
"modelPins": [
  { "sha256": "9f2c…", "name": "planner" }
]
// signed policy or root-owned config only

Out of the agent’s reach.

The four components ship in one container image for amd64 and arm64 that runs as a non-root user. In their own pod, the agent can’t edit their policy. With MoorAI’s Kubernetes and compose examples they are the workload’s only way out, and a tool that dials directly is dropped by the network. Alerts carry the workload’s pod, namespace and node, so a SIEM can join them with host sensor events.

How the routing works →

One trace across every component.

Every agent session is one W3C trace, and a valid incoming traceparent always wins. The model proxy and the MCP guard and gateway pass it on, the egress proxy does on plain HTTP, and each alert and allow-trail record carries the trace and span ids, so an OTLP backend shows the session as one trace. Only hex ids and an agent name leave.

Trace details and gaps →
trace traceId
├─ agent-sdk     tool call checked
├─ model proxy   model request
└─ MCP gateway   tools/call
Illustrative. Proxies add about 2 to 4 µs per request.

Questions.

Which model APIs does the MoorAI model proxy check?

Anthropic Messages, OpenAI Chat Completions and Responses, Gemini generateContent and Ollama’s native chat and generate APIs, JSON and streamed. Responses items the provider runs itself (MCP calls, web search, code interpreter), Assistants and Realtime, Amazon Bedrock and Google Vertex AI are forwarded unchecked, and an SDK pinned to the provider’s HTTPS URL bypasses the proxy.

Does content leave my environment?

Not by default. Prompts, code, files and secrets are checked where the workload runs. The Management Server receives content-free signals about what fired: the category, the risk level, the deciding rule and a keyed one-way hash, with the workload identity rather than a person. An administrator can opt in to a capture tier for incident investigation. File scanning is optional: once an administrator turns it on, the file’s SHA-256 goes to VirusTotal, which adds the hash to its dataset, and the file itself only in upload mode, a separate opt-in; uploads to VirusTotal are not private.

Which files does MoorAI scan before they reach the model?

Turn on file scanning and the model proxy checks every inline file, document and image in a request to Anthropic, OpenAI Chat or Responses, Gemini or Ollama with VirusTotal before it goes upstream; moorai-serve offers the same check at /v1/file-scan. A malicious file blocks the request or raises an alert, by policy. A file sent by reference (a URL or a provider file id) is not fetched: it is alerted and the unknown-file setting decides.

How does MoorAI keep a tool call to the person’s task?

Two deterministic checks run in the model proxy, moorai-serve and the Agent SDK. The object check requires the target of a high-impact call, such as an MCP write, a payment, a role grant or a tool your policy names, to be named in the person’s request; it reports by default and can ask or block. A task allowlist lets only its listed tools and argument values through for a matching task and denies unlisted arguments. Only keyed hashes of the task’s words are kept, in memory.

What does it need from my network?

The Kubernetes example needs a CNI that enforces NetworkPolicy; on one that ignores it, the agent can bypass the proxy. The egress proxy judges HTTPS by host and port only, because it does not decrypt TLS.

How is MoorAI for AI Servers priced?

Per server; contact us. Every component also ships in the open-source MoorAI agent (MIT).

Tech specs →

Guard the AI you ship, where it runs.

Priced per server. Every component runs in your environment and sends only content-free records.