Guide

The admin console and the Ask app

ThinkingSense has two front doors on the same gateway: the admin console (/admin) where you connect data and curate meaning, and the Ask app (/) where business users ask questions in plain English. Every screenshot below is from a running build.

Signing in for the first time

The first time ThinkingSense starts with no sign-in configured, it does not run open. It creates an admin account with a random password and prints it once in the log, for example docker logs <container> or kubectl logs deploy/<name>. Only a salted hash is kept, in bootstrap-admin in the data directory, so the password is not shown again. Open /admin, sign in as admin, and set up your own sign-in (OMNIGATE_AUTH_USERS, API tokens or single sign-on); the generated account stops being used as soon as you do. The one-click cloud stacks ask for the admin password while you deploy, so they never use it. For a local trial only, OMNIGATE_INSECURE=true runs without a login, and the console shows a banner for as long as it does.

Admin console areas

New console layout. From 0.10.23 the console is arranged as Context, Develop, Monitor and Ship, with org-wide settings on their own page and a version bar on every page. The Admin cheat sheet covers every page in that layout. The table below is the 0.10.22 layout.
Admin overview with a getting-started checklist and deployment checks
Overview — a five-step checklist to your first trusted answer, plus any deployment checks that need attention.
AreaWhat it is for
Data SourcesDatabases, uploads, SaaS apps, MCP servers and documents — what the gateway can reach, and which external tools a question may call.
Business CatalogTerms & ontology, context builder, metrics, rules, column search — what your data means.
Answer QualityReview, question activity, the answer quality loop, trusted questions, signals, Explore and dashboards.
AutomationSkills, agent registry, actions and proactive insights.
OperationsHealth, needs attention, infrastructure, cost & usage, rollups and the audit log.
SettingsModels, groups, users & access, security (column tags and the access-policy history), and the API & MCP surfaces.

MCP servers: approve what a question may call

External MCP tools are discovered from the servers you configure. Only tools you approve (or that declare themselves read-only) are invoked automatically, and you can deny any tool at any time without a restart.

MCP servers page with the empty state explaining how to configure servers
Data Sources → MCP servers. Configure with OMNIGATE_MCP_SERVERS.

Answer quality loop

Every question the gateway knows about, grouped by where it stands: asked, flagged by a thumbs-down, under review, approved and trusted, or monitored for drift. It is computed live; approvals still happen on the Question Bank and Insights pages.

Answer quality loop board with columns Asked, Flagged, Under review, Fixed and trusted
Answer Quality → Quality loop.

Models and the semantic router

Each question is classified Fast, Agentic or Predictive, and low-confidence SQL escalates to a stronger tier. Escalation thresholds apply immediately; model paths and ports apply on restart. A calibration suite (YAML, against your own backends) checks each tier.

LLM settings page with the semantic router card
Settings → Models.

Infrastructure: is this deployment healthy?

Operations → Infrastructure (app v0.10.10 and later) answers one question on one page: is this deployment healthy, and if not, why? It refreshes every five seconds, is read-only and is for admins only. At the top, a status line reads Healthy, Needs attention or Problem and lists the reasons in plain words, for example “1 of 2 replicas have joined the cluster”, “Pod omnigate-1 is not ready: ErrImagePull (image tag v9.9.9)”, “AI model: key rejected (HTTP 401)”, a licence in its grace period, a certificate close to expiry or a data source that does not answer.

Infrastructure page showing a healthy status, the deployment's version, licence and certificate, and the replica
Operations → Infrastructure on a healthy deployment: status, version and uptime, licence, certificate, the replica with its last five minutes.
SectionWhat it shows
DeploymentApp version and uptime, edition and licence (with days left), the HTTPS certificate (self-signed or your own, and when it expires), where settings are stored, and replicas joined out of replicas expected.
ReplicasOne row per replica: version, uptime, memory, CPU, questions in flight, statements per second, free space on its data volume and the last five minutes as a small line. A replica that has joined the cluster but cannot answer is listed with the reason.
Data sourcesWhether each source is reachable, how fast it answers and how full its connection pool is, from every replica.
Query engineStatements and errors per second, average latency and requests turned away for capacity.
AI modelWhen the model last answered and when and why it last failed, so a rejected API key shows up as exactly that instead of an Ask app that just fails.
Recent eventsWhat changed, newest first and merged across replicas: a replica started, joined or left; the licence changed state; the AI model's key was rejected or recovered; the certificate is close to expiry; a data source became unreachable or came back.
KubernetesWhat the cluster says about this deployment's own pods: the rollout, each pod with the cluster's own reason when it is not running (an image that cannot be pulled and the tag it tried, an init step, no node with room, a memory kill), which nodes and zones the replicas run on, what a node drain may do (the disruption budget), the data volume, the load balancer address and the warnings of the last hour.
Infrastructure page with a Needs attention status listing two warnings
The same page when something is off: the status turns to Needs attention and lists each reason in plain words (here a pod that restarted and two replicas on one node).
Kubernetes section with the workload, load balancer, volume and a table of pods
The Kubernetes section: the workload and its rollout, the load balancer address, the data volume, and each pod with its node, zone, image tag and restarts.

