kmsg

作者 channprj已验证

Unofficial KakaoTalk CLI and native MCP server for macOS — read, watch, and send messages via Accessibility automation.

253
Stars
41
Forks
Swift
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/channprj/kmsg

快速入门

使用 kmsg 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

kmsg — macOS용 카카오톡 CLI 및 MCP 서버

License: MIT Total downloads

프로젝트 홈페이지 · English

kmsg logo

kmsg는 macOS용 비공식 카카오톡 CLI이자 네이티브 MCP 서버입니다. macOS 손쉬운 사용 API로 메시지를 읽고, 감시하고, 전송하며 로컬 자동화와 AI 에이전트를 위한 구조화된 출력을 제공합니다.

Disclaimer: kmsg는 Kakao Corp. 의 공식 도구가 아닙니다. 사용자는 본인 계정/환경에서 관련 법규, 서비스 약관, 회사 보안 정책을 준수할 책임이 있습니다. 이 도구 사용으로 발생할 수 있는 계정 제한, 오작동, 데이터 손실, 기타 손해에 대한 책임은 사용자에게 있습니다. LOCO Protocol 이 아닌 AX 를 사용한 이유와 계정 제재 가능성에 대한 제 개인적인 판단은 왜 KakaoTalk 의 LOCO Protocol 을 사용하지 않나요? 항목을 참고해 주세요.

AX(Accessibility API)를 핵심으로 개발

kmsg는 macOS의 공식 Accessibility API, 즉 AX를 핵심 자동화 계층으로 사용해 개발되었습니다. Swift에서 ApplicationServicesAXUIElement를 직접 호출해 사용자가 보는 KakaoTalk 창, 채팅 목록, 메시지 영역, 입력창을 탐색하고 제어합니다. 키보드와 마우스 입력이 필요한 동작은 CGEvent를 사용합니다.

CLI / MCP
  → KakaoTalkApp
  → UIElement
  → AXUIElement
  → macOS용 KakaoTalk
  • UIElement는 AX 속성 조회, 계층 탐색, 값 설정, 액션 실행을 Swift 인터페이스로 감쌉니다.
  • AXActionRunner는 AX 액션과 CGEvent 기반 입력을 실행합니다.
  • AXPathCache는 자주 쓰는 UI 경로를 캐시하고, KakaoTalk UI가 바뀌어 경로가 유효하지 않으면 다시 탐색할 수 있게 합니다.

이 구조는 kmsg 자체가 KakaoTalk 서버나 비공개 LOCO 프로토콜에 직접 연결하지 않고, 사용자가 실제로 조작하는 앱 UI를 통해 동작한다는 뜻입니다. 따라서 설치한 kmsg 바이너리에 macOS 손쉬운 사용 권한이 필요하며, KakaoTalk UI 구조가 바뀌면 일부 탐색 경로가 영향을 받을 수 있습니다. 자세한 설계 배경과 제약은 아키텍처 문서를 참고하세요.

데모

https://github.com/user-attachments/assets/c620b2e3-7106-40fa-86d1-ed847e3b1a6f

실사용 후기

실사용 후기: 헤르메스 에이전트 5개로 뉴스 큐레이션부터 주식 매매까지 자동화한 방법 전부 공개합니다

Builder Josh: 헤르메스 에이전트 5개로 뉴스 큐레이션부터 주식 매매까지 자동화한 방법 전부 공개합니다 (AI 엔지니어 샘 호트만님) — 17:00부터 재생

실사용 후기: 나만의 Hermes 시스템 구축 방법

샘 호트만: 나만의 Hermes 시스템 구축 방법 (문제정의부터 구축까지, 해외 AI 인사이트 발굴하기)

주요 기능

  • 채팅 목록을 조회하고 재사용 가능한 로컬 chat_id를 생성합니다.
  • 최근 메시지를 읽거나 새 메시지를 실시간으로 감시합니다.
  • 화면에 표시되는 KakaoTalk UI를 제어해 텍스트와 이미지를 전송합니다.
  • 구조화된 JSON을 stdout으로 출력하고 AX 추적 로그는 stderr로 분리합니다.
  • 읽기, 텍스트 전송, 이미지 전송 도구를 제공하는 native stdio MCP 서버를 실행합니다.
  • background-safe 읽기, 창 레이아웃, 복구 모드, self-healing AX path cache를 지원합니다.

요구사항

  • macOS 13 이상
  • macOS용 KakaoTalk
  • 설치된 kmsg 바이너리에 대한 손쉬운 사용 권한

설치

