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.
Open Greenlight on your phone and go to the About tab. Tap your Device ID to copy it to the clipboard.
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.
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.
cd your-project
greenlight
That's it. greenlight-cli handles everything automatically:
To resume a previous session:
greenlight --resume SESSION_ID
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.
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.
Patterns are subcommand-aware. The system knows that git push and git status are different operations:
go build ./cmd/foo → pattern Bash(go build **) — matches any go buildgit push origin main → pattern Bash(git push **) — matches any git push, but not git resetaws s3 cp file.txt s3://bucket/ → pattern Bash(aws s3 cp **) — three-word prefix for AWS/GCloudCommands 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.
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.
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.
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.
See the troubleshooting section of the support page for common issues.
Email support@aigreenlight.app.