RGB & AI Automation

How to Set Up Keyboard RGB Lighting Alerts for Coding Agents (Claude Code, Codex, Antigravity)

Futomi Hatano Updated November 2026 7 min read Windows 11 & 10

You hand a long task to Claude Code, Codex or Google Antigravity, switch to another window, and find out ten minutes later that the agent stopped to ask for permission. This guide shows how to make the keyboard or mouse on your desk glow orange when an agent needs you, green when it finishes and red when it fails, and how to send the same signals from your own build and test scripts on Windows.

Why Light Beats Sounds and Pop-ups

  • Nothing to hear: A chime gets lost under music, a call or headphones. A color change does not.
  • Glanceable: The keys under your hands are always in your peripheral vision, so you notice the change without switching windows.
  • It stays: A banner disappears in a few seconds. The light stays on for the duration you choose, so it is still there when you look up.

What You Need

  • A Windows 11 or Windows 10 PC with fTool Keyboard RGB Notifier from the Microsoft Store (every feature is free for 15 days).
  • A compatible device: a keyboard, mouse or other lighting device that supports Windows Dynamic Lighting, a wired VIA/QMK raw HID keyboard, a wired NuPhy S4 keyboard, or a Lofree Flow 2.
  • Your coding agent on the same PC: Claude Code, Codex (the ChatGPT desktop app or Codex CLI) or Google Antigravity. For your own scripts, PowerShell or the Command Prompt is enough.

Step-by-Step: Light Up for Your Coding Agents

1

Check That Your Device Lights Up

Open fTool Keyboard RGB Notifier and go to Devices. Every compatible keyboard and mouse on your PC is listed, and one is used automatically: the keyboard comes first when both are connected. Click Lighting test to see the device light up and return to your usual lighting. For a Dynamic Lighting device, turn on Dynamic Lighting in Windows Settings, and to keep alerts visible while another app is in front, move this app to the top of Settings > Personalization > Dynamic Lighting > Background light control.

The Devices page of fTool Keyboard RGB Notifier listing a Keychron Q1 Ultra 8K in use, a NuPhy Air75 V3, a Lofree Flow 2 and a Logitech G203 LIGHTSYNC mouse, each with a Lighting test button
2

Connect Claude Code, Codex and Google Antigravity

Go to Notification sources and click Enable integration on the card of each agent you use. The app adds its hooks to that agent’s own settings file (the path is shown on the card) and saves a backup of the file next to it first, so your other hooks are kept. Codex asks you to trust new hooks once: in the ChatGPT desktop app, open Settings > Hooks and click Trust for this app’s hooks, or check them with /hooks in Codex CLI. Each card shows whether the agent is connected and when its last event arrived, and offers Repair settings if an agent update breaks the connection.

The Notification sources page with Claude Code, Codex and Google Antigravity connected through Hooks, each card showing the path of the agent’s settings file and a Disconnect button

From now on all three agents report their state on their own: Running while they work, Action required when they wait for your permission or input, Completed when they finish and Failed when a tool or the task fails. Prompts, tool inputs and outputs, and workspace paths are not stored or sent anywhere; only the state is used.

3

Choose Colors and Durations

Go to Lighting rules. Each state has its own RGB color, effect (Solid, Slow breathing or Pulse), brightness and lighting duration, plus a blink rhythm for monochrome LED keyboards. The defaults:

  • Action required: orange, slow breathing, up to 10 minutes
  • Running: blue, slow breathing, up to 30 minutes
  • Completed: green, solid, 5 seconds
  • Failed: red, slow breathing, 60 seconds

The long durations are only a safety net: the next event from the same agent replaces the one on display, so the orange light turns back to blue once the action you approved has finished. The Lighting test buttons on the Dashboard show each rule on your device without waiting for an agent.

The Lighting rules page with Running in blue and Action required in orange, each with its RGB color, effect, brightness and lighting duration

Step-by-Step: Signal Builds and Scripts with the Local Web API

Anything you can run from a script can light the same device: a long build, a test suite, a video render or a backup. The app includes a small REST API that listens only on your own PC.

4

Copy the Address and the Token

On the Notification sources page, scroll to Local Web API. The badge shows the address it listens on, 127.0.0.1:39415 by default. Copy the Authentication token: every request needs it in an Authorization: Bearer header. The API is not exposed to your network and accepts requests only from the same Windows user. Under API request examples you will find ready-to-copy commands for PowerShell and the Command Prompt with your token already filled in.

The local Web API section with the authentication token, the accepted and rejected request counts, a ready-to-copy request example and the list of endpoints
5

Send an Event

Send a JSON body to POST /v1/events. Replace YOUR_TOKEN with your token. In PowerShell:

$headers = @{ Authorization = 'Bearer YOUR_TOKEN' }
Invoke-RestMethod -Uri 'http://127.0.0.1:39415/v1/events' -Method Post -Headers $headers -ContentType 'application/json' -Body '{"sourceId":"my-build","status":"success","label":"Build finished"}'

In the Command Prompt:

curl.exe -X POST "http://127.0.0.1:39415/v1/events" -H "Authorization: Bearer YOUR_TOKEN" -H "Content-Type: application/json" -d "{\"sourceId\":\"my-build\",\"status\":\"success\",\"label\":\"Build finished\"}"

The fields you will use most:

  • status (required): running, attention, success, failure or info light the device with the Running, Action required, Completed, Failed or Other notifications rule; cleared turns the event off.
  • label: the name shown on the Dashboard, up to 120 bytes of UTF-8.
  • detail: optional text for the event history, up to 1000 bytes. It does not change the lighting.
  • sourceId: who sent the event (local-api if omitted). A new event with the same sourceId replaces the previous one, so running followed by success leaves only the green light.
  • ttlSeconds: overrides the lighting duration of the rule for this event, up to 604800 seconds (7 days).
6

Wrap a Long Build or Test Run

This PowerShell script keeps the device blue while the build runs, then turns it green or red depending on the result. Replace dotnet build with your own command.

$api = 'http://127.0.0.1:39415/v1/events'
$headers = @{ Authorization = 'Bearer YOUR_TOKEN' }
function Send-Light($status, $label) {
    $body = @{ sourceId = 'my-build'; status = $status; label = $label } | ConvertTo-Json
    Invoke-RestMethod -Uri $api -Method Post -Headers $headers -ContentType 'application/json' -Body $body | Out-Null
}
Send-Light 'running' 'Build started'
dotnet build
if ($LASTEXITCODE -eq 0) { Send-Light 'success' 'Build finished' } else { Send-Light 'failure' 'Build failed' }

Every accepted request returns the event’s id. To turn one event off early, send POST /v1/events/{id}/clear. To check that the app is running, send GET /v1/health with the same token.

If Nothing Lights Up

The Local Web API section counts accepted and rejected requests and shows why the last one was rejected. A wrong or missing token returns 401, invalid JSON 400, and a field that is too long 422. Requests sent from web pages are refused with 403, and more than 120 requests a minute (shared with the agent hooks) return 429. If the app could not start the API because another app uses the port, click Retry. Also check that the lighting is not paused on the Dashboard.

Microsoft Store Verified App

fTool Keyboard RGB Notifier for Windows 11 & 10

Turn the keyboard or mouse on your desk into a status lamp for Claude Code, Codex and Google Antigravity, for the Windows notifications that matter, and for your own builds and scripts. Your usual lighting returns on its own.

One-Click Hooks for Claude Code, Codex & Antigravity Keyboards & Mice: Dynamic Lighting, VIA/QMK, NuPhy, Lofree Local Web API with Token Authentication One-Time Purchase