Homebrew 설치를 권장합니다.

brew install channprj/tap/kmsg

이미 설치했다면 다음 명령으로 업데이트합니다.

kmsg update

kmsg update는 필요하면 Homebrew를 설치하고, 포뮬러를 설치하거나 업그레이드한 뒤, 직접 설치한 바이너리를 Homebrew 명령으로 연결합니다.

직접 다운로드와 소스 빌드 방법은 USAGE.md를 참고하세요.

빠른 시작

kmsg status
kmsg chats
kmsg read "채팅방 이름" --limit 20
kmsg send "채팅방 이름" "안녕하세요" --dry-run

kmsg status는 손쉬운 사용 권한을 요청하고, 필요하면 KakaoTalk을 실행한 뒤 로그인 상태를 확인합니다. 마지막 명령은 dry run이므로 실제 메시지를 전송하지 않습니다.

코딩 에이전트 스킬

저장소에 포함된 kmsg 스킬을 설치하면 Claude Code와 Codex가 채팅방을 구조화된 JSON으로 찾고, 안정적인 chat_id로 메시지를 읽고, 전송 전에 dry-run을 수행하는 공통 워크플로우를 사용할 수 있습니다. 먼저 위의 Homebrew 명령으로 kmsg를 설치한 다음 스킬을 전역 설치하세요.

npx skills add channprj/kmsg --skill kmsg --agent claude-code codex -g -y

호출 방법은 에이전트마다 다음과 같습니다.

에이전트호출
Claude Code/kmsg
Codex$kmsg
/kmsg 출시 준비 채팅방의 최근 메시지 10개를 요약해줘
$kmsg 출시 준비 채팅방에 '배포 완료했습니다.'라고 보내줘

스킬은 텍스트 전송 전에 항상 dry-run으로 수신자와 내용을 확인합니다. 사용자가 명시적으로 전송을 요청한 경우에만 실제 send를 한 번 실행하며, 초안 작성이나 미리보기 요청은 전송하지 않습니다. send-image에는 dry-run이 없으므로 명확한 수신자와 실제 이미지 전송 요청이 모두 있어야 실행합니다. 설치 후 스킬이 보이지 않으면 에이전트 세션을 다시 시작하세요.

자세한 문서

자주 묻는 질문

kmsg는 무엇인가요?

kmsg는 macOS용 비공식 오픈소스 카카오톡 CLI이자 네이티브 MCP 서버입니다. 사용자, 스크립트, AI 에이전트가 명령줄에서 카카오톡 메시지를 읽고, 감시하고, 전송할 수 있게 해줍니다.

kmsg는 카카오톡 공식 도구인가요?

아닙니다. kmsg는 Kakao Corp.와 제휴하거나 Kakao Corp.의 보증을 받은 도구가 아니며, 독립적으로 관리되는 오픈소스 프로젝트입니다.

어떤 운영체제를 지원하나요?

kmsg는 macOS 13 이상과 macOS용 KakaoTalk을 필요로 합니다. Windows, Linux, Android, iOS는 지원하지 않습니다.

kmsg는 카카오톡에 어떻게 접근하나요?

Apple의 macOS 손쉬운 사용 API를 통해 화면에 표시되는 KakaoTalk 애플리케이션을 제어합니다. KakaoTalk의 비공개 LOCO 프로토콜은 구현하지 않습니다.

MCP 서버가 포함되어 있나요?

네. 네이티브 kmsg mcp-server 명령은 MCP 호환 클라이언트와 AI 에이전트에 읽기, 텍스트 전송, 이미지 전송 도구를 stdio로 제공합니다.

kmsg는 어떻게 설치하나요?

brew install channprj/tap/kmsg를 실행해 Homebrew로 설치할 수 있습니다. 직접 다운로드와 소스 빌드 방법은 사용법에서 확인할 수 있습니다.

영감

이 프로젝트는 steipete와 그의 imsg, 그리고 OpenClaw에서 큰 영감을 받았습니다.

라이선스

kmsgMIT License로 제공됩니다.

常见问题

What is kmsg?

kmsg is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by channprj. Unofficial KakaoTalk CLI and native MCP server for macOS — read, watch, and send messages via Accessibility automation. It has 253 GitHub stars.

Is kmsg safe to use?

Yes. kmsg passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install kmsg?

Clone the repository with "git clone https://github.com/channprj/kmsg" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is kmsg written in?

kmsg is primarily written in Swift. It is open-source under channprj on GitHub, so you can review or fork the full source.

Are there alternatives to kmsg?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh kmsg against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情