KumoApp

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Kumo app banner

Kumo

A calm desktop client for the Mihomo proxy core.

Go + MyGo app · React UI · Agent-friendly CLI

Go Powered by Mihomo

Features · Quick Start · Usage · Architecture · Docs · Roadmap


Overview

Kumo connects you through Mihomo without turning proxy management into a network operations dashboard. The first screen answers four questions: is Kumo connected, which mode is active, is the system proxy on, and which profile and nodes are in use. DNS, TUN, rules, logs, overrides and the routing topology stay one click away.

Features

Area What Kumo provides
Desktop app One Go binary built with MyGo: a native window with a React + coss ui frontend, a menu bar item and notifications.
Topology A React Flow canvas of entry → rules → groups → nodes, with selected paths, dynamic members, broken references and a text inspector.
Leaves no trace Quitting, or a crash caught by the guardian process, stops the core and clears the system proxy — only if Kumo still owns it.
Plays well with others Another app taking over the system proxy is shown, not fought; a port held by another program is named, with a free port offered.
CLI for humans and agents The same executable as kumo: stable commands, --json, dry-run, predictable exit codes.
Agent guidance Each page copies a ready prompt for a coding agent; the Kumo skill installs for Claude Code, Codex, Cursor, Gemini CLI and .agents.
First run A guided setup with an animated preview of each step.

Quick Start

Download the disk image from Releases, open Kumo and follow Setup. It finds a Mihomo you have, or downloads one.

From source

Requires Go 1.27+, Bun and, on Linux, WebKitGTK.

bun install
make dev          # live reload
make build        # package into build/
make check        # generate, go vet/test, typecheck, FSD and message checks

Usage

Group Pages
Daily Overview, Profiles, Proxies, Topology
Inspect Connections, Logs, Rules
Configure Core, System Proxy, DNS, TUN, Sniffer, Resources, Overrides
Kumo Agents, Settings, About
kumo status --json
kumo start
kumo proxies --json
kumo select Proxy "Tokyo 01"
kumo sysproxy on
kumo topology --issues
kumo prompt proxies           # a ready-made prompt for a coding agent
kumo -l                       # every command

Architecture

internal/domain          rules: runtime, system proxy ownership, profiles, overrides, config, topology
internal/application     use cases shared by the app, the CLI and the guardian
internal/infrastructure  storage, Mihomo client/launcher, system proxy, ports, processes
internal/interfaces      cli (kumo) and desktop (MyGo bindings, window, tray, quit path)
src/                     React frontend in Feature-Sliced Design: app, pages, widgets, features, entities, shared

The backend follows Domain-Driven Design; the frontend follows Feature-Sliced Design. See docs/README.md.

Documentation

Contributing

  1. Read AGENTS.md and the document under docs/ for your change.
  2. Keep business rules in internal/domain and internal/application; surfaces only call services.
  3. Run make check; for lifecycle changes also make e2e MIHOMO=<path>.
  4. Update docs/ in the same change when behavior, architecture, persistence, permissions or tests change.

License

Kumo is licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only). See LICENSE for the full text.

Third-party components bundled or used by Kumo may be licensed under different terms. See THIRD_PARTY_NOTICES.md.

Acknowledgements

Star History

Star History Chart

Documentation

Overview

Kumo is a calm desktop client for the Mihomo proxy core. One executable is the app, the kumo command (when invoked as kumo, or with arguments) and the guardian that cleans up after a crashed app.

Directories

