> For the complete documentation index, see [llms.txt](https://docs.layerlens.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerlens.ai/more-in-this-section-9/security.md).

# Security

SDK security overview — API key management, data privacy, environment variables, rate limiting.

Guidance for using the LayerLens Python SDK securely in development, CI, and production.

| Topic                                                                     | Description                                                         |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [API Key Management](/more-in-this-section-9/api-key-management.md)       | Best practices for storing, rotating, and revoking API keys.        |
| [Data Privacy](/more-in-this-section-9/data-privacy.md)                   | What is sent to the API, what is stored locally, sanitizing traces. |
| [Environment Variables](/more-in-this-section-9/environment-variables.md) | Setting credentials securely across OSes; `.env` file conventions.  |
| [Rate Limiting](/more-in-this-section-9/rate-limiting.md)                 | Recognizing and handling `RateLimitError`.                          |

See also: [Authentication reference](/more-in-this-section-9/authentication.md), [Troubleshooting](/more-in-this-section-9/troubleshooting-1.md).