Sign in with your identity provider (OIDC)

Admins and business users can both use single sign-on — Microsoft Entra ID, Okta, Auth0, Google Workspace, Keycloak or any standard OIDC provider — alongside local accounts.

Admin sign-in page with a single sign-on button above the local form
/admin/login — provider button and the local form side by side. Keep one local admin as a break-glass account.
Users and access page with a business user set to single sign-on
Settings → Users & access → Business users.

Licence for the free image

The free image can run as the commercial edition with a signed licence: set OMNIGATE_LICENSE to the token, or mount it at /opt/omnigate/license. It is verified offline and re-checked every minute. An expired or invalid licence never stops the server: it stays on the free edition, and the Overview page and GET /api/config show the customer, the expiry and the reason. Added in 0.10.5.

Securing /mcp/agent

When admin sign-in is on and no end-user identity provider is configured, /mcp/agent requires an admin API token (Authorization: Bearer ...). Set OMNIGATE_AGENT_MCP_ALLOW_ANONYMOUS=true to restore anonymous access, or OMNIGATE_AGENT_MCP_ENABLED=false to switch the endpoint off. Changed in 0.10.5.

Large joins and memory

Aggregates over a join are folded in as rows stream past, in memory and in disk-spill mode, so a join of millions of rows no longer holds the joined rows. A plain join stops reading once it has the rows that can be returned. The disk-spill threshold scales with the heap, and the heap guard now also stops a runaway /api/query statement. Set OMNIGATE_PARALLEL_JOIN_STREAM_AGGREGATE=false to restore the previous behaviour. Changed in 0.10.5.

Joins across sources

The planner sizes joins from stored statistics, which are now collected by default: every 6 hours it reads each source's own catalog counts, without scanning tables (OMNIGATE_STATS_REFRESH_INTERVAL_MINUTES changes the interval). Filters and column lists reach S3, REST and Iceberg tables. Tables of one source that join each other are joined inside that source. The first time a query needs it, the planner measures each source's link, reading up to 200,000 rows of two columns. It then groups a side of a cross-source aggregate inside its source only when sending the rows would be slower. Signed-in users get the parallel engines with their database session policy applied, so each of their reads opens a fresh database session: plan connection limits for that. Changed in 0.10.24.

Resuming a federated question

A question that joins MCP tools and databases can pick up after a source fails. Set OMNIGATE_FEDERATION_CHECKPOINT_DIR to a private, persistent directory and OMNIGATE_FEDERATION_CHECKPOINT_POLICY_VERSION to your current permissions revision (change it whenever upstream permissions change). Sending the federationRunId from the trace with the same question reuses the inputs that completed. A run that has expired (after one hour by default), belongs to someone else or chose different sources starts afresh. Ask says which input was incomplete rather than answering from part of the data. Changed in 0.10.24.

Generated SQL is checked before it runs

Before a generated query runs, the engine that will run it checks it: a single-source query is prepared by its own database, and a cross-source query is validated by the federation planner. A rejected query is repaired using facts from the schema: which table actually has a missing column, similar names, and the columns of the tables it uses. Deterministic fixes come first (a column on the wrong table is moved and the join added), then the model, with the last of OMNIGATE_NL2SQL_REPAIR_ATTEMPTS (default 2) going to the cloud model when one is configured behind a local one. Nothing is refused at this step. The trace shows the repaired SQL and a "SQL validation" check. OMNIGATE_NL2SQL_VALIDATE_GATE=false turns it off. Changed in 0.10.25.

Timestamps in results

In the JSON of /api/query, Ask answers, conversations and embeds, a time-zone-aware value (PostgreSQL timestamptz) read from a single source is written in UTC with its offset, for example 2026-11-20T08:15:00Z. A zone-less timestamp is written as stored, so read it in the zone the data was recorded in. Results across several sources do not carry the offset yet, and the PostgreSQL, MySQL and JDBC wire protocols are unchanged. Changed in 0.10.25.

ABBA agents: setting them up

