OfinTech

Documentation

Everything technical lives here: installing on a server, choosing the model, connecting your accounting system, roles and approvals, backups, and the interfaces other systems can use.

Install on a server

One container for the engine and one for the reverse proxy, which obtains and renews the TLS certificate for you. A modest virtual machine is enough: 2 vCPU, 4 GB of memory and 40 GB of disk for a finance team of ten.

Requirements: Docker Engine 24 or newer with Compose v2, a DNS record pointing at the machine, and ports 80 and 443 open.

git clone https://github.com/OfinTech/ofinTech-Dask.git
cd ofinTech-Dask/server
cp .env.example .env            # set DESK_DOMAIN and DESK_PUBLIC_URL
python -m desk_engine keygen > master.key    # keep this outside the backups
docker compose up -d --build
docker compose logs -f engine   # wait for: Uvicorn running on http://0.0.0.0:8700

The first account you create becomes the owner. Every later account needs an invitation.

Updating

Take a backup first; database migrations run automatically on start-up and are never rewritten once released.

./backup.sh
git fetch origin && git reset --hard origin/main
docker compose up -d --build engine

A plain restart is not enough: it neither rebuilds the image nor rereads .env.

Desktop app

For one finance lead on one machine. There are no accounts and no sign-in: the operating-system account is the person. Everything — the database, the documents, the generated files — stays under your user folder.

Builds for macOS, Windows and Linux are on the releases page. They are not code-signed yet, so the first launch needs a confirmation: on macOS open the context menu and choose Open; on Windows choose More info then Run anyway.

Models and providers

The product is not tied to one model vendor. An administrator adds a provider per workspace; anything with an OpenAI-compatible endpoint works, including a model running inside your own network.

  • A hosted provider: paste the key; it is stored encrypted and never written to a log.
  • A model on your own network: give its address. In sealed mode this is the only kind allowed.
  • Embeddings for semantic search are optional and set separately; without them search stays keyword-only, which needs no provider at all.

Bringing data in

Three ways, and you can mix them:

  • Files. Excel or CSV of the general ledger, trial balance, budget or any table. The columns are read and you confirm what each one is.
  • An accounting system. Connect it once and it refreshes nightly. Nothing is ever written back to it without an approval.
  • Documents. Contracts, policies, board minutes, audit letters, bank statements as PDF. Scans and images are read with OCR in Arabic, English, Spanish and French.

Roles and approvals

Four roles, checked on the server at every single request, never in the browser: viewer reads, editor changes workspace records, admin manages connections and members, owner holds the workspace.

Any action that changes something outside the conversation pauses and waits. The person approving sees the tool, the exact arguments and the amounts. An approval expires, is bound to exactly those arguments, and is consumed once: if the arguments change after it was granted, it is refused.

Security and data boundaries

  • Secrets at rest are encrypted with AES-256-GCM under a master key that never enters the database.
  • Stored files are encrypted before they are written, locally or to object storage, so the storage operator cannot read them.
  • Bank identifiers are masked before any figure reaches a model or a log: an IBAN keeps its country and last four characters.
  • Sealed mode stops every outbound connection at the point it would be made, including for runs already in progress.
  • The audit log records who asked, what was approved, what ran and what came back, and the application cannot change or delete an entry.
  • Payments cannot exist: a tool that moves money or changes a beneficiary is refused at registration and again at the call.

The repository carries the full security review, the threat model and the register of accepted risks under docs/audit. Read them before a regulated deployment.

Backups

Backups are sealed with a backup key that is separate from the master key, so the three things stay apart: the backup files, the key that reads them, and the key that decrypts stored credentials.

python -m desk_engine keygen > backup.key    # once; chmod 600; keep it off the server
./backup.sh                                  # encrypted copy + checksum
python -m desk_engine backup-check <file> --key-file backup.key   # restore rehearsal

Rehearse a restore on another machine on a schedule. A backup you have never restored is not a backup.

Interfaces for other systems

  • A REST API for everything the app itself does, under /api/w/{workspace}/…, with the same role checks.
  • MCP: the workspace can be used as a tool source by an outside client with a scoped access key, read-only by default.
  • An embedded agent gateway that speaks the AG-UI protocol, so a partner application can run a read-only financial assistant inside its own screens.
  • Outgoing webhooks for every audited event, so an external log or SIEM can keep its own copy.

Developer guides and the OpenAPI description are in the repository under docs/.

Limits and known gaps

Stated plainly, because you will find them anyway:

Questions a page cannot answer: write to info@ofintech.ai.

Last updated: