Skip to content

Multi-Server Setup

Overview

NIKI runs independently on each server. Each server needs:

  • Its own NIKI installation
  • Its own configuration
  • Its own bot (recommended) or shared bot with different user IDs

Create a different Telegram bot for each server:

ServerBot NameBot Username
HPCNIKI HPC@niki_hpc_yourname_bot
WorkstationNIKI Lab@niki_lab_yourname_bot
CloudNIKI Cloud@niki_cloud_yourname_bot

This way, DMs to each bot go to the right server.

Installation on Each Server

Terminal window
# On each server
pip install niki[all]
niki config init # Use that server's bot token
niki daemon start

Server Identification

Notifications include the server name:

โœ… Training Complete (2h 34m)
๐Ÿ“ hpc-cluster โ† Server identifier
Loss: 0.0023 | Accuracy: 98.7%

Configure the server name in config.toml:

[general]
server_name = "hpc-cluster"

Cross-Server Queries

When you DM a bot, youโ€™re querying that server. To query another:

  1. DM the other serverโ€™s bot
  2. Or use a shared channel (Slack only)

Shared Slack Workspace

For Slack, you can use a single workspace with multiple bots:

# On server 1
[notifications.slack]
bot_name = "NIKI HPC"
# On server 2
[notifications.slack]
bot_name = "NIKI Workstation"

All notifications go to the same channel/DM, tagged by server.