From 0.10.26, agents wake on business events, read your systems as their owner, and notify people or propose actions that a person approves. How they work is on the agents page. To set them up:

  1. Grant it. In Settings → Users & access, tick may create agents for each person who should have agents, and change their agent limit if 5 is not right. Nobody has the grant until you give it.
  2. Connect the sources the agents will read. On Ship › Agents, connect your company's Slack app (the page shows the request URL, https://<host>/agents/slack/events, and the bot events and scopes to set) and add business mailboxes (IMAP). A mailbox is added with the name of the person who agreed that agents may read it, and the page records your confirmation. Secrets are kept only when settings are encrypted at rest (OMNIGATE_CONFIG_ENCRYPTION_KEY) or as vault:// references, and are never shown back. Webhooks from SaaS tools go to https://<host>/agents/webhook.
  3. Set the limits. On the same page, set the ceiling for each kind of action, the approval rules, and the write targets an agent may propose writes to. In this release every write-back is a dry run.
  4. Let people make agents. In the Ask app, the Agents page drafts an agent from a description. It runs in shadow first, and its owner makes it live. Proposals wait in the Ask app's inbox; each case shows the timeline of what the agents found and did.

The pause switch on Ship › Agents stops every agent at once, on every replica, and OMNIGATE_AGENTS=off switches the feature off. Event payloads and finished runs' text are kept for OMNIGATE_AGENTS_RETENTION_DAYS (default 30), with secrets and personal data redacted. The free edition holds one agent per installation, in shadow only.

Swarms (from 0.10.27)

On the Agents page, a person groups their agents into a swarm and gives each a role; Ship › Agents lets an administrator make a swarm of several people's agents. A template (IT risk, cash risk, supply chain) makes four draft agents and their swarm in one step and lists what is left to give them: a trigger, a write target or destination. Each swarm's limits (hand-offs per run and per case, a cooldown, runs and tokens per day) and today's use are on its panel, and pausing it stops its hand-offs and the runs they started.

Workspaces: schemas and their own context

From 0.10.27 a Workspace is a namespace for the whole semantic layer. In Settings → Groups, a Workspace can name schemas and tables of a data source, as well as whole data sources:

namespaces:
  - id: treasury
    name: Treasury
    schemas: ["pg.treasury"]
  - id: bom
    name: BOM
    schemas: ["pg.bom"]
    tables: ["pg.treasury.accounts"]

A statement that reads a table outside the Workspace is refused, and a table name that two schemas hold must be written with its schema. The model sees only the Workspace's tables. The Default workspace still reads every schema of a source no Workspace names whole. This is enforced by ThinkingSense, not by the database: for strict isolation, give each Workspace its own database role.

Choose a Workspace in the admin console's top bar, and the Context pages edit its own context: business terms, metrics, table settings, instructions, approved questions, and now its part of the ontology (entity descriptions, terms, relationships), join keys, value labels and data assets. Edits go into the Workspace's draft; publish them on the Versions page, where Export context and Import into draft move a Workspace's whole context as one file. Change sets on the ontology's Changes tab still change the shared ontology, from the Default workspace. In the Ask app, starter questions and suggestions follow the Workspace a person picks, and a question they save goes to that Workspace's draft.

Running several replicas

An in-flight sign-in is carried in a signed browser cookie, so the provider's redirect can return to any replica and no sticky load balancing is needed. Set the same OMNIGATE_OIDC_STATE_SECRET (any long random string) on every replica; without it each replica signs with its own key and a login that returns to a different replica fails. A single node needs no setting. Fixed in 0.10.4.

Workspaces from provider groups

The groups your provider sends in the ID token (the groups claim, or the claim named by OMNIGATE_APP_OIDC_GROUPS_CLAIM, for example cognito:groups) become the user's roles at sign-in. In Settings → Groups, a workspace can then admit everyone in a provider group with a role rule such as access: { roles: ["Sales-Analysts"] }. Member lists still work, and either is enough. The user must still be created as a single sign-on business user, and role changes in the provider apply the next time they sign in. A session without a Workspace starts in the first one listed in the configuration (from 0.10.25; before, the order could change between restarts).

Provider recipes

Register both redirect URIs with the provider: https://<host>/auth/oidc/callback and https://<host>/app/oidc/callback. These were checked against ThinkingSense with a test provider, not live vendor tenants — confirm menu names in the vendor docs.

Okta

  1. Applications → Create App Integration → OIDC – Web Application. Add the two redirect URIs.
  2. Assign the people or groups who may sign in.
  3. To use groups: Security → API → your authorization server → Claims → add a groups claim (ID token, "Matches regex" .* or a filter for your admin groups).
OMNIGATE_AUTH_OIDC_ISSUER=https://your-org.okta.com/oauth2/default
OMNIGATE_AUTH_OIDC_CLIENT_ID=<client id>
OMNIGATE_AUTH_OIDC_CLIENT_SECRET=<client secret>
OMNIGATE_AUTH_OIDC_SCOPES="openid profile email groups"
OMNIGATE_AUTH_OIDC_ADMIN_GROUPS=ThinkingSense-Admins

