Edit this page on GitHub ↗

Operations

Janus is a local research tool. Run it on one machine, keep the database, and gate the HTTP surface if it leaves loopback.

Serve locally

uv run janus serve --port 8801

The console and the API are served by the same process. The browser talks to the same origin, and the page sends a strict default-src 'self' policy.

Auth and the edge

Set JANUS_API_TOKEN to require a bearer token on the API. The console never asks the browser to hold it in a same-origin deployment: the proxy injects Authorization on the way out, and the page keeps no secret.

Data and backups

The store is SQLite in v0.1. Back it up as a file while the service is stopped, or use SQLite's online backup mechanism. The database is the product: snapshots, theses, predictions, and reviews are all in it.

Logging and redaction

core/janus/logging.py emits one structured event path, with --log-format text|json. The CLI routes both through configure_logging(), and ingestion emits ingestion.start, ingestion.dead_letter, and ingestion.complete with the run id.

Redaction is value-level, not key-name-level. redact() scans every string at any depth, so a provider error carrying ?api_key=…, an Authorization: Bearer … header, a PEM private key, a token-shaped string, or https://user:pass@host is masked whether or not the mapping key looks sensitive.

Security posture

The threat model assumes a local operator and a possibly hostile data source:

The honest limit: v0.1 has no application-layer multi-tenant identity. One token means one principal. Multi-tenant support is a design item (JAN-145), not a configuration flag.

Deployment checklist

  1. Pin the version and the database path.
  2. Set JANUS_API_TOKEN before exposing anything.
  3. Keep the backend on loopback; put TLS and auth at the proxy.
  4. Back up the SQLite file on a schedule you have restored at least once.
  5. Watch ingestion dead letters; a silent source is a data bug.
  6. Rotate the token by restarting with the new value; there is no per-user revocation yet.

Read next