Configure Plane AI Commercial Edition
Plane AI brings AI-powered features to your workspace, including natural language chat, duplicate detection, and semantic search across work items, pages, and projects. This guide walks you through configuring Plane AI on your self-hosted instance.
For an overview of what Plane AI can do, see the Plane AI.
Before you begin
You'll need:
- A separate database for Plane AI. Plane AI requires its own database instance.
- An OpenSearch instance running version 2.19 or later (self-hosted or AWS OpenSearch) configured for advanced search.
- At least one LLM provider API key or a custom OpenAI-compatible endpoint.
- At least one embedding model configured in OpenSearch.
Supported models
Large language models (LLMs)
OpenAI
Supported models:
- GPT-5
- GPT-4.1
- GPT-5.2
Anthropic
Supported models:
- Claude Sonnet 4.0
- Claude Sonnet 4.5
- Claude Sonnet 4.6
You can provide API keys for both OpenAI and Anthropic, making all models available to users. If you provide only one key, users will only have access to that provider's models.
Custom models (self-hosted or third-party)
Plane AI supports custom models through two backends:
- OpenAI-compatible endpoint — any model exposed via an OpenAI-compatible API, including models served by Ollama, Groq, Cerebras, and similar runtimes.
- AWS Bedrock — models accessed directly through Amazon Bedrock using your AWS credentials.
One custom model can be configured alongside your public provider keys.
WARNING
The custom model should have at least 100 billion parameters for all Plane AI features to work reliably. Larger, more capable models yield better results.
Embedding models
Embedding models power semantic search. Plane AI supports:
| Provider | Supported models | Dimension |
|---|---|---|
| Cohere | cohere/embed-v4.0 | 1536 |
cohere/embed-english-v3.0 | 1024 | |
cohere/embed-english-v2.0 | 4096 | |
| OpenAI | openai/text-embedding-ada-002 | 1536 |
openai/text-embedding-3-small | 1536 | |
openai/text-embedding-3-large | 3072 | |
| AWS Bedrock | bedrock/amazon.titan-embed-text-v1 | 1536 |
bedrock/amazon.titan-embed-text-v2 | 1024 | |
bedrock/cohere.embed-english-v3 | 1024 | |
bedrock/cohere.embed-multilingual-v3 | 1024 |
Enable Plane AI services
Separate database required
Plane AI must use its own database — do not share the main Plane application database. A dedicated database keeps AI data (e.g. chat history) isolated and avoids schema conflicts. Set PLANE_PI_DATABASE_URL (or the equivalent for your deployment). See the environment variables reference.
TIP
For other deployment methods such as Coolify, Portainer, Docker Swarm, and Podman Quadlets, use the same environment variables defined for Docker Compose Setup.
Open the /opt/plane/plane.env file in your preferred editor and set the replica count for Plane AI services to 1:
PI_API_REPLICAS=1
PI_BEAT_REPLICAS=1
PI_WORKER_REPLICAS=1
PI_MIGRATOR_REPLICAS=1Plane AI API startup checks
On start, the Plane AI container runs an embedding-dimension check against OpenSearch. OpenSearch must be reachable at OPENSEARCH_URL, and EMBEDDING_MODEL must be set in your environment or the service will not start. If existing index mappings or the deployed ML model disagree with OPENSEARCH_EMBEDDING_DIMENSION, startup fails until you align the configuration or rebuild indices (see Changing the embedding dimension below).
Configure an LLM provider
Configure at least one LLM provider. Add the relevant variables to /opt/plane/plane.env.
OpenAI
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxAnthropic
CLAUDE_API_KEY=xxxxxxxxxxxxxxxxCustom model
CUSTOM_LLM_ENABLED=true
CUSTOM_LLM_PROVIDER=openai # or 'bedrock'
CUSTOM_LLM_MODEL_KEY=your-model-key
CUSTOM_LLM_API_KEY=your-api-key
CUSTOM_LLM_NAME=Your Model Name
CUSTOM_LLM_MAX_TOKENS=128000Additional required variables by provider:
- OpenAI-compatible (
openai):CUSTOM_LLM_BASE_URL - AWS Bedrock (
bedrock):CUSTOM_LLM_AWS_REGION
WARNING
For Bedrock, the IAM user must have bedrock:InvokeModel permission on the target model.
Speech-to-text (optional)
GROQ_API_KEY=your-groq-api-keyThis enables voice input in Plane AI. It's not required for LLM or semantic search features.
Configure OpenSearch and an embedding model
Plane AI uses OpenSearch for semantic indexing and retrieval. If you haven't set up OpenSearch yet, complete the OpenSearch for advanced search guide first, then return here.
Configure OpenSearch connection
OPENSEARCH_URL=https://your-opensearch-instance:9200/
OPENSEARCH_USERNAME=admin
OPENSEARCH_PASSWORD=your-secure-password
OPENSEARCH_INDEX_PREFIX=planeConfigure an embedding model
You must configure the EMBEDDING_MODEL so Plane AI knows which embedding model to construct queries for. Then configure exactly one embedding model deployment using one of these options.
Option A: Use an existing OpenSearch model ID
If you've already deployed an embedding model in OpenSearch, provide its model ID along with your chosen embedding model and dimension. This works with both self-hosted and AWS OpenSearch.
OPENSEARCH_ML_MODEL_ID=your-model-id
EMBEDDING_MODEL=openai/text-embedding-3-small
OPENSEARCH_EMBEDDING_DIMENSION=1536For AWS OpenSearch, you must deploy the embedding model manually before setting this variable. See Deploy an embedding model on AWS OpenSearch.
Option B: Automatic deployment (self-hosted OpenSearch only)
For self-hosted OpenSearch, Plane can automatically create and deploy the embedding model. Provide the model name and the corresponding provider credentials.
Cohere:
EMBEDDING_MODEL=cohere/embed-v4.0
COHERE_API_KEY=your-cohere-api-key
OPENSEARCH_EMBEDDING_DIMENSION=1536OpenAI:
EMBEDDING_MODEL=openai/text-embedding-3-small
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxx
OPENSEARCH_EMBEDDING_DIMENSION=1536AWS Bedrock (Titan):
EMBEDDING_MODEL=bedrock/amazon.titan-embed-text-v1
BR_AWS_ACCESS_KEY_ID=your-access-key
BR_AWS_SECRET_ACCESS_KEY=your-secret-key
BR_AWS_REGION=your-region
OPENSEARCH_EMBEDDING_DIMENSION=1536Required IAM permission for Bedrock Titan
The IAM user for BR_AWS_ACCESS_KEY_ID and BR_AWS_SECRET_ACCESS_KEY needs bedrock:InvokeModel permission on the Titan foundation model. Without it, embedding requests fail with a 403 error.
Attach this policy to the IAM user:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "bedrock:InvokeModel",
"Resource": "arn:aws:bedrock:<your-region>::foundation-model/amazon.titan-embed-text-v1"
}
]
}Replace <your-region> with your BR_AWS_REGION value.
INFO
Automatic embedding model deployment only works with self-hosted OpenSearch. For AWS OpenSearch, deploy the model manually and set OPENSEARCH_ML_MODEL_ID to that model’s ID.
Restart Plane
After updating the environment file, restart Plane.
Docker:
prime-cli restartOr if you're managing containers directly:
docker compose down
docker compose up -dKubernetes:
helm upgrade --install plane-app plane/plane-enterprise \
--namespace plane \
-f values.yaml \
--waitVectorize existing data
Generate embeddings for your existing content by running this command in the API container.
Docker:
docker exec -it plane-api-1 sh
python manage.py manage_search_index --background --vectorize document index --forceKubernetes:
API_POD=$(kubectl get pods -n plane --no-headers | grep api | head -1 | awk '{print $1}')
kubectl exec -n plane $API_POD -- python manage.py manage_search_index --background --vectorize document index --forceThe --background flag processes vectorization through Celery workers. This is recommended for instances with large amounts of existing content.
Changing the embedding dimension
If you update the model or manually override the dimension size by setting OPENSEARCH_EMBEDDING_DIMENSION, you must recreate your search indices so they adopt the new dimension size, then reindex and revectorize your workspace. Ensure that the model associated with your OPENSEARCH_ML_MODEL_ID and your EMBEDDING_MODEL configuration share this same dimension size.
Run these commands inside your API container or pod after updating the environment variables and restarting the Plane services:
# 1. Rebuild all search indices to apply the new dimension size
python manage.py manage_search_index index rebuild --force
# 2. Reindex and revectorize all existing documents
python manage.py manage_search_index --background --vectorize document index --forceAfter setup
Once configured:
- Plane AI is available across your workspace.
- New content (work items, pages, comments) is automatically vectorized in the background.
- Semantic search stays synchronized without manual intervention.
Environment variables reference
See the environment variables reference for a complete list of AI-related configuration options.

