Now Available - Production Ready

Stop Wrestling with AI-Agent Authorization

Secure your LLM tools with enterprise-grade authorization. One decorator, instant security. Zero infrastructure.

Python SDK - Get started in 30 seconds
1. Install & Initialize
$pip installd2
# Generate local policy
python -m d2 init
2. Protect Your Tools
# In your app startup
await configure_rbac()
@d2_guard("weather_api")
def get_weather(location: str):
return weather_service.fetch(location)
# Set user context
set_user("alice", roles=["developer"])
# Clear when done
clear_user_context()
Ready to get started?

Built for Production AI Systems

Runtime-optimized authorization that identifies security issues at the code level, not just endpoints.

Code-Level Security

Decorated functions deny by default until explicitly authorized. Identifies auth problems at the code level, not just routes.

Fast Policy Updates

Policy changes propagate in under a minute across all environments. Plan-based polling ensures optimal performance.

One Decorator

Just add @d2_guard to your functions. Extremely simple code that replaces hundreds of lines of auth logic.

Local & Cloud Modes

Start with local file-based policies for development. Scale to cloud for production with zero code changes.

Rich CLI Tools

Built-in CLI for policy management, diagnostics, and inspection. Perfect developer experience.

Runtime Optimized

Built for high-performance production systems with minimal overhead and intelligent caching.

From Complex to Simple

Replace hundreds of lines of authorization logic with a single decorator.

Before D2
# Hundreds of lines of auth logic
def get_weather(user,location):
if not user:
raise PermissionError
if user.role not in ["admin", "weather"]:
raise PermissionError
if not validate_permissions(user):
raise PermissionError
# ... and more
return weather_service.fetch(location)
With D2
# Complete setup
@d2_guard("weather_api")
def get_weather(location: str):
return weather_service.fetch(location)
# Set context
set_user("alice", roles=["developer"])
# Clear when done
clear_user_context()

Simple, Transparent Pricing

Start free with local mode. Scale to cloud for production with enterprise features.

Free
$0

Perfect for development

5 tools maximum
1 published app
5-minute policy refresh
3 team members
Essentials
$99

Per month

25 tools maximum
5 published apps
1-minute policy refresh
10 team members
Most Popular
Pro
$250

Per month

250 tools maximum
25 published apps
30-second policy refresh
50 team members
Enterprise
Custom

For large organizations

Custom
Custom
Custom
Custom

All plans include:

File-based policies
CLI tools included
Community support
Local development mode

Ready to Secure Your AI Agents?

Tell us about your use case and we'll help you get started.