CrewAI
safety

Authentication, authorization, API security, data protection, and local deployment — best practices for secure multi-agent crews in enterprise environments.

Access

Authentication

Secure access to crew runs and admin interfaces: strong credentials, token rotation, and MFA where possible. Link actions to human identity — not just to "the crew".

Policies

Authorization

Per agent and tool: least privilege — only scopes needed for the task. Multiple agents multiply risk; align with workflows and approval policy.

API

API security

TLS, signing on webhooks, rate limits, and idempotency for mutating calls. Details and patterns: API integrations.

Privacy

Data protection

Minimize PII in prompts and logs; document retention and who can see crew output. GDPR practice: purpose limitation, audit of customer data and no training on live data without policy.

Hosting

Local deployment

Local hosting provides data location control, but no automatic security: updates, firewall, and backup remain mandatory. Connect to install.

Practice

Best practices

Sandbox testing, prod/dev separation, human-in-the-loop on mutating tools, prompt injection awareness. Incidents: problems · specialist.

FAQ

FAQ —
CrewAI safety

Contact →
Auth, tool-by-tool authorization, logging, and review of mutating actions. Start at install, work out in workflows.
Auth proves identity; authorization determines what an agent or user is allowed to do. Both are required before production integrations.
Secrets via environment variables, limited scopes, rotation — never in prompts or git. See API integrations.
Local helps with data location; you still need to set up retention, access, and logging — data protection section on this page.
Least privilege, review of risky tools, monitoring, incident runbooks. Hub for the entire path.