Configure Plane AI Commercial Edition
Plane AI brings AI-powered features to your workspace, including natural language chat, duplicate detection, and 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 Plane AI.
Prerequisites
Plane AI requires four things to work:
- An LLM API key (OpenAI, Anthropic, or Baseten) - powers AI responses.
- OpenSearch - An OpenSearch instance running version 2.19 or later (self-hosted or AWS OpenSearch) configured for advanced search. Search over your workspace data (work items, pages, cycles) runs through OpenSearch indices.
- A dedicated database - Plane AI must not share the main Plane application database.
- Read access to the main Plane database - PI reads workspace data directly from the main Plane DB.
Supported LLM providers
OpenAI
- GPT-5.4
- GPT-5.2
Anthropic
- Claude Sonnet 4.5
- Claude Sonnet 4.6
- Claude Sonnet 5
Baseten
- Kimi K2.6
- GLM 5.2
- DeepSeek V4
You can provide API keys for any combination of OpenAI, Anthropic, and Baseten, making those models available to users. If you provide only one key, users will only have access to that provider's models.
Custom or self-hosted models
To use Ollama, Groq, LiteLLM, AWS Bedrock, or any OpenAI-compatible endpoint, see Custom LLM models.
Set up databases
Plane AI needs two database connections.
PLANE_PI_DATABASE_URL=postgresql://user:password@host:5432/plane-pi
FOLLOWER_POSTGRES_URI=postgresql://user:password@host:5432/planePLANE_PI_DATABASE_URL- PI's own dedicated database. Must not be shared with the main Plane application database.FOLLOWER_POSTGRES_URI- Read connection to the main Plane database. PI reads workspace data (issues, pages, projects) directly from here. Can be a read replica.
Both are checked at startup - PI will not start if either is unreachable.
Configure OpenSearch
Add to /opt/plane/plane.env:
OPENSEARCH_URL=https://your-opensearch-instance:9200/
OPENSEARCH_USERNAME=admin
OPENSEARCH_PASSWORD=your-secure-passwordIf you haven't set up OpenSearch yet, see OpenSearch for advanced search first.
Configure an LLM provider
Add at least one to /opt/plane/plane.env:
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxx
CLAUDE_API_KEY=xxxxxxxxxxxxxxxxBaseten
Baseten serves Kimi K2.6, GLM 5.2, and DeepSeek V4 through an OpenAI-compatible endpoint. Add both the API key and base URL to /opt/plane/plane.env:
BASETEN_API_KEY=xxxxxxxxxxxxxxxx
BASETEN_BASE_URL=https://inference.baseten.co/v1Both variables are required to enable Baseten models. Get an API key from the Baseten dashboard.
Custom LLM models
WARNING
The custom model should have at least 1 trillion parameters for all Plane AI features to work reliably. Larger, more capable models yield better results.
Plane AI supports one custom LLM alongside OpenAI and Anthropic.
- OpenAI-compatible - any model exposed via an OpenAI Chat Completions 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.
No OpenAI-compatible API?
Proxy any model through - it exposes any LLM behind the OpenAI API. Then use the OpenAI-compatible setup below.
If you need to use an LLM that isn't from OpenAI or Anthropic - for example, an open-source model or a regional provider for compliance reasons - you can proxy it through LiteLLM.Then use the OpenAI-compatible setup below.
OpenAI-compatible
Add to /opt/plane/plane.env:
CUSTOM_LLM_ENABLED=true
CUSTOM_LLM_PROVIDER=openai
CUSTOM_LLM_MODEL_KEY=your-model-id # model ID as the endpoint expects it
CUSTOM_LLM_BASE_URL=https://your-endpoint/v1
CUSTOM_LLM_API_KEY=your-api-key # use any non-empty string if no key is required
CUSTOM_LLM_NAME=Your Model Name # display name shown to users
CUSTOM_LLM_MAX_TOKENS=64000 # optional; max output tokens per responseExamples:
# Groq
CUSTOM_LLM_MODEL_KEY=llama-3.3-70b-versatile
CUSTOM_LLM_BASE_URL=https://api.groq.com/openai/v1
CUSTOM_LLM_API_KEY=gsk_xxxxxxxxxxxx
# Ollama (local)
CUSTOM_LLM_MODEL_KEY=llama3
CUSTOM_LLM_BASE_URL=http://localhost:11434/v1
CUSTOM_LLM_API_KEY=ollama
# LiteLLM proxy
CUSTOM_LLM_MODEL_KEY=your-litellm-model
CUSTOM_LLM_BASE_URL=http://litellm:4000/v1
CUSTOM_LLM_API_KEY=your-litellm-master-keyAWS Bedrock
Standard credentials
Use for IAM user access with an explicit access key and secret.
CUSTOM_LLM_ENABLED=true
CUSTOM_LLM_PROVIDER=bedrock
CUSTOM_LLM_MODEL_KEY=anthropic.claude-3-5-sonnet-20241022-v2:0 # Bedrock model ID
CUSTOM_LLM_API_KEY=your-aws-secret-access-key
CUSTOM_LLM_AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your-aws-access-key-id # standard AWS env var, picked up by boto3
CUSTOM_LLM_NAME=Claude via Bedrock
CUSTOM_LLM_MAX_TOKENS=64000 # optional; max output tokens per responseIAM permission required
The IAM user must have bedrock:InvokeModel permission on the target model.
Inference profile (IRSA / EKS Pod Identity)
Use for Kubernetes deployments where the pod has an ambient IAM role. No static credentials needed.
CUSTOM_LLM_ENABLED=true
CUSTOM_LLM_PROVIDER=bedrock
CUSTOM_LLM_MODEL_KEY=claude-sonnet-4-6
CUSTOM_LLM_AWS_REGION=us-east-1
BEDROCK_INFERENCE_PROFILE_ARN=arn:aws:bedrock:us-east-1:123456789012:application-inference-profile/xxxx
# or use BEDROCK_INFERENCE_PROFILE_ID=global.anthropic.claude-sonnet-4-6
CUSTOM_LLM_NAME=Claude via Inference Profile
CUSTOM_LLM_MAX_TOKENS=64000 # optional; max output tokens per responsePlane AI activates inference profile mode automatically when a profile ARN or ID is set and ambient AWS credentials are present (AWS_ROLE_ARN, AWS_WEB_IDENTITY_TOKEN_FILE, AWS_CONTAINER_CREDENTIALS_FULL_URI, or AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE).
Price your custom model
Plane AI charges a custom model's usage at Claude Sonnet 5.5 rates until you give it a price. See Price a custom model.
Connect Plane AI to your Plane deployment
Plane AI runs as a separate service and must be wired to your Plane deployment. Two things matter here.
In the Plane API env (/opt/plane/plane.env), tell Plane where PI is reachable:
PI_BASE_URL=https://plane.example.comPlane builds the PI URL as PI_BASE_URL + PI_BASE_PATH - with the default PI_BASE_PATH=/pi this becomes https://plane.example.com/pi.
In the PI env (/opt/plane/plane.env), set the OAuth redirect URI to match:
PLANE_OAUTH_REDIRECT_URI=https://plane.example.com/pi/api/v1/oauth/callback/Enable Plane AI services
Other deployment methods
For Coolify, Portainer, Docker Swarm, and Podman Quadlets, use the same environment variables as Docker Compose - only the replica variables differ.
In /opt/plane/plane.env, set replica counts to 1:
PI_API_REPLICAS=1
PI_BEAT_REPLICAS=1
PI_WORKER_REPLICAS=1
PI_MIGRATOR_REPLICAS=1Plane Agents
Plane Agents run on Plane AI, so they work once Plane AI is set up and your plan includes them. They don't need an extra environment variable or API key. An agent run is handled by several services, and each kind of trigger depends on a different one:
| Service | What it does for agents |
|---|---|
outbox-poller | Publishes work item events to the event stream. |
agent-consumer | Reads the event stream and starts runs for agents with a matching event trigger: work item created, updated, state changed, assignee changed, or comment added. |
beat-worker | Checks for due scheduled triggers every 5 minutes. |
worker | Starts runs when someone mentions an agent in a comment or assigns a work item to it. |
pi-worker | Runs the agent. By default it takes both the regular Plane AI queue and the agent queue (plane_pi_agent_queue). |
pi-agent-worker | Optional. A dedicated worker that runs only agent runs, so they never wait behind long background jobs such as indexing. |
agent-consumer is part of the default Docker Compose setup, with AGENT_CONSUMER_REPLICAS=1. Keep it running. Without it, event triggers don't start runs, while mentions, assignments, schedules, and chat keep working.
Run agents on a dedicated worker
On a busy instance, give agent runs their own worker so a long indexing job never delays them. Set both of these in /opt/plane/plane.env, then restart:
PI_AGENT_WORKER_REPLICAS=1
PI_WORKER_QUEUE=plane_pi_queuePI_WORKER_QUEUE=plane_pi_queue stops pi-worker from taking agent runs, and pi-agent-worker takes them instead. Set the two together. If you set PI_WORKER_QUEUE=plane_pi_queue while PI_AGENT_WORKER_REPLICAS is 0, no worker takes agent runs and they never start.
To tune the dedicated worker:
PI_AGENT_CELERY_CONCURRENCY=4 # agent runs at once per replica
PI_AGENT_CELERY_MAX_TASKS_PER_CHILD=100 # recycle a worker process after this many runsA single agent run stops after 10 minutes.
Agent credits
Agent runs spend the workspace's agent pool and each agent's own cap, not the allowance of the person who triggered them. See AI credits and limits.
Optional configuration
Voice input
Enables speech-to-text in Plane AI chat. Get a key at console.groq.com.
GROQ_API_KEY=your-groq-api-keyFile uploads
Enables file attachments in Plane AI.
AWS_S3_BUCKET_NAME=your-bucket-name
AWS_S3_REGION=us-east-1
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-keyFor MinIO or S3-compatible storage, also add:
AWS_S3_ENDPOINT_URL=http://your-minio-host:9000
USE_MINIO=1Behind a reverse proxy
Plane AI streams its answers as they are generated. If you run your own reverse proxy or ingress in front of Plane, make sure it does not buffer responses on /pi/ - otherwise answers appear all at once after a pause. See Streaming responses.
Usage limits
Plane AI counts usage in credits and limits it by your plan: each member has a monthly allowance and each workspace has a pool for agent runs. On a self-hosted instance the allowances are 20 times those on Plane Cloud. To see the limits or change them, see AI credits and limits.
Restart Plane
prime-cli restartOr directly:
docker compose down
docker compose up -d
