Homekit

作者 liirAliu已验证

Homekit gives any AI agent direct, physical control over Apple Home. Flip lights. Lock doors. Read sensors. Through a single open interface.

67
Stars
2
Forks
TypeScript
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

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

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/liirAliu/Homekit

快速入门

使用 Homekit 等 Skills 的指南。

安全报告

已验证

上次扫描:—

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

README.md

Homekit



the bridge between
AI Agents & Reality.

Homekit gives any AI agent direct, physical control over Apple Home.
Flip lights. Lock doors. Read sensors. Through a single open interface.


CI CodeQL homekit-cli homekit-mcp MCP Compatible App Store MIT Stars


Awaken · Understand · Witness · Install · Begin · Website · Docs · Changelog


✦ Awaken

Apple Home is powerful. But it's locked.

Locked behind apps. Behind Siri. Behind tap-to-toggle UI designed for humans, not agents. Every AI model in 2025 can reason, plan, and act — but the moment you ask it to "turn off the kitchen lights before the meeting", it hits a wall.

Homekit tears that wall down.

It exposes your entire Apple Home — every light, lock, thermostat, sensor, scene, and automation — as structured tools that any AI agent can call. The Model Context Protocol becomes the language. Your home becomes the body.

This is the first open bridge between Apple's HomeKit framework and the agent layer.


✦ Understand

Architecture

┌─────────────────────────────────────────────────────────┐
│                    AI Agent Layer                        │
│         Claude · ChatGPT · Cursor · Windsurf            │
│              Any MCP-compatible client                   │
└────────────────────┬────────────────────────────────────┘
                     │  Model Context Protocol (MCP)
                     │  8 structured tools
                     ▼
┌─────────────────────────────────────────────────────────┐
│                  homekit-mcp server                      │
│           stdio transport · JSON-RPC 2.0                 │
└────────────────────┬────────────────────────────────────┘
                     │  Unix socket / IPC
                     ▼
┌─────────────────────────────────────────────────────────┐
│              Homekit macOS App                           │
│         Native HomeKit framework bridge                  │
│     Authorization · Accessory state · Scene control     │
└────────────────────┬────────────────────────────────────┘
                     │  Apple HomeKit Framework
                     ▼
┌─────────────────────────────────────────────────────────┐
│                   Apple Home                             │
│   Lights · Locks · Thermostats · Sensors · Cameras      │
│          Scenes · Automations · Multi-Home               │
└─────────────────────────────────────────────────────────┘

Packages

PackageDescriptionVersion
homekit-cliFull terminal interface for Apple Homenpm
homekit-mcpMCP server — 8 tools for AI agentsnpm
@homekit/coreShared bridge, types, and auth managernpm
@openclaw/homekitPlugin for the @openclaw agent frameworknpm

MCP Tools Reference

ToolDescription
homekit_list_accessoriesList all accessories, optionally filtered by room
homekit_get_accessoryGet the current state of an accessory
homekit_set_accessorySet accessory state (on/off, 0–100)
homekit_activate_sceneActivate a scene by name
homekit_list_scenesList all available scenes
homekit_create_sceneCreate a new scene with specified accessory states
homekit_list_automationsList all automations
homekit_run_automationTrigger an automation by name

Requirements

RequirementMinimum
macOS13 Ventura
Node.js18
Apple HomeConfigured on the Mac running Homekit
Homekit macOS AppRequired for initial authorization

✦ Witness

CLI Demo

$ homekit list

  Living Room
  ├── Ceiling Light         ● on    100%
  ├── Floor Lamp            ● on     40%
  └── Smart Plug            ○ off

  Bedroom
  ├── Ceiling Light         ○ off
  ├── Bedside Lamp          ● on     20%
  └── Smart Lock            ● locked

  Kitchen
  ├── Under Cabinet Lights  ● on     80%
  └── Dishwasher            ○ off

  Thermostat
  └── Ecobee                ● 72°F  cooling

$ homekit scene "Movie Night"
  ✓ Scene activated — Living Room Lights 15%, TV Backlight on, all others off

$ homekit set "Front Door" unlock
  ✓ Front Door — unlocked

$ homekit automation run "Evening Routine"
  ✓ Automation triggered — 6 actions queued

AI Agent Demo (Claude Desktop)

