Approval Methods
When a policy requires user approval, Tollgate supports multiple ways to present the approval request.Terminal (Default)
The terminal approval method prompts directly in your terminal. Best for local development when you’re actively watching the output.Terminal Shortcuts
| Key | Action |
|---|---|
y | Approve once (no session grant) |
5 | Approve and grant for 5 minutes |
15 | Approve and grant for 15 minutes |
30 | Approve and grant for 30 minutes |
s | Approve for entire session |
n or Enter | Deny |
Advanced Syntax
Specify scope with duration:Interactive (Web UI)
The interactive approval method serves a web UI where you can review and approve requests from your browser. Useful when:- You’re not actively watching the terminal
- You want a more visual approval experience
- You’re running Tollgate in the background
Starting with Interactive Mode
Using the Web UI
- Open
http://localhost:9847in your browser - Pending approvals appear in real-time
- Review the request details (server, tool, arguments, risk level)
- Click an approval button:
- Deny - Reject the request
- Allow Once - Approve without session grant
- Allow 5 min - Approve with 5-minute session grant
- Allow 15 min - Approve with 15-minute session grant
- Allow Session - Approve for entire session
Web UI Features
- Real-time updates via Server-Sent Events
- Risk-level coloring (safe=green, read=blue, write=yellow, destructive/dangerous=red)
- Countdown timer showing time until auto-deny
- Full argument display for reviewing exactly what the agent wants to do
Configuration
Set the approval method intollgate.yaml:
Comparison
| Feature | Terminal | Interactive |
|---|---|---|
| Requires terminal focus | Yes | No |
| Browser required | No | Yes |
| Keyboard shortcuts | Yes | No |
| Visual risk indicators | Color-coded text | Color-coded badges |
| Multiple pending requests | One at a time | Queue visible |
| Best for | Active development | Background operation |