---
title: Self-managed custom LLMs
description: You can set up connectors for self-managed LLMs to maintain more control of your data, operate in an air-gapped environment, or use specific open-source...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/5399/explore-analyze/ai-features/llm-guides/local-llms-overview
products:
  - Elastic Observability
  - Elastic Security
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Self-managed custom LLMs
You can set up connectors for self-managed LLMs to maintain more control of your data, operate in an air-gapped environment, or use specific open-source models of your choosing.
The following guides describe how to set up self-managed LLMs for Elastic Security and Observability.
**Self-managed LLMs for Elastic Security:**
- For production environments or air-gapped environments, you can [connect to vLLM](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/5399/explore-analyze/ai-features/llm-guides/connect-to-vLLM).
- For test environments, you can [connect to LM Studio](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/5399/explore-analyze/ai-features/llm-guides/connect-to-lmstudio-security).

**Self-managed LLMs for Observability:**
- <applies-to>Elastic Stack: Generally available since 9.2</applies-to> For production, test, or air-gapped environments, you can [connect to LM Studio](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/5399/explore-analyze/ai-features/llm-guides/connect-to-lmstudio-observability).