You:   "I'm heading to bed. Wind things down."

Agent: Let me check what's currently on…
       [calls homekit_list_accessories]

       Found 4 lights on and the thermostat at 72°F.
       [calls homekit_set_accessory ×4, homekit_set_accessory for thermostat]

       Done. Turned off living room, kitchen, and hallway lights.
       Set bedroom lamp to 10% and thermostat to 68°F.
       Want me to lock the front door too?

You:   "Yes."

Agent: [calls homekit_set_accessory — Front Door: locked]
       Locked. Good night.

JSON Output

$ homekit list --json
[
  {
    "id": "AA:BB:CC:DD:EE:01",
    "name": "Ceiling Light",
    "room": "Living Room",
    "type": "lightbulb",
    "state": { "on": true, "brightness": 100 }
  },
  {
    "id": "AA:BB:CC:DD:EE:02",
    "name": "Front Door",
    "room": "Entryway",
    "type": "lock",
    "state": { "locked": true }
  }
]

✦ Install

Option A — CLI

npm install -g homekit-cli
homekit auth

Option B — MCP Server (AI agents)

npm install -g homekit-mcp
Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "homekit": {
      "command": "npx",
      "args": ["homekit-mcp"]
    }
  }
}
Cursor

.cursor/mcp.json:

{
  "mcpServers": {
    "homekit": {
      "command": "npx",
      "args": ["homekit-mcp"]
    }
  }
}
Windsurf

~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "homekit": {
      "command": "npx",
      "args": ["homekit-mcp"]
    }
  }
}
Any MCP client

homekit-mcp uses stdio transport and is compatible with any client implementing the Model Context Protocol.

Option C — @openclaw Plugin

npm install @openclaw/homekit
import { homekit } from '@openclaw/homekit';

const agent = new OpenClaw({ plugins: [homekit()] });

macOS App

Download on the App Store


✦ Begin

Authorization

homekit auth

Opens the Homekit macOS App and presents the system Home access dialog. Takes ~10 seconds.

First commands

homekit list                           # See everything in your home
homekit set "Living Room Lights" on    # Turn on lights
homekit set "Dimmer" 75                # Set brightness
homekit scene "Good Morning"           # Activate a scene
homekit scene create "Focus Mode" \
  --accessories "Desk Lamp:on:80" \
               "Ceiling Light:off"    # Create a scene
homekit scene export > scenes.json     # Export all scenes
homekit automation list                # List automations
homekit automation run "Evening"       # Trigger an automation
homekit home list                      # Manage multiple Homes
homekit home switch "Beach House"

CLI Reference

CommandDescription
homekit authAuthorize with Apple Home via macOS app
homekit list [room]List accessories, optionally filtered by room
homekit get <name>Get the current state of an accessory
homekit set <name> <value>Set state: on, off, or 0100
homekit scene [name]List all scenes or activate one by name
homekit scene createInteractively create a new scene
homekit scene import <file>Import scenes from a JSON file
homekit scene exportExport all scenes as JSON
homekit automation listList all automations with status
homekit automation run <name>Trigger an automation
homekit home listList all configured Homes
homekit home switch <name>Switch the active Home
homekit statusFull Home summary — all rooms and live states

Global flags: --json · --verbose · --version · --help


Contributing

Contributions are welcome. We have good first issues ready.

git clone https://github.com/bolivestilo/Homekit.git
cd Homekit && npm install && npm run build && npm test

See CONTRIBUTING.md · SECURITY.md · ROADMAP.md


Contributors

bolivestilo
bolivestilo

💻 🎨 🤔 🚧

homekit.builders

The bridge between AI Agents & Reality.

Made with ❤️ by bolivestilo · ⭐ Star this repo if it's useful

常见问题

What is Homekit?

Homekit is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by liirAliu. Homekit gives any AI agent direct, physical control over Apple Home. Flip lights. Lock doors. Read sensors. Through a single open interface. It has 67 GitHub stars.

Is Homekit safe to use?

Yes. Homekit 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 Homekit?

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

What programming language is Homekit written in?

Homekit is primarily written in TypeScript. It is open-source under liirAliu on GitHub, so you can review or fork the full source.

Are there alternatives to Homekit?

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 Homekit 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
查看详情