Enterprise AI · Air-gapped
Your institution's AI, on your own servers.
Chat, document search and a coding assistant for public institutions and enterprises, running with no internet connection. Data never leaves the building; every institution stays behind its own wall.
The demo is password-protected and runs on a sample ministry's documents.
- Air-gapped
- Turkish and English
- Strict institution isolation
- On your own GPU servers

outbound connections: no telemetry, CDN or update checks
file types: PDF, Office, OpenDocument, e-Yazışma, images, text and code
security invariants, each guarded by an automated test
median time to first word, measured on the demo
01 · Chat
Ask, and the answer comes with its source.
A familiar chat screen: the answer streams as it is written, and every claim carries a clickable source number that opens the right page of the document.
Citations
Click a number and the document opens on the right page, slide or sheet.
Streaming answers
Markdown, tables and code blocks with a copy button; stop, regenerate or rate an answer.
History and attachments
Search past conversations; attach any supported document. Old conversations are removed after the institution's retention period.
Every screen
Phone, tablet and desktop browser; a desktop app for Windows, macOS and Linux. Light and dark themes.

02 · Documents
Reads the archive like an analyst.
The model browses the institution's library, searches it, reads around each match and only then answers. Questions like “how many documents mention it?” are counted across the whole library. It understands Turkish letters: searching “yonetmelik” finds “Yönetmelik”.
› Where do “30 gün” (30-day) deadlines appear?
grep "30 g[uü]n" /institution/**
4 matches · 2 documents
read_document kisisel-veri-yonergesi 15–30
read_document kvkk-uygulama-usulu 33–62
✓ Four deadlines, answered with four citations.
e-Yazışma packages (EBYS)
Reads the .eyp packages that every Turkish records system (EBYS) produces for official correspondence, whatever the vendor; a package classified anything but “Yok” (“Tasnif Dışı” in 1.x packages) is refused before its content is opened.
SharePoint
An Online or on-premises SharePoint Server site syncs automatically, folders included.
Tables and complex documents
Excel keeps cell positions, dates, merged cells and hidden sheets; Word and PowerPoint tables, footnotes and comments are read.
Safe parsing and OCR
Every file opens in a sandboxed Rust process with no network; macros never run. Scanned PDFs and images are read by offline Turkish OCR.
Two libraries
The institution's shared library, and a personal library only its owner can see.

03 · Developers
A coding assistant on the institution's own model.
One Rust core powers three clients: terminal, VS Code and the desktop app. It works only inside the chosen folder and asks before every edit and every command.
Retap · ~/projects/leave-tracker
› run the tests and fix what's broken
Command bun test
✗ 1 test failed: leaveDays() also counts weekends
Reading src/izin.ts
Edit src/izin.ts +3 −1
Allow? [y]es / [n]o / [a]lways this session: y
Command bun test
✓ 24 tests passed
OpenAI-compatible API
opencode, Aider, Continue and Cline connect directly; each was tried on a network with no internet.
Everything through the API
Anything you can do in the interface you can do through the API: short-lived access tokens, single-use refresh, an OpenAPI 3.1 reference.
VS Code extension
Edits arrive as coloured diff cards: Yes, No, For this session.
Desktop agent mode
Windows, macOS and Linux; the key is kept in memory only, and commands never see it.
Exchange your API key for a 15-minute token
curl https://retap.kurum.gov.tr/api/auth/token \
-H "Content-Type: application/json" \
-d '{"grant_type": "api_key", "api_key": "kavrai_..."}'
{ "access_token": "kavrai_at_...", "token_type": "Bearer", "expires_in": 900,
"refresh_token": "kavrai_rt_...", "refresh_expires_in": 2592000 }
04 · Security and administration
Every institution behind its own wall.
One institution per box or many on one box: data, documents, history, logs and quotas are separated in the application and a second time in the database. Security is not a checklist, it is the architecture.
Identity
Single sign-on with the institution's identity provider over OpenID Connect (PKCE); argon2id for local accounts.
Two-factor sign-in
Authenticator app, the institution's SMS gateway, or passkeys (Touch ID, Windows Hello, security keys).
Roles
Platform operator, institution admin and user are kept apart; every request is denied by default.
Isolation
The app takes the institution from the session; Postgres row-level security enforces the same boundary again on every query.
Audit trail
Sign-ins, prompts, uploads, API calls and admin changes are hash-chained, verifiable and exportable.
Encryption and quotas
TLS everywhere including inside the box, encrypted disks; daily quotas per user and per institution.
14 security invariants, enforced in code and each guarded by a test
- SQL injection
- Command injection
- Cross-institution access
- Authorization
- XSS
- CSRF
- SSRF
- Path traversal
- Input validation
- Document sandbox
- Audit integrity
- Secrets
- Prompt injection
- API tokens

05 · Deployment
No internet. No outside dependency.
Retap is installed and updated from signed offline bundles. The model runs on the GPUs inside the box and can be swapped for another one.
The institution's server · e.g. 4 × H200
No internet connection
Two ways to deploy
One box per institution, or many institutions on one box. Even then, institutions never see each other's data, documents or logs.
Updates without interruption
Install, update and roll back from Ed25519-signed bundles. The new version starts next to the old one; answers in progress are not cut off.
Model
The default model is DeepSeek-V4.1-Flash (MIT license). Turkish answer quality is measured on a Turkish evaluation set: 37 of 38 on the latest run.
Capacity
Reference figure: 1,557 output tokens per second across 64 concurrent requests on 4 × H200, about 24 per user.
Web search · optional
Off by default. The operator enables it per institution, the user per message; every query and URL is audited.
Operator console
Every institution, its limits and SSO settings in one place; a health page for the database, model and parser.
06 · Ownership
Everything you put in, and everything the model writes, is yours.
The interface, the clients and the serving setup belong to Retap; the institution's data, documents and answers belong to the institution.
Frequently asked questions
In short
Does Retap need an internet connection?
No. Install and updates come as signed offline bundles, and at runtime nothing reaches outside: no telemetry, external fonts, CDNs or update checks. The one exception is optional web search, for institutions where the operator explicitly allows it.
Where does our data go?
Nowhere. Questions, documents and answers stay on the institution's server, and the model runs on GPUs in that same server. The institution admin sets how long conversations are kept.
Which model does it use?
DeepSeek-V4.1-Flash by default (MIT license). It can be swapped for any model served by an OpenAI-compatible server such as vLLM; no model is hard-coded.
Can several institutions share one server?
Yes. Each institution's data, documents, history, audit log and quotas are separated in the application and a second time by the database's row-level security. An institution can also have its own box.
What hardware does it need?
The first reference setup is a server with 4 × H200 GPUs. Bigger boxes are planned to be linked together to serve many institutions in parallel.
Does it work with our identity system?
Yes, with identity providers that support OpenID Connect, such as Entra ID, ADFS 2016+, Keycloak and Okta. For local accounts, two-step verification is built into Retap.
Can we connect our own applications?
Yes. The OpenAI-compatible API is for coding tools and SDKs; the platform API covers conversations with document search, libraries, usage and administration. Both work with short-lived, refreshable tokens.
See it for yourself.
The demo runs on a sample ministry's documents: ask questions, open the sources, try the coding assistant.