Documentation menu

Web UI

The web UI is a local browser app. It starts without any API key; keyless tools work at once and the chat needs a provider.

Start it

openosint web

Or without installing: uvx openosint web. The server prints its address and opens your browser. By default it listens on http://127.0.0.1:8080/.

Option Effect
--port N Use another port. If 8080 is busy, OpenOSINT exits and suggests the next one.
--no-browser Do not open a browser tab.
--host HOST Bind to another address (default 127.0.0.1).
--allow-remote Required for any non-loopback host. It exposes the server to your network.

The three views

  • Chat. Ask in plain language. Tool output streams in as result cards, each tied to the tool call that produced it.
  • Globe. Recent worldwide news, placed on a map by the search_gdelt_geo tool. Hold Shift and drag to search only inside an area. Nothing is downloaded until you first use it.
  • Graph. A view of the entities found in the current chat. It is built in your browser and is separate from the stored entity graph.

Choose an AI provider

Open Settings and pick one:

Provider What you need
Anthropic ANTHROPIC_API_KEY
Ollama (local) A running Ollama and pip install "openosint[ollama]"
OpenAI-compatible OPENAI_BASE_URL, plus OPENAI_API_KEY if the server wants one

Settings can also save tool keys on this computer. They go to config.env in the data directory (~/.openosint/, or $OPENOSINT_HOME), never into the installed package. Values are not logged or sent back to the browser. See Configuration.

Active tools are off by default. On a local install, Settings has an "Enable active tools" switch; a public or demo instance can never enable them. See Safety.

Reaching it by another name

On a loopback bind the server only answers requests whose Host is 127.0.0.1, localhost or ::1, and browser requests to /api/* must come from the UI's own origin. If you use another host name, such as a LAN name or reverse proxy, set OPENOSINT_ALLOWED_HOSTS=osint.lan,localhost. A separate front end on another origin needs OPENOSINT_ALLOWED_ORIGINS. On a non-loopback bind (--allow-remote, Docker) the Host check only runs when OPENOSINT_ALLOWED_HOSTS is set, so set it there.

Keys follow the bind address (v2.28 and later)

Bound to 127.0.0.1 or localhost (the default), keys in your .env work as before. Bound to any other interface (--host 0.0.0.0, which already requires --allow-remote), the web UI never uses a key from your environment to serve a request: every caller must supply their own, and breach lookups (search_breach) are disabled outright. This applies regardless of any environment variable, including OPENOSINT_DEMO_MODE, which can only add restriction. If you were exposing the web UI on a LAN with your own keys and no per-caller authentication in front of it, that pattern no longer works.

Behind a reverse proxy

A loopback bind only means the OS accepted the connection from this machine; it says nothing about who can reach it if nginx, Caddy, a Docker or Kubernetes sidecar, or a tunnel forwards requests from elsewhere. By default, a request carrying proxy-forwarding headers (X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Host, Forwarded, CF-Connecting-IP) is treated like a non-loopback bind: your local keys are never used, breach lookups are blocked, and the caller is told why.

To make requests relayed by your own proxy behave like a normal local instance, set OPENOSINT_TRUSTED_PROXY=true. This is separate from the older TRUSTED_PROXY, which only affects which IP a rate-limit bucket is attributed to; reusing it would have silently upgraded a rate-limit-only setting into one that also permits credentialed access. Setting OPENOSINT_TRUSTED_PROXY does not blindly trust the forwarded headers' content: internally inconsistent values (for example two disagreeing X-Forwarded-Proto values on one request) are still treated as public.

Setting it means you choose to serve credentialed lookups to whoever your reverse proxy relays to this instance, and you are the controller for their queries, as any operator of a hosted service is for its users. Put real authentication in front of it if "whoever the proxy relays" is broader than you intend.

Docker

docker compose up --build

The container publishes 127.0.0.1:8080 only. A browser reaches the container over the Docker network, so it cannot save keys by default. Set the keys in your compose environment or .env, or set OPENOSINT_SETUP_TOKEN to a long random string and enter it in the UI's key panel.

Files it writes

The graph database and session history live in the data directory. The web UI writes no reports; CLI and REPL reports go to ./reports/.

Edit this page on GitHub