Overview
The Settings Page is your control center for configuring Agent Sentinel. Manage policies that control agent behavior, generate API keys for SDK integration, and set up notification channels.Three main tabs
- Policies - Budget limits, denied actions, rate limits, approval rules
- API Keys - Generate and manage authentication tokens
- Notifications - Configure alert channels (Slack, Email, Webhooks)
Policies tab
Policy list
View all configured policies with:- Name - Policy identifier
- Description - What it does
- Scope - Global, agent-specific, or run-specific
- Enabled - Toggle switch (green=on, gray=off)
- Last Updated - Timestamp of last modification
- Enable/Disable - Toggle switch (instant)
- Edit - Modify policy configuration
- Delete - Remove policy (with confirmation)
- Test Alert - Send test notification
Create new policy
Click Create Policy to open policy builder:Basic settings
- Name (required) - Unique identifier
- Example: “Production Safety”, “Dev Budget”, “Rate Limits”
- Description (optional) - What this policy does
- Example: “Strict limits for production agents”
- Enabled - Start enabled or disabled
- Scope - Who this applies to:
- Global - All agents
- Agent-specific - One agent (enter agent_id)
- Run-specific - One run (enter run_id)
Budget limits
Set cost constraints: Session budget (USD)- Limit for entire application session
- Example: $50.00
- Applies across all runs in a session
- Limit per individual run
- Example: $5.00
- Resets for each new run
- Limit per action type
- Add multiple action budgets
- Example:
call_llm: $0.50search_web: $0.10transfer_funds: $0.00 (effectively blocks if > 0)
- SDK raises
BudgetExceededError - Action is blocked before execution
- Intervention is logged
Action control lists
Denied actions:- Actions that are completely blocked
- Add action names one per line or comma-separated
- Example:
- Matched exactly (case-sensitive)
- If specified, only these actions are permitted
- All other actions are blocked
- Use for strict security
- Example (read-only mode):
- Leave empty to disable allowlist mode
- SDK raises
PolicyViolationError - Action is blocked before execution
- Intervention is logged with type
HARD_BLOCK
Rate limiting
Limit action frequency to prevent runaway agents: Add rate limit:- Action name - Which action to limit
- Max count - Maximum calls allowed
- Window (seconds) - Time window for count
- SDK raises
PolicyViolationError - Action is blocked before execution
- Intervention is logged with type
RATE_LIMITED
Human approval settings
Configure when actions require human approval: Required approval actions:- List of actions that must be approved
- Example:
- Auto-require approval if action cost > threshold
- Example: $100.00
- Any action costing more than threshold requires approval
- How long to wait for human decision
- Example: 600 (10 minutes)
- After timeout, action is blocked with
TimeoutError
- Who should be notified for approvals
- Comma-separated email list
- Example:
- Receives email notifications for approval requests
- SDK creates approval request via platform
- Blocks and waits for human decision
- If approved, action executes
- If rejected or timeout, raises error
- Intervention is logged with type
APPROVAL_REQUIRED
Alert configuration
Set up notifications when policy is triggered: Alert emails:- Email addresses to notify
- Comma-separated
- Example:
ops@company.com, cto@company.com
- Notify when budget reaches X% of limit
- Example: 80
- Sends email when 80% of budget is consumed
- Checkbox to enable failure alerts
- Sends email when action is blocked by this policy
- Useful for monitoring security violations
- Send test email to verify configuration
- Click to send immediately
- Check inbox for delivery
Prose / YAML / JSON authoring
The policy editor accepts policy source in four formats: YAML, JSON, Markdown, or plain English prose. Paste your source into the editor and the panel callsPOST /api/v1/policies/compile on every blur.
Errors show as red squiggles at the offending key. Warnings show as yellow callouts (e.g., overlap between
allowed_actions and denied_actions, approval_* fields set without require_approval=true, or “policy compiled from prose by Gemini — review every field”). Commit only when ok: true.
Full reference: SDK → Prose policies.
Version history & rollback
Every successful policy update creates an immutablePolicyVersion snapshot. The version history panel on the right side of each policy shows:
- Version number, status (
active,archived,draft,in_review) - Author and reviewer (with avatar)
- Change summary (“Updated: denied_actions, approval_threshold_usd”)
- Relative timestamp (“5m ago”, “2h ago”)
- Diff button — opens side-by-side YAML diff against the previous version
- Rollback button — copies that version’s
policy_databack onto the active policy and records the rollback as a new version
Evidence graph viewer
For policies withevidence_requirements, commit_actions, or grounding_rules, the policy editor renders an Evidence DAG using ReactFlow + dagre auto-layout:
- Evidence nodes (blue) — actions that produce evidence
- Commit nodes (red) — actions that require prior evidence and run with grounding constraints
- Plain nodes (gray) — actions with no evidence relationship
- Evidence edges — “X must run before Y”
- Grounding edges (toggleable) — field-level constraints like “issue_refund.amount must equal lookup_order.amount”
Policy precedence
When multiple policies apply, most restrictive wins:- Run-specific (highest priority)
- Agent-specific
- Global (lowest priority)
- Global policy: $10 run budget
- Agent-specific policy: $5 run budget
- Result: $5 limit applies (most restrictive)
Policy sync to SDK
Policies sync to SDK automatically:- SDK calls
PolicyEngine.enable_remote_sync() - Platform endpoint
/api/v1/policies/syncreturns enabled policies - SDK caches locally
- Refreshes every 5 minutes (configurable)
- Most restrictive rules are merged and applied
- Check SDK logs for policy sync messages
- See “Last Updated” in policy list
- Monitor intervention logs for policy enforcement
API Keys tab
API key list
View all API keys for your organization:
Actions per key:
- Deactivate - Disable key without deleting
- Activate - Re-enable deactivated key
- Delete - Permanently remove key (with confirmation)
Generate new API key
Click Generate New Key:- Optional name - Identifier for this key
- Example: “Production Agent”, “Development”, “CI/CD Pipeline”
- Click Generate
- Copy immediately - Key shown only once
- Format:
as_+ 32 hex characters - Example:
as_a1b2c3d4e5f6789012345678901234ab
- Format:
- Store securely in:
- Password manager
- Secrets vault (HashiCorp Vault, AWS Secrets Manager)
- Environment variables (never in code)
- Checkbox: “I have copied the key”
- Must check to close modal
- Prevents accidental loss
Using API keys
In SDK:Security best practices
Troubleshooting API keys
“API key invalid”- Check you copied full key including
as_prefix - Verify key is Active (not deactivated)
- Confirm you’re in correct organization
- Check key wasn’t deleted
- May take up to 30 seconds to propagate
- Verify you copied correctly (easy to truncate)
- Test with simple API call:
Notifications tab
Channel status
View configured notification channels:Email notifications
Configuration:- Email addresses (comma-separated)
- Notification triggers:
- ☑️ Critical interventions (risk=critical)
- ☑️ Budget threshold reached (80%)
- ☑️ Budget exceeded
- ☑️ Approval requests (critical/high priority)
- ☑️ Policy violations
- ☑️ Agent failures (3+ consecutive errors)
- Click “Send Test Email”
- Check inbox for delivery
- Verify formatting and content
Slack notifications (coming soon)
Setup:- Click “Set up Slack”
- Authorize Agent Sentinel app
- Choose channel (e.g., #agent-alerts)
- Configure triggers
- Test notification
Webhooks (coming soon)
Setup:- Enter webhook URL
- Choose events to send:
- Interventions
- Approvals
- Policy violations
- Budget alerts
- Configure secret for signature verification
- Test webhook
Critical escalation notice
Common workflows
Create production safety policy
- Go to Policies tab
- Click Create Policy
- Configure:
- Name: “Production Safety”
- Description: “Strict limits for production agents”
- Scope: Agent-specific → “production-agent”
- Session budget: $50
- Run budget: $5
- Denied actions:
- Rate limits:
- api_call: 100 per 60s
- database_write: 10 per 60s
- Enable policy
- Test with agent
Set up approval workflow
- Go to Policies tab
- Create or edit policy
- Scroll to “Human Approval Settings”
- Configure:
- Required approval actions:
- Cost threshold: $100.00
- Timeout: 600 seconds
- Default approvers:
- Required approval actions:
- Go to Notifications tab
- Enable email for approval requests
- Save and test
Rotate API key
- Go to API Keys tab
- Click Generate New Key
- Name it with date: “Production Key 2024-12”
- Copy key
- Update SDK configuration:
- Deploy updated configuration
- Monitor “Last Used” on new key
- Once new key is active (within 24h), delete old key
Configure budget alerts
- Go to Policies tab
- Edit budget policy
- Scroll to “Alert Configuration”
- Set:
- Alert emails:
finance@company.com, engineering@company.com - Alert threshold: 80%
- Alert on failure: ✓
- Alert emails:
- Click Test Alert
- Verify email received
- Save policy
Best practices
See also
- SDK Policies - SDK-side policy configuration
- Platform Policies API - API documentation
- Interventions - View policy enforcement
- Approvals - Manage approval workflows