Microsoft Entra ID

  1. App registrations → New registration, platform Web, add the two redirect URIs. Create a client secret.
  2. Token configuration → add optional claim email (ID token). For groups, add a groups claim. Entra sends group object IDs, not names, so list the object IDs in ADMIN_GROUPS. Tenants where users belong to many groups may need "groups assigned to the application" to avoid claim overage.
  3. Enterprise applications → assign users/groups.
OMNIGATE_AUTH_OIDC_ISSUER=https://login.microsoftonline.com/<tenant-id>/v2.0
OMNIGATE_AUTH_OIDC_CLIENT_ID=<application (client) id>
OMNIGATE_AUTH_OIDC_CLIENT_SECRET=<secret value>
OMNIGATE_AUTH_OIDC_ADMIN_GROUPS=<group object id>

AWS (Amazon Cognito)

AWS IAM Identity Center issues SAML assertions to applications, so put an Amazon Cognito user pool in front: add Identity Center (or your corporate IdP) to the pool as a federated provider, then register ThinkingSense as an app client.

  1. Cognito → user pool → App clients → create a confidential client (with secret). Add the two callback URLs and the scopes openid email profile.
  2. Create a group (for example thinkingsense-admins) and add admins; Cognito puts it in the cognito:groups claim.
OMNIGATE_AUTH_OIDC_ISSUER=https://cognito-idp.<region>.amazonaws.com/<user-pool-id>
OMNIGATE_AUTH_OIDC_CLIENT_ID=<app client id>
OMNIGATE_AUTH_OIDC_CLIENT_SECRET=<app client secret>
OMNIGATE_AUTH_OIDC_GROUPS_CLAIM=cognito:groups
OMNIGATE_AUTH_OIDC_ADMIN_GROUPS=thinkingsense-admins

For machine access from AWS workloads, use OMNIGATE_AUTH_API_TOKENS rather than SSO.

Google Cloud (Google Workspace / Cloud Identity)

  1. APIs & Services → Credentials → OAuth client ID, type Web application, add the two redirect URIs.
  2. Consent screen: set it to Internal to limit sign-in to your Workspace domain.
  3. Google's ID token has no groups claim, so grant admin by email.
OMNIGATE_AUTH_OIDC_ISSUER=https://accounts.google.com
OMNIGATE_AUTH_OIDC_CLIENT_ID=<client id>.apps.googleusercontent.com
OMNIGATE_AUTH_OIDC_CLIENT_SECRET=<client secret>
OMNIGATE_AUTH_OIDC_ADMIN_USERS=alice@example.com,bob@example.com

If you need group-based roles on GCP, use Identity Platform or a Workspace SAML/OIDC bridge that emits a groups claim.

Oracle Cloud (OCI IAM identity domains)

  1. Identity & Security → Domains → your domain → Integrated applications → Add application → Confidential application. Enable *Authorization code* as the grant type, add the two redirect URIs, and note the client ID and secret. Activate the application.
  2. Use the domain URL as the issuer (it is shown on the domain page; the discovery document lives under it). Groups are sent when the groups scope or claim is enabled for the application.
OMNIGATE_AUTH_OIDC_ISSUER=https://idcs-<domain-id>.identity.oraclecloud.com
OMNIGATE_AUTH_OIDC_CLIENT_ID=<client id>
OMNIGATE_AUTH_OIDC_CLIENT_SECRET=<client secret>
OMNIGATE_AUTH_OIDC_ADMIN_USERS=alice@example.com

Checking it worked

Open /admin/login: there should be a "Continue with <provider>" button above the local form. If sign-in returns to the login page with an error, check that the issuer matches the provider's issuer value exactly, both redirect URIs are registered, and the client secret is current.

Security: column tags and policy history

Settings → Security has two parts. Column tags classify columns (pii.email, financial, secret): choose Suggest tags and ThinkingSense proposes tags from column names and sample values; nothing is enforced until you Approve a tag, and you can add one by hand. A policy rule written against a tag (tag: pii) then covers every approved column with that tag, so a newly tagged column is protected without editing the policy. Policy history lists every version of the access policy with its author and reviewer; Review shows what a change alters and whether the tests kept in the policy file pass, and Approve, Reject and Roll back to this do what they say. With OMNIGATE_POLICY_REVIEW=required a second administrator must approve a change. The same page opens with What is actually on: each control as On, Partly or Off with how to turn it on, and for every data source its classification, whether the database receives the end user, and what a model may be sent. An installation is not shown as production ready while a critical control is missing. The Security page describes every control and setting.

The Ask app

Business users ask in plain English and watch each step: sources used, checks run, how sure the answer is. Answers cite the tables and documents they came from, and users only see what their group and attributes allow: a column they may not read is left out, and a masked one shows as ***, a partial value or a band such as $90,000 instead of the exact number.

Ask sign-in page with a single sign-on button
/login — the same provider button for business users.
Ask workspace after signing in
The Ask workspace. Quick answer for a direct query; Deep analysis for a planned, multi-step investigation.