MCPcopy
hub / github.com/komari-monitor/komari

github.com/komari-monitor/komari @1.2.5 sqlite

repository ↗ · DeepWiki ↗ · release 1.2.5 ↗
1,616 symbols 5,385 edges 209 files 655 documented · 41%
README

Komari

Badge Ask DeepWiki

komari

简体中文 | 繁體中文 | 日本語

Komari is a lightweight, self-hosted server monitoring tool designed to provide a simple and efficient solution for monitoring server performance. It supports viewing server status through a web interface and collects data through a lightweight agent.

[!WARNING] Komari is a self-hosted monitoring and control program intended only for systems you own or are authorized to administer. Do not weaponize Komari, deploy it without consent, or use it for unauthorized access, persistence, command execution, or other abusive activity. For context on real-world abuse risks, see Huntress' analysis: Komari C2 agent abuse. Users are solely responsible for how they deploy and operate Komari. The developers do not accept responsibility for unauthorized or abusive use, or for any resulting consequences. On Windows, when remote control is enabled, the client displays a Windows notification at each user login to remind the user that Komari is remote control software.

Documentation | 文档(镜像站 By Geekertao) | Telegram Group

Features

  • Lightweight and Efficient: Low resource consumption, suitable for servers of all sizes.
  • Self-hosted: Complete control over data privacy, easy to deploy.
  • Web Interface: Intuitive monitoring dashboard, easy to use.

Quick Start

0. One-click Deployment with Cloud Hosting

  • Rainyun - CNY 4.5/month

  • 1Panel App Store

Available on 1Panel App Store. Install via App Store > Utilities > Komari.

1. Use the One-click Install Script

Suitable for distributions using systemd (Ubuntu, Debian...).

curl -fsSL https://raw.githubusercontent.com/komari-monitor/komari/main/install-komari.sh -o install-komari.sh
chmod +x install-komari.sh
sudo ./install-komari.sh

2. Docker Deployment

  1. Create a data directory: bash mkdir -p ./data
  2. Run the Docker container: bash docker run -d \ -p 25774:25774 \ -v $(pwd)/data:/app/data \ --name komari \ ghcr.io/komari-monitor/komari:latest
  3. View the default username and password: bash docker logs komari
  4. Access http://<your_server_ip>:25774 in your browser.

[!NOTE] You can also customize the initial username and password through the environment variables ADMIN_USERNAME and ADMIN_PASSWORD.

3. Binary File Deployment

  1. Visit Komari's GitHub Release page to download the latest binary for your operating system.
  2. Run Komari: bash ./komari server -l 0.0.0.0:25774
  3. Access http://<your_server_ip>:25774 in your browser. The default port is 25774.
  4. The default username and password can be found in the startup logs or set via the environment variables ADMIN_USERNAME and ADMIN_PASSWORD.

[!NOTE] Ensure the binary has execute permissions (chmod +x komari). Data will be saved in the data folder in the running directory.

Manual Build

Dependencies

  • Go 1.18+ and Node.js 20+ (for manual build)

  • Build the frontend static files: bash git clone https://github.com/komari-monitor/komari-web cd komari-web npm install npm run build

  • Build the backend: bash git clone https://github.com/komari-monitor/komari cd komari Copy the static files generated in step 1 to the /web/public/defaultTheme/dist folder in the root of the komari project, and copy komari-theme.json + preview.png/perview.png to /web/public/defaultTheme. bash go build -o komari
  • Run: bash ./komari server -l 0.0.0.0:25774 The default listening port is 25774. Access http://localhost:25774.

Frontend Development Guide

Komari Theme Development Guide | Komari

Client Agent Development Guide

Komari Agent Information Reporting and Event Handling Documentation

Contributing

Issues and Pull Requests are welcome!

Acknowledgements

破碎工坊云

破碎工坊云 - 专业云计算服务平台,提供高效、稳定、安全的高防服务器与CDN解决方案

DreamCloud

DreamCloud - 极高性价比解锁直连亚太高防

🚀 Sponsored by SharonNetworks

Sharon Networks

SharonNetworks 为您的业务起飞保驾护航!

亚太数据中心提供顶级的中国优化网络接入 · 低延时&高带宽&提供Tbps级本地清洗高防服务, 为您的业务保驾护航, 为您的客户提供极致体验. 加入社区 Telegram群组 可参与公益募捐或群内抽奖免费使用

The open source software community

All the developers who submitted PRs and created themes

Star History

Star History Chart

Extension points exported contracts — how you extend this code

GeoIPService (Interface)
GeoIPService 接口定义了获取地理位置信息的核心方法。 任何实现此接口的类型都可以作为地理位置服务提供者。 [6 implementers]
utils/geoip/geoip.go
IMessageSender (Interface)
(no doc) [8 implementers]
utils/messageSender/factory/meta.go
IOidcProvider (Interface)
(no doc) [4 implementers]
web/oauth/factory/meta.go
Option (FuncType)
Option mutates a Config value. Option 是用于修改 Config 的函数式选项。
pkg/metric/config.go
Func (FuncType)
Func 是 corn 调度器执行的任务函数。 调度器会为每次执行传入可取消的 context,便于任务在重载或关闭时尽快退出。
pkg/corn/corn.go
Handler (FuncType)
Handler 方法签名:返回 result (成功) 或 *JsonRpcError (失败)
pkg/rpc/registry.go
ConfigSubscriber (FuncType)
ConfigSubscriber handles config events
pkg/config/config.go
BindOption (FuncType)
BindOption 配置 Bind 行为。
web/rpc/jsonrpc/bridge.go

Core symbols most depended-on inside this repo

Add
called by 260
pkg/metric/tdigest.go
Error
called by 167
web/api/AuthSensitive.go
MakeError
called by 165
pkg/rpc/errors.go
GetDBInstance
called by 122
database/dbcore/dbcore.go
Set
called by 115
utils/safaMap.go
Close
called by 108
utils/geoip/geoip.go
FromTime
called by 101
database/models/UTCTime.go
RespondError
called by 88
web/api/Common.go

Shape

Function 915
Method 459
Struct 204
Interface 19
TypeAlias 11
FuncType 8

Languages

Go100%

Modules by API surface

web/nezha/proto/nezha.pb.go111 symbols
web/nezha/proto/nezha_grpc.pb.go76 symbols
web/api/public/mjpeg.go48 symbols
pkg/metric/dialect.go47 symbols
pkg/metric/store.go42 symbols
pkg/metric/config.go35 symbols
pkg/corn/corn.go29 symbols
pkg/metric/rollup_store.go22 symbols
utils/cloudflared/cloudflared.go20 symbols
pkg/config/config.go20 symbols
pkg/metric/improvements_test.go19 symbols
database/records/records.go19 symbols

Dependencies from manifests, versioned

filippo.io/edwards25519v1.2.0 · 1×
github.com/boombuler/barcodev1.0.1-0.20190219062 · 1×
github.com/bytedance/sonicv1.13.2 · 1×
github.com/bytedance/sonic/loaderv0.2.4 · 1×
github.com/cloudwego/base64xv0.1.5 · 1×
github.com/coreos/go-oidc/v3v3.15.0 · 1×
github.com/davecgh/go-spewv1.1.1 · 1×
github.com/dlclark/regexp2v1.11.4 · 1×
github.com/dop251/gojav0.0.0-2025100812365 · 1×
github.com/dop251/goja_nodejsv0.0.0-2025101516425 · 1×
github.com/gabriel-vasile/mimetypev1.4.8 · 1×
github.com/gin-contrib/ssev1.0.0 · 1×

For agents

$ claude mcp add komari \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact