Greenlight Setup Guide

Greenlight is mission control for your AI coding agents. It launches your agent in yolo mode so it never blocks on a terminal prompt. Greenlight's permission engine intercepts all reads, writes, network IO, and shell commands — routing them to your phone for approval. Smart rules auto-approve trusted actions so your agents keep working. When something needs your attention, you handle it from anywhere.

Supported Agents

What You'll Need

Step 1: Get Your Device ID

Open Greenlight on your phone and go to the About tab. Tap your Device ID to copy it to the clipboard.

Step 2: Install greenlight-cli

curl -sSL https://aigreenlight.app/install.sh | bash

This downloads the latest binary for your system and installs it to /usr/local/bin.

Register your device ID (you only need to do this once):

greenlight register YOUR_DEVICE_ID

You can also pass --device-id as a flag or set the GREENLIGHT_DEVICE_ID environment variable.

Step 3: Set Your Default Agent

Tell Greenlight which agent you want to use:

greenlight agent claude

Supported values: claude, copilot, cursor, codex, pi. You only need to do this once — the setting is saved to your config.

Step 4: Launch

cd your-project
greenlight

That's it. greenlight-cli handles everything automatically:

To resume a previous session:

greenlight --resume SESSION_ID

Step 5: Test It

Ask your agent to do something that requires permission, like writing a file:

echo "test" > /tmp/greenlight-test.txt

You should see a request appear on your phone. Tap Allow and the agent will continue. If you tap Always Allow, a rule is created and the agent won't ask again for that class of command in this project.

How the Rules Work

Rules are the core of the system. Tapping "Always Allow" doesn't just approve the request — it generates a pattern that auto-approves future matching commands without interrupting you.

Pattern generation

Patterns are subcommand-aware. The system knows that git push and git status are different operations:

Destructive command safety

Commands like rm, sudo, kill, and chmod use exact matching. Granting rm -rf /tmp/coverage creates a rule that matches only that exact string — not rm -rf /home, not rm -rf /tmp/coverage /etc.

Compound commands

When the agent runs git add . && git commit -m "msg" && git push, the system splits it into three segments and generates a separate pattern for each. All segments must have matching rules for the compound command to auto-approve. If you've granted git add and git commit but not git push, the compound command still comes to your phone.

In the app, each segment is color-coded by risk (green/orange/red) and segments already covered by rules show a checkmark overlay — so you can see at a glance which part of the command is the one that needs your attention.

File operations

For Read, Write, and Edit tools, patterns match on the directory. Granting an edit to /home/user/project/src/main.go creates the pattern Edit(/home/user/project/src/**), which covers future edits in that directory.

Talk to Your Agent from Your Phone

The Activity tab in the app shows an input bar at the bottom. Anything you type is sent directly to your agent session as if you typed it at the terminal.

Use this to:

Greenlight Pro adds push notifications, voice input, Pull the Plug, and temporary grants.

Tips

Troubleshooting

See the troubleshooting section of the support page for common issues.

Questions?

Email support@aigreenlight.app.