百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
K

Kiri

> DevOps
开源

透过本地发展港口的迷雾看清真相

561 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

透过本地发展港口的迷雾看清真相

English | 简体中文 | 日本語

High-performance local development port management CLI, powered by Rust


Kiri Overview

Kiri is a high-performance CLI for managing local development ports, powered by Rust. It helps you quickly see which local services are running, which ports they use, and handle the process behind a port when needed.

Run ports to see a focused local development service overview: port, process, PID, memory usage, project name, detected framework, uptime, and health status.

Run ports logs -f to follow the matched process logs. Kiri keeps dense framework output readable with ANSI colors for timestamps, log levels, process IDs, trace IDs, source classes, HTTP values, and structured fields.

Meet Kiri

The default ports terminal view opens with a cute Kiri ASCII logo before the port table:

      .-~~~~-.
   .-(  ●  ● )-.
  (  •   ⌣   •  )  Kiri is watching 5 ports, 5 ports active
   '-.        .-'
      '------'

Core Usage

  • View local development services and their ports: ports
  • View developer background processes: ports ps shows development-related processes that may not listen on a port, such as MCP Server processes started by Codex, Claude Code, or other AI coding tools. Use it when you want to see memory usage or find long-running tool processes outside the port table.
  • Quickly kill the process / PID behind a port: ports kill
  • Follow logs for the process listening on a port: ports logs -f
  • View all ports: ports --all

Install

Kiri ships prebuilt release artifacts for MacOS, Linux x64, and Windows x64. Install with npm, Homebrew, or the GitHub Release install scripts:

bash
# npm
npm install -g @gaossr/kiri@latest

# Recommended on MacOS with Homebrew
brew install gaossr/tap/kiri

# MacOS / Linux install script
curl -fsSL https://raw.githubusercontent.com/GaoSSR/Kiri/main/scripts/install.sh | bash

Windows users can install with PowerShell:

powershell
irm https://raw.githubusercontent.com/GaoSSR/Kiri/main/scripts/install.ps1 | iex

On MacOS, Homebrew is the recommended install method. npm and the install scripts use prebuilt native binaries and do not compile Rust locally.

Commands

…

Status Labels

Kiri uses these status labels in the ports table:

  • healthy: the process is running and still has a normal parent process.
  • orphaned: the process is still alive and may still be listening on a port, but the parent process that started it has already exited. This is an orphan process, not a zombie process.
  • zombie: the process has already exited, but the operating system still has a leftover process record that has not been reaped by its parent.

In practice, orphaned means "this process is still running, but its original launcher is gone." That can happen after closing a terminal, IDE task, script runner, Codex session, or Claude Code session while a child server process keeps running.

Platform Support

Platform Status
MacOS arm64/x64 Supported
Linux x64 Supported
Windows x64 Supported
Linux arm64 / Windows arm64 Planned

On MacOS, Kiri uses lsof, ps, tail, MacOS log commands, and optional Docker metadata. Linux uses ss, ps, /proc, and optional Docker metadata. Windows uses PowerShell/CIM and Get-NetTCPConnection; process working directories are best-effort from executable paths. Docker is optional; if Docker is unavailable or no containers are running, Kiri continues without Docker mappings.

ports intentionally renders the Kiri ASCII logo and ANSI terminal output by default. ports logs adds ANSI colors for common development log formats, including Java, Python, Go, Node.js, logfmt, and JSON logs. For services started through a terminal, a stable file-backed log such as .dev-logs/service.log lets ports logs -f follow output from another process.

The default ports table stays focused on developer ports and includes Mem, so day-to-day checks do not require the broader ports ps process view.

Development

For maintainers and contributors working from source:

bash
cargo fmt
cargo test
cargo clippy --all-targets -- -D warnings
cargo build --release --bin ports
scripts/perf-smoke.sh
scripts/verify-release.sh v0.1.24
cargo run --bin ports
cargo run --bin ports -- --all
cargo run --bin ports -- ps

Project Resources

  • Changelog
  • Contributing guide
  • Security policy

Acknowledgements

Kiri was inspired by port-whisperer, especially the idea of making local development ports easier to see, understand, and clean up.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustclideveloper-toolsdockerlinux

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理