One portal for your infrastructure: monitoring, containers, Proxmox, SSH, Ansible, AI.
3.3K
One portal for your whole infrastructure lifecycle.
Monitoring · Containers · Proxmox VE · SSH · Ansible · Workflows · AI troubleshooting
Status: pre-1.0 (0.10.x). Every planned module exists (phases F0–F8), but they are not equally proven: some have been exercised against real infrastructure, others only against simulated services or in tests. Each module's verification status is listed in the plan. Evaluate it on a lab before relying on it in production.
Janus-Ops replaces the daily jump between Checkmk, Portainer/Dockhand, the Proxmox VE UI, MobaXterm and Ansible terminals with one central inventory and decoupled modules around it. It is built for segmented, air-gapped and proxy-restricted networks: no runtime downloads, self-hosted TLS, and a Go agent that only opens outbound connections.
| Module | What it does |
|---|---|
| Control plane, UI, audit | Sign-in with LDAP / Active Directory, roles and permissions, optional TOTP, break-glass account, hash-chained audit log |
| Inventory and vault | Nodes, tags, groups, environments, per-role node scope; encrypted credential vault |
| SSH bastion | Web terminal, jump host, host-key pinning, session recording and replay, SFTP browser, broadcast, snippets |
janus-agent | Outbound-only telemetry agent (Linux, and a Windows service), SSH bootstrap or a PowerShell one-liner, optional commands, shell and Docker access under a local policy, signed self-update with rollback (Linux) |
| Monitoring | Checks (agent, metrics, ports, HTTP, systemd, SNMP, FRITZ!Box), charts from 5 minutes to 90 days, hysteresis, acknowledge, downtimes, dependencies, notifications (mail, Telegram, webhook, Discord, Slack, ntfy); SNMP check templates built from the OID catalog, v2c traps (optional receiver) with MIB names |
| Containers | Docker hosts and Compose stacks through the agent or SSH: logs, stats, actions, shell |
| Proxmox VE | Clusters, VM/LXC lifecycle, snapshots, backup audit, consoles |
| Ansible | Playbook catalogue (Git, upload, editor, network mount, SFTP), surveys, live runs, history |
| Workflows | Graph editor (drag steps, connect branches), manual / interval / alert / signed-webhook triggers, conditional branches, approvals, management steps (service, container, process, Proxmox guest, HTTP and port checks, wait, retries; changing steps wait for a person unless marked unattended), run status drawn on the flow |
| GitOps | Compose stacks deployed from Git with a signed webhook |
| AI Copilot | Diagnosis of problems on any OpenAI-compatible provider, with fallback routes and optional MCP tools that look at the node; knows which hypervisor a VM runs on; action plans you approve |
| Operate | A chat to carry out an instruction on servers you pick (looks, changes the minimum, verifies, reports); every call audited |
| Archive | Recorded SSH sessions and Operate chats move to a searchable archive after X days and are deleted after Y (1 and 30 by default) |
| Backup & restore | Export the configuration to one file (secrets encrypted with a passphrase) and import it with a preview first |
| Secret manager | Optional OpenBao / HashiCorp Vault for the master key (Transit) or the secrets themselves (KV) |
/app/agent: linux/amd64, linux/arm64, linux/arm), each with the
release signature that lets the server push signed updates.10001), ready for read_only: true. The only state on disk is
the optional terminal recordings directory (/var/lib/janus-ops/recordings, mount a volume).HEALTHCHECK on /api/v1/health.linux/amd64, linux/arm64.The entrypoint is janus-ops:
| Command | Purpose |
|---|---|
serve (default) | Start the HTTP server (API + web UI) |
migrate | Apply database migrations up to the latest revision, then exit. Idempotent |
setup | migrate, then create the initial administrator from JANUS_ADMIN_* if it does not exist |
breakglass | Create the local emergency admin or rotate its password (prompts; --password-stdin for scripts) |
secrets status / migrate --to <backend> / prune | Where the master key lives; move secrets between local, openbao-transit and openbao-kv; remove orphaned secrets in KV |
agent-keygen / agent-sign / agent-verify | Create the agent release key, sign agent binaries, verify signed binaries (run on the release machine) |
version | Print the version and exit |
The reference stack runs Caddy (TLS) · janus-ops · TimescaleDB (PostgreSQL 16) ·
lldap (user directory), plus two one-shot jobs: ldap-init (creates the janus-* groups
and two service accounts) and setup (database schema and initial administrator).
mkdir janus-ops && cd janus-ops
base=https://raw.githubusercontent.com/lordraw77/janus-ops/main/deploy
curl -fsSLO "$base/compose.yaml"
curl -fsSLO "$base/Caddyfile"
curl -fsSL -o .env "$base/.env.example"
# Fill the required secrets with random hex values
for key in POSTGRES_PASSWORD LLDAP_JWT_SECRET LLDAP_KEY_SEED LLDAP_ADMIN_PASSWORD \
LDAP_BIND_PASSWORD LDAP_MANAGER_PASSWORD JANUS_SECRET_KEY; do
sed -i "s|^${key}=\$|${key}=$(openssl rand -hex 32)|" .env
done
# Password of the initial administrator "janus-admin" (or write your own, min. 12 chars)
sed -i "s|^JANUS_ADMIN_PASSWORD=\$|JANUS_ADMIN_PASSWORD=$(openssl rand -hex 10)|" .env
chmod 600 .env
docker compose up -d --wait
Open https://localhost/. By default Caddy issues the certificate from its own local CA
(JANUS_TLS=internal), so the browser warns about it until you trust that CA or set a real
domain and JANUS_TLS=<your e-mail> for a public certificate.
Check readiness:
curl -k https://localhost/api/v1/ready
# {"status":"ok","version":"0.17.1","checks":{"timescaledb":"ok","schema":"ok","database":"ok"}}
Optional pieces of compose.yaml are profiles: list the ones you want in COMPOSE_PROFILES in .env.
| Profile | Adds |
|---|---|
openbao | An OpenBao with automatic unseal, as the home of the master key |
snmp-traps | The SNMP trap receiver, in its own container, publishing UDP 162 |
lan-watch | The LAN scanner for Network watch, on the host network |
Overrides that change the app itself, used with -f compose.yaml -f <file> (all in the same deploy/ folder):
| File | Adds |
|---|---|
compose.external-directory.yaml | Sign-in with an external LDAP / Active Directory instead of lldap |
compose.release.yaml | A host directory of signed agent binaries (only for hand-signed builds) |
Sign in at https://localhost/login/ as janus-admin with the JANUS_ADMIN_PASSWORD from
.env (grep JANUS_ADMIN_PASSWORD .env). The account is created only if missing, so a password
changed later in the UI is never overwritten.
Then open Users & roles to create users, set passwords, assign roles, disable access, reset
2FA or delete accounts. Users and groups live in lldap; Janus-Ops manages them through a dedicated
janus-manager account (with an external directory they are managed there).
Each role maps to an LDAP group and holds a set of permissions (the union applies with several
roles), optionally limited to some nodes (environment, tag, group, capability or specific nodes).
Built-in roles: admin (janus-admins, every permission), operator (janus-operators,
day-to-day operations) and auditor (janus-auditors: audit.read, users.read,
inventory.read). Permissions:
| Permission | Allows |
|---|---|
audit.read | view the audit log and verify its hash chain |
users.read / users.manage | view / create, edit, disable and delete users; reset passwords and 2FA |
roles.manage | create and delete roles; change permissions, LDAP groups and node scope |
inventory.read / inventory.manage | view / change nodes, tags, groups, capabilities |
environments.manage | create, rename and delete environments |
credentials.manage | create, replace and delete vault credentials (secrets are write-only) |
ssh.connect | open web terminals (over SSH or through an agent) |
sftp.transfer | browse and transfer files over SFTP |
snippets.manage | manage shared command snippets |
agents.manage | install, update, revoke, uninstall the agent (it runs as root) |
monitoring.manage / notifications.manage | checks, downtimes, acknowledgements / notification channels and rules |
containers.manage / containers.exec | container and stack actions / shells in containers |
proxmox.manage / proxmox.console | VM/LXC actions / consoles |
ansible.read / ansible.manage / ansible.run | browse / manage sources and files / run playbooks |
ai.use / ai.approve / actions.execute | ask the Copilot / approve its plans / run approved plans on nodes |
gitops.manage / gitops.deploy | manage GitOps stacks and webhook secrets / deploy now |
workflow.manage / workflow.run / workflow.approve | edit workflows / start them / approve their waiting steps |
By default operator holds the operational permissions (inventory, agents, monitoring, containers, Proxmox, Ansible runs, AI, GitOps deploys, workflows, SSH and SFTP); user, role, credential, notification and environment administration stay with admin. Only admins can grant the admin role. Sessions last 8 hours with a 1-hour inactivity timeout; 5 failed attempts lock a username for 15 minutes.
Each user can enable TOTP from My account: scan the QR code with any authenticator app and
save the recovery codes. It works behind corporate proxies and air-gapped: the QR code is drawn
by the server and codes depend only on the clock (keep NTP in sync). Seeds are encrypted with the
master key (JANUS_SECRET_KEY, or the secret manager): back it up together with the database volume.
Add nodes (IP or FQDN, environment, tags, groups, parent dependency) and enable their capabilities: SSH target, Janus agent, Proxmox node, Docker host, SNMP device, FRITZ!Box. Credentials (SSH keys, passwords, Proxmox tokens or user + password, SNMP secrets, notification and webhook secrets) live in the vault with envelope encryption; they are write-only and never sent to the browser.
Open terminals from the browser on nodes with the SSH capability (xterm.js over WebSocket; the
SSH connection and its credentials stay on the server). Host keys are pinned on first use and a
changed key blocks the connection. Sessions are recorded (asciicast, on the recordings volume)
and can be replayed; start, end and failures are audited. An SFTP file browser, command
broadcast across terminals and a snippet library complete the bastion. If the node's agent allows
it, you can also open a shell through the agent, with no SSH credential.
janus-agent is a static Go binary installed over SSH from the node page. It opens no port: it
connects out to the server over WSS (HTTP(S) proxies and custom CAs supported), enrols with a
single-use token and an ed25519 key that never leaves the node, and buffers telemetry on disk while
disconnected. What it will do for the server is decided by a local policy written at
installation (allow_exec, allow_pty, allow_docker); the server cannot change it.
Signed updates. The agent replaces itself only with a binary signed by your release key
(janus-ops agent-keygen, kept off the server). The server holds only the public key
(JANUS_AGENT_RELEASE_PUBLIC_KEY) and distributes the signed binaries bundled in this image; the
agent checks the signature, refuses a version that is not newer, and rolls back automatically if the
new binary cannot connect. Roll an update out from Inventory → Update agents.
An optional receiver stores SNMP v2c traps from the hosts in the inventory (matched by source address; no SNMP credentials needed) and shows them on the SNMP traps page with names from the MIB files you upload (standard names are built in). Each trap has an Alert button that creates a check which opens a problem when the trap arrives and closes it after a window without new ones. Turn the profile on and set a community, then point the devices at port 162/udp:
echo 'JANUS_SNMP_TRAP_COMMUNITIES=<long random community>' >> .env
echo 'COMPOSE_PROFILES=snmp-traps' >> .env # add to the profiles you already have, comma separated
docker compose up -d
| Variable | Default | Meaning |
|---|---|---|
JANUS_SNMP_TRAP_PORT | 0 (off; 1162 in the overlay, published as 162/udp) | UDP port the receiver listens on |
JANUS_SNMP_TRAP_COMMUNITIES | — | Comma-separated v2c communities accepted (required with the port) |
JANUS_SNMP_TRAP_BIND | 0.0.0.0 | Address to listen on |
Traps from an address that is not an inventory node, or with another community, are dropped and counted; a source is limited to 120 traps a minute and traps are kept 30 days. SNMPv3 traps are not accepted yet.
Settings → Backup & restore (config.export, config.import): one JSON file with environments, credentials, hosts, groups,
check templates, checks, the SNMP OID catalog, notification channels and rules, snippets, workflows and AI providers. Ids are
written as names so the file imports into another installation. Secrets are included only on request (credentials.reveal) and
are encrypted in the file with a passphrase (scrypt + AES-256-GCM). Import previews the result (nothing is changed) before it
applies it; existing items are kept or overwritten. Users, roles, audit, metrics, agents, GitOps and Ansible sources are not exported.
Settings → AI providers: Add provider is a gallery with the address already filled in; Use this puts a tested model first on
the default route (the previous ones stay as fallback), and AI models & tools has a list for the main and the second-opinion model.
Add every provider you have a key for (Groq, OpenRouter, NVIDIA, Cloudflare, Mistral, Cerebras,
Hugging Face, Gemini, Ollama, a local engine, anything OpenAI-compatible). Several keys per provider, sealed in the vault.
Routes and fallback are ordered lists of models: a request goes to the first that works and falls over to the next on a
limit, outage, timeout, bad key or missing model; health and usage are on the same page. The JANUS_AI_* variables keep
working until a route has a model. janus-ops ai-import-providers --env-file FILE creates providers from keys you already
have (docker exec -i janus-ops janus-ops ai-import-providers --env-file - < keys.env).
The Copilot can look at a node (and, with the ai.operate permission, act on it) through lordraw/linux-mcp and
lordraw/proxmox-mcp, started with docker run -i on the host's Docker and configured from the inventory. Add the
overlay, which mounts the Docker socket into the backend (root-equivalent on the host: use a socket proxy if that is not
acceptable):
JANUS_DOCKER_GID=$(stat -c %g /var/run/docker.sock) \
docker compose -f compose.yaml -f compose.mcp.yaml up -d
| Variable | Default | Meaning |
|---|---|---|
JANUS_AI_MCP_ENABLED | false (true in the overlay) | Switch on the MCP tools; also set in Settings → AI models & tools |
JANUS_AI_MCP_NETWORK | unset (self in the overlay) | Network of the MCP containers: self = the backend's own, or a Docker network name |
JANUS_AI_MCP_DOCKER, JANUS_AI_MCP_DOCKER_HOST | docker, unset | Docker CLI and socket to use |
JANUS_AI_MCP_LINUX_IMAGE, JANUS_AI_MCP_PROXMOX_IMAGE | lordraw/linux-mcp:latest, lordraw/proxmox-mcp:latest | Images to run |
The Operate page (permission ai.operate) is a chat: pick up to ten servers and say what to do. The saved settings
can switch operational tools off for everyone, or make chosen environments action plan only.
Recorded SSH sessions and Operate chats move to the Archive page after X days and are deleted after Y (days from when
they ended; defaults 1 and 30, set on that page). The archive is searchable (recorded output too), filterable by host and
group, sortable, and items can be marked keep so that nothing deletes them. Permissions: archive.read, archive.manage.
By default the master key is JANUS_SECRET_KEY. Set JANUS_SECRET_BACKEND to keep it in
OpenBao or HashiCorp Vault: openbao-transit (the key lives in Transit; secrets stay encrypted in
PostgreSQL) or openbao-kv (the content of each secret lives in KV v2, PostgreSQL holds only a
reference). janus-ops secrets migrate --to <backend> moves existing secrets, all or nothing and
reversible. The openbao profile runs an OpenBao that unseals itself on restart.
Point JANUS_LDAP_* at your own LDAP or Active Directory (login attribute such as sAMAccountName,
UPN filter, StartTLS, nested groups) and start the stack with compose.external-directory.yaml.
Emergency admin that does not depend on LDAP:
docker compose run --rm --no-deps janus-ops breakglass
Sign in as breakglass. Every use is audited and logged as a warning.
# 1. Apply the schema (needs PostgreSQL 16 with the TimescaleDB extension)
docker run --rm \
-e JANUS_DATABASE_URL='postgresql+asyncpg://janus:PASSWORD@db-host:5432/janus' \
lordraw/janus-ops:0.17.1 migrate
# 2. Start the server
docker run -d --name janus-ops -p 127.0.0.1:8000:8000 \
-e JANUS_DATABASE_URL='postgresql+asyncpg://janus:PASSWORD@db-host:5432/janus' \
lordraw/janus-ops:0.17.1
Variables read by the janus-ops process:
| Variable | Default | Description |
|---|---|---|
JANUS_DATABASE_URL | — (required) | postgresql+asyncpg://USER:PASSWORD@HOST:5432/DB |
JANUS_LOG_LEVEL | INFO | DEBUG, INFO, WARNING, ERROR. Logs are JSON on stdout |
JANUS_HOST / JANUS_PORT | 0.0.0.0 / 8000 | Listen address and port |
JANUS_STATIC_DIR | /app/static | Exported web UI; unset it to run the API only |
JANUS_DB_CONNECT_TIMEOUT_S | 5 | Database connect timeout, seconds |
JANUS_DB_POOL_SIZE / JANUS_DB_MAX_OVERFLOW | 20 / 20 | Database connections kept open / extra in a burst. Size for the fleet: 500 agents sending 200 series every 10 s need the defaults, a pool of 5 starves |
JANUS_FORWARDED_ALLOW_IPS | 127.0.0.1 | Proxies trusted for X-Forwarded-* headers |
JANUS_LDAP_URL | — | ldap://host:port or ldaps://host:port; unset = LDAP sign-in off |
JANUS_LDAP_BASE_DN | — | Directory base DN (required with LDAP) |
JANUS_LDAP_USER_BASE_DN | ou=people,<base DN> | Where users live |
JANUS_LDAP_USER_FILTER | (&(objectClass=person)(uid={username})) | User search filter; must contain {username} |
JANUS_LDAP_USERNAME_ATTR | uid | Login attribute (sAMAccountName for Active Directory) |
JANUS_LDAP_START_TLS | false | StartTLS on ldap:// (certificate verified) |
JANUS_LDAP_NESTED_GROUPS / JANUS_LDAP_GROUP_BASE_DN | false / base DN | Active Directory: resolve groups of groups / where groups live |
JANUS_LDAP_BIND_DN / JANUS_LDAP_BIND_PASSWORD | — | Read-only service account (required with LDAP) |
JANUS_LDAP_TIMEOUT_S / JANUS_LDAP_CA_FILE | 5 / system CAs | LDAP timeout; CA bundle for ldaps:// |
JANUS_LLDAP_HTTP_URL | — | lldap GraphQL endpoint; unset = users are read-only (external directory) |
JANUS_LDAP_MANAGER_USER / JANUS_LDAP_MANAGER_PASSWORD | janus-manager / — | lldap account in lldap_admin, used for user administration |
JANUS_ADMIN_USERNAME / JANUS_ADMIN_PASSWORD / JANUS_ADMIN_EMAIL | janus-admin / — / <user>@janus-ops.invalid | Initial administrator created by setup if missing |
JANUS_SECRET_KEY | — | 64 hex chars; the master key of the local backend (empty = not set) |
JANUS_SECRET_BACKEND | local | local, openbao-transit or openbao-kv |
JANUS_BAO_ADDR / JANUS_BAO_ROLE_ID / JANUS_BAO_SECRET_ID | — | OpenBao / Vault address (https://) and AppRole credentials |
JANUS_BAO_TRANSIT_MOUNT / JANUS_BAO_TRANSIT_KEY | transit / janus-kek | Transit engine mount and key |
JANUS_BAO_KV_MOUNT / JANUS_BAO_KV_PREFIX | secret / janus-ops | KV v2 mount and path prefix (openbao-kv) |
JANUS_BAO_CA_FILE / JANUS_BAO_TIMEOUT_S / JANUS_BAO_DEK_CACHE_S | system CAs / 5 / 300 | CA bundle; request timeout; how long unwrapped data keys stay in memory |
JANUS_PVE_IMAGES_PATH | — | Where the cloud images (.qcow2, .img) are kept on the Proxmox storages, for the Deploy VM tab; unset = any storage of the node |
JANUS_RECORDINGS_DIR | — | Terminal recordings directory; unset or empty = no recording |
JANUS_TERMINAL_IDLE_S / JANUS_TERMINAL_MAX_PER_USER | 1800 / 10 | Terminal inactivity timeout; open terminals per user |
JANUS_SSH_CONNECT_TIMEOUT_S | 10 | SSH connect timeout |
JANUS_SFTP_MAX_UPLOAD_MB / JANUS_SFTP_IDLE_S | 1024 / 300 | SFTP upload limit; idle SFTP connections are closed after this many seconds |
JANUS_ANSIBLE_MOUNT_ROOTS | — | Directories that network-mount playbook sources may live under (unset = disabled) |
JANUS_AI_BASE_URL / JANUS_AI_MODEL / JANUS_AI_API_KEY / JANUS_AI_TIMEOUT_S | — / — / — / 120 | OpenAI-compatible endpoint for the Copilot (both URL and model needed to enable it) |
JANUS_AI_REVIEW_MODEL / JANUS_AI_REVIEW_BASE_URL / JANUS_AI_REVIEW_API_KEY | — / main endpoint / main key | Second model for the "second opinion" button (compared with the first diagnosis); empty model = button off |
JANUS_AGENT_SERVER_URL | URL used in the browser | https:// URL agents connect to; must match the TLS certificate |
JANUS_AGENT_CA_FILE | /var/lib/janus-ops/pki/root.crt (Compose) | CA certificate (PEM) written to nodes for the agent |
JANUS_AGENT_INTERVAL_S | 10 | Telemetry interval, 5–15 seconds |
JANUS_AGENT_ENROLL_TTL_S / JANUS_AGENT_BOOTSTRAP_WAIT_S | 900 / 45 | Lifetime of the enrolment token; how long a bootstrap waits for the agent |
JANUS_AGENT_DIR | /app/agent | Agent binaries copied to nodes and pushed as updates (built into the image, signed) |
JANUS_AGENT_RELEASE_PUBLIC_KEY | unset | Base64 ed25519 public key of the agent release key; written to new installs, enables signed updates |
JANUS_MONITORING_ENABLED | true | Run the check engine and notification dispatcher in the server |
JANUS_SESSION_TTL_S / JANUS_SESSION_IDLE_S | 28800 / 3600 | Session lifetime / inactivity timeout, seconds |
JANUS_COOKIE_SECURE | true | Session cookie over HTTPS only |
JANUS_BREAKGLASS_USERNAME | breakglass | Name of the local emergency admin |
Variables used by the Compose stack (.env):
| Variable | Default | Description |
|---|---|---|
JANUS_IMAGE / JANUS_VERSION | lordraw/janus-ops / 0.17.1 | Image and tag to run |
JANUS_DOMAIN | localhost | Host name served by Caddy |
JANUS_TLS | internal | internal (local CA, works offline) or an e-mail for ACME |
JANUS_HTTP_PORT / JANUS_HTTPS_PORT | 80 / 443 | Host ports of the proxy |
POSTGRES_PASSWORD | — (required) | Password of the janus database user (use hex: it goes into a URL) |
LDAP_BASE_DN | dc=janus-ops,dc=local | Base DN of the directory |
LLDAP_JWT_SECRET / LLDAP_KEY_SEED | — (required) | lldap secrets |
LLDAP_ADMIN_PASSWORD | — (required) | lldap admin password |
LLDAP_UI_PORT | 17170 | lldap admin UI port, bound to 127.0.0.1 |
LDAP_BIND_PASSWORD | — (required) | Password of the read-only service account janus-svc |
LDAP_MANAGER_PASSWORD |
docker pull lordraw/janus-ops:latest