Overview
The Kill Switch is an emergency mechanism to immediately terminate an agent’s access to all external services. When activated:- All in-flight requests are terminated
- The agent’s credentials are revoked
- Future requests are blocked
- Webhooks are triggered (if configured)
Activation Methods
Dashboard (Recommended)
- Go to Agents in the dashboard
- Find the agent you want to kill
- Click the red Kill button
- Confirm the action
API
SDK (Python)
Reactivating an Agent
After investigating and resolving the issue, you can reactivate an agent:Dashboard
- Go to Agents
- Find the killed agent (shown in red)
- Click Reactivate
- Confirm the action
API
Automatic Kill Triggers
Configure automatic kill switch activation based on:Anomaly Detection
Rate Limiting
Injection Detection
Webhooks
Get notified when an agent is killed:- Go to Activity > Webhooks
- Add a webhook endpoint
- Select the
agent_killedevent
Best Practices
Monitor Before Killing
Review audit logs before killing to understand what the agent was doing
Document the Reason
Always provide a reason when killing - it helps with post-incident analysis
Set Up Webhooks
Configure webhooks to alert your team when agents are killed
Test in Staging
Test your kill switch response in staging before production incidents
FAQ
How fast does the kill switch propagate?
How fast does the kill switch propagate?
The kill switch propagates globally in under 100ms. All edge locations receive the kill signal within this time.
What happens to in-flight requests?
What happens to in-flight requests?
In-flight requests are terminated with a 503 Service Unavailable response. The client will receive an error indicating the agent has been killed.
Can I undo a kill?
Can I undo a kill?
Yes, you can reactivate an agent from the dashboard or API. However, you should investigate the reason for the kill before reactivating.
Are logs preserved when an agent is killed?
Are logs preserved when an agent is killed?
Yes, all audit logs are preserved. You can review what the agent was doing before and after the kill.