﻿---
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/4819/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 in 9.0+
---

# 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/4819/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/4819/explore-analyze/ai-features/llm-guides/connect-to-lmstudio-security).

**Self-managed LLMs for Observability:**
- For test environments, you can [connect to LM Studio](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4819/explore-analyze/ai-features/llm-guides/connect-to-lmstudio-observability).