Path Synopsis
cmd
kumo command
Command kumo is Kumo's command-line interface, built on its own for development and CI.
Command kumo is Kumo's command-line interface, built on its own for development and CI.
internal
application
Package application holds Kumo's use cases.
Package application holds Kumo's use cases.
domain/core
Package core models the Mihomo runtime that Kumo controls: how traffic is routed, how the core is reached, the settings Kumo owns in the generated configuration, and the lifecycle of one core session.
Package core models the Mihomo runtime that Kumo controls: how traffic is routed, how the core is reached, the settings Kumo owns in the generated configuration, and the lifecycle of one core session.
domain/inspect
Package inspect models what a running core reports about its work: connections, rules, logs, traffic and providers.
Package inspect models what a running core reports about its work: connections, rules, logs, traffic and providers.
domain/override
Package override models the ordered patches Kumo applies on top of the current profile before handing the configuration to Mihomo.
Package override models the ordered patches Kumo applies on top of the current profile before handing the configuration to Mihomo.
domain/preferences
Package preferences models the app-level choices of the user, apart from how the core runs.
Package preferences models the app-level choices of the user, apart from how the core runs.
domain/profile
Package profile models the Mihomo configurations the user imports: local files, remote subscriptions and Sub-Store outputs, with the metadata Kumo keeps about each.
Package profile models the Mihomo configurations the user imports: local files, remote subscriptions and Sub-Store outputs, with the metadata Kumo keeps about each.
domain/proxy
Package proxy models the proxy groups and nodes of a configuration, as the running core reports them or as a profile declares them.
Package proxy models the proxy groups and nodes of a configuration, as the running core reports them or as a profile declares them.
domain/runtimeconfig
Package runtimeconfig builds the configuration Mihomo runs with: the current profile, the user's overrides in order, and the settings Kumo controls, which always win.
Package runtimeconfig builds the configuration Mihomo runs with: the current profile, the user's overrides in order, and the settings Kumo controls, which always win.
domain/systemproxy
Package systemproxy models the operating system's proxy settings as Kumo sees them: what Kumo wants applied, what it applied, what the system shows now, and whether Kumo still owns it when another app may have changed it.
Package systemproxy models the operating system's proxy settings as Kumo sees them: what Kumo wants applied, what it applied, what the system shows now, and whether Kumo still owns it when another app may have changed it.
domain/topology
Package topology turns a configuration into the graph of how traffic flows through it: the outbound mode, the rules that pick a policy, the proxy groups that pick a node, and the proxies and providers at the end.
Package topology turns a configuration into the graph of how traffic flows through it: the outbound mode, the rules that pick a policy, the proxy groups that pick a node, and the proxies and providers at the end.
infrastructure/clilink
Package clilink puts the kumo command on the user's PATH by linking it to the binary inside the app.
Package clilink puts the kumo command on the user's PATH by linking it to the binary inside the app.
infrastructure/fetch
Package fetch downloads remote profiles and overrides.
Package fetch downloads remote profiles and overrides.
infrastructure/jsoverride
Package jsoverride runs JavaScript overrides: scripts that define main(config) and return the changed configuration, as Clash Verge's "scripts" do.
Package jsoverride runs JavaScript overrides: scripts that define main(config) and return the changed configuration, as Clash Verge's "scripts" do.
infrastructure/mihomo
Package mihomo talks to the Mihomo core: it launches the process and calls its external controller.
Package mihomo talks to the Mihomo core: it launches the process and calls its external controller.
infrastructure/pac
Package pac serves a proxy auto-config script on loopback.
Package pac serves a proxy auto-config script on loopback.
infrastructure/paths
Package paths names every file Kumo keeps.
Package paths names every file Kumo keeps.
infrastructure/ports
Package ports finds out whether the ports Kumo needs are free, and who holds them when they are not.
Package ports finds out whether the ports Kumo needs are free, and who holds them when they are not.
infrastructure/process
Package process inspects and ends processes by pid, the way Kumo finds a core it launched in an earlier run or from another surface.
Package process inspects and ends processes by pid, the way Kumo finds a core it launched in an earlier run or from another surface.
infrastructure/skills
Package skills installs Kumo's bundled Agent Skills into the skill directories of coding agents, so they know how to drive the kumo CLI.
Package skills installs Kumo's bundled Agent Skills into the skill directories of coding agents, so they know how to drive the kumo CLI.
infrastructure/storage
Package storage reads and writes Kumo's JSON documents atomically, under a lock shared by the app, the CLI and the service.
Package storage reads and writes Kumo's JSON documents atomically, under a lock shared by the app, the CLI and the service.
infrastructure/sysproxy
Package sysproxy implements systemproxy.Platform for each operating system, and an in-memory one that tests and simulations drive.
Package sysproxy implements systemproxy.Platform for each operating system, and an in-memory one that tests and simulations drive.
interfaces/cli
Package cli is the kumo command: the same use cases as the app, for people at a terminal and for coding agents.
Package cli is the kumo command: the same use cases as the app, for people at a terminal and for coding agents.
interfaces/desktop
Package desktop exposes Kumo's use cases to the app's pages: each bound service is a thin adapter over the application layer, and Go events carry what changes on its own (status, traffic, logs, contention).
Package desktop exposes Kumo's use cases to the app's pages: each bound service is a thin adapter over the application layer, and Go events carry what changes on its own (status, traffic, logs, contention).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL