---
id: 16770
lang: en
title: "AGIMA is building an on-prem platform where an AI agent never sees passwords or tokens"
published_at: "2026-10-27 20:01:01"
source_name: "Habr AI"
source_url: "https://habr.com/ru/companies/agima/articles/1100006/?utm_campaign=1100006&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/16770"
categories: ["ethics", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# AGIMA is building an on-prem platform where an AI agent never sees passwords or tokens

> **Краткая суть (BLUF):** If you let an AI agent loose in Jira, 1C and finance without boundaries, a password someone accidentally pastes becomes a real problem. AGIMA is building an on-prem platform, meaning one that runs inside the company's own infrastructure. The agent in Mattermost acts through gateways with the permissions of a specific employee. Vault issues tokens to systems, and a DLP check keeps secrets away from the model. As a result, the agent has no access to anything the person isn't authorized to reach.  • A bot built on Codex App Server: OpenClaw and Hermes performed worse in tests • The agent's permissions equal those of the employee it acts for • Human confirmation for write operations is still a target feature and isn't available everywhere yet

Imagine an employee writes to a corporate AI bot and accidentally pastes a work password into the message. Or an agent gets overly broad permissions and edits data in Jira or 1C in the wrong place. A personal writing assistant hardly creates such risks, but inside a company the cost of a mistake is different. Nazar Bashinsky, a developer at AGIMA, described on Habr how the team is building a secure on-prem platform for corporate agents. On-prem means everything runs inside the company's infrastructure. The author immediately notes that this is a target architecture, and not every integration or check is equally implemented in every scenario yet.

## The agent doesn't access systems directly

The author considers the main risk not the model's inaccurate wording. What's more dangerous is when an agent gets access to internal systems without clear boundaries. So an employee's request goes through a chain: permission checks, security policies, a model gateway, a gateway for corporate tools, data sources and audit. The model is just one component in it.

The entry point is a chatbot in Mattermost. Technically, it's Codex App Server connected to the messenger through connectors. The team tested different harnesses, meaning the wrappers that turn a model into an agent with tools. Among them were OpenClaw and Hermes. Based on the tests, plain Codex without extra wrappers proved more reliable: in combination with Mattermost it has fewer bugs, and its configuration is more flexible.

There is also an architectural reason. A bot in a messenger always knows who is writing to it. That makes impersonation possible: the agent acts not under a shared service account but on behalf of a specific employee and with their rights. The messenger remains the entry point, and it can be replaced without rebuilding the rest of the setup.

## Two gateways and a secrets store

A gateway here means a controlled point through which a request passes. There are two such points, and they must not be mixed.

The LLM Gateway handles language models. It manages keys, costs and limits, keeps centralized logs, lets you change the model without rewriting clients, and connects shared security policies and DLP. DLP answers the question of whether this content may be passed further. The check runs before the request is sent to the model, and secrets and tokens don't leave the permitted perimeter.

The MCP Gateway controls access to corporate systems. An employee logs into the Vault secrets store via corporate SSO and specifies the credentials for the work systems the agent should use. After that, the model takes no part in the process. Codex App Server passes the user's token to the gateway, the gateway retrieves the token for the required system, such as an ERP, from Vault and executes the request on behalf of the employee. The model receives only the result of the call. If a person has no access to a system, the agent won't have it either.

Depersonalization is described separately. An employee's name or a contract number can be replaced with a placeholder to preserve the meaning of the request without exposing sensitive data. But this doesn't replace DLP, permission control or audit. Every call leaves a trace in the log: the initiator, the policies applied, the sources and the result. Policies can be versioned and changed centrally, rather than copied into each bot and each prompt.

## Code for rules, model for meaning

A skill in this architecture is a reproducible scenario tied to a process, sources, permissions and result verification. The language model helps interpret the request, while predictable steps are executed by code: loops, API calls, checks, permissions and writes to systems. The principle is simple: code is used by default, and the model is brought in where natural language or broad context has to be understood. If an error costs more than the few minutes saved, rules and validations are implemented in code.

A skill should have an owner, a version, a linked process step, permitted sources, security rules and required permissions, quality criteria, an execution mode (suggestion, draft or action) and a way to undo it. The author cites three classes of tasks for testing. In the financial domain, the skill prepares a draft and checks required fields, but gets no permission for the final write. In a sales scenario, it classifies an inquiry and suggests a route, leaving ambiguous cases to a human. In data search, it answers only within the permitted context and records its sources. These are examples of task classes, not a claim of production use.

## Honest limits

On-prem doesn't mean that simply placing a model inside the perimeter is enough. What matters is which permissions, secrets and data are available to the agent. The author calls compliance with Russian Federal Law 152-FZ part of the review, but it doesn't replace a legal and information security review of the architecture. Human confirmation for critical write operations remains a target capability.

The practical takeaway for anyone building corporate agents: security can't be kept in the prompt. Permissions, secrets, policies and audit should be moved into the infrastructure layer, leaving the model to understand language. Then a mistake in one place doesn't open the entire infrastructure to the agent, and the log helps pinpoint where exactly something went wrong.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/companies/agima/articles/1100006/?utm_campaign=1100006&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/16770
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
