Back to templates
WrenAI icon

Deploy WrenAI on Sealos

🤖 Open-source GenBI AI Agent that empowers data-driven teams to chat with their data to generate Text-to-SQL, charts, spreadsheets, reports, and BI. 📈📊📋🧑‍💻

Low-Code
Deploy WrenAI in a few clicks from the Sealos App Store.Run a self-hosted open-source service on Kubernetes-backed infrastructure.Get automatic HTTPS, routing, and resource management from Sealos.Avoid manual YAML while keeping control of the deployed workload.

Why deploy on Sealos

Sealos makes deploying any app effortless, secure, and production-ready. From one-click launch to ongoing operations, we handle the heavy lifting so you can focus on what matters.

One-Click Deploy
Sealos logo
Compute
Networking
Storage
Security
Observability
Your Application is Live

One-Click Deployment

Deploy any app template in seconds. No compose setup, manual configure, and go live.

Managed Kubernetes Reliability

Built on Sealos Managed Kubernetes for high availability, auto-scaling, and self-healing by default.

Automatic HTTPS & Security

Every deployment includes a secure domain with automatic SSL. We handle certificates and text protection for you.

Persistent Storage

Attach persistent volumes with ease. Your data stays safe, durable, and always accessible.

Scale when needed

Adjust resources as your app grows, no downtime required.

You Get the Whole Stack

Sealos provisions and connects every resource your application needs. Everything is ready to use.

One-click, fully provisionedSecure by defaultProduction ready

App Service

Your application is running and ready to serve requests.

Public HTTPS URL

Secure, global endpoint to access your application.

Database

Managed database instance for your application.

Persistent Volume

Durable storage for uploads and application data.

Environment Variables

Configuration and secrets injected securely into your app.

Logs & Metrics

Centralized logs and basic metrics are enabled.

README

README.md

Deploy and Host WrenAI on Sealos

WrenAI is an open-source GenBI agent that turns conversations with data into Text-to-SQL, charts, spreadsheets, reports, and BI insights. This template deploys the WrenAI 0.29.3 AI service, 0.24.6 engine, 0.25.0 Ibis server, 0.32.2 UI, Qdrant v1.18.2, and PostgreSQL on Sealos Cloud.

WrenAI Screenshot

About Hosting WrenAI

The template runs the WrenAI runtime bundle as one Sealos application. The UI provides the public HTTPS entry, the AI service handles model and embedding calls, the Wren engine and Ibis server execute SQL, Qdrant stores embeddings, and PostgreSQL stores project and configuration data.

The AI service reads the generated configuration from a mounted ConfigMap. The deployment uses OpenAI models and requires separate keys for text generation and embeddings. All internal services use cluster DNS names, so the bundle stays self-contained inside the Sealos namespace.

Common Use Cases

  • Natural-language analytics: Let teams ask questions about a connected data source in plain language.
  • SQL acceleration: Generate, explain, and correct SQL during analysis work.
  • Semantic modeling: Index schemas and business descriptions for repeatable answers.
  • Self-hosted BI experiments: Keep metadata and vector indexes in a Sealos workspace.

Architecture and Dependencies

  • Wren UI 0.32.2: Browser application on port 3000, published through the HTTPS Ingress and App entry.
  • Wren AI service 0.29.3: Model and embedding gateway on port 5555.
  • Wren engine 0.24.6: SQL and semantic execution service on ports 8080 and 7432, with a bootstrap init container.
  • Wren Ibis server 0.25.0: Ibis query service on port 8000.
  • Qdrant v1.18.2: Persistent vector store with storage, snapshots, and initialization volumes.
  • PostgreSQL 16.4.0: KubeBlocks-managed database for the wrenai application database.
  • PostgreSQL init Job: Waits for the database and creates wrenai idempotently.

Why Deploy WrenAI on Sealos?

Sealos is an AI-assisted Cloud Operating System built on Kubernetes. It brings the WrenAI services, managed PostgreSQL, persistent vector storage, TLS, and service discovery into one repeatable deployment.

  • One-click GenBI stack: Provision UI, model gateway, SQL services, vector search, and PostgreSQL together.
  • Managed operations: Use Canvas resource cards and the AI dialog for environment updates.
  • Persistent analytics state: Keep schemas, embeddings, projects, and query metadata across restarts.
  • Pay-as-you-go resources: Increase capacity for the services that handle larger datasets or query volume.

Configuration

Provide both credentials in the deployment dialog:

NameDescriptionRequiredDefault
openai_api_keyOpenAI key for WrenAI text generation.YesNone
embedder_openai_api_keyOpenAI key for text-embedding-3-large.YesNone
openai_api_baseOpenAI-compatible base URL for text generation.Nohttps://api.openai.com/v1
embedder_openai_api_baseOpenAI-compatible base URL for embeddings.Nohttps://api.openai.com/v1
generation_modelDefault chat model name used by WrenAI.Nogpt-4.1-nano-2025-04-14

The template generates the application name, host, and user telemetry identifier. Keep API keys in Sealos-managed inputs and rotate them through the workload configuration when required.

Deployment Guide

  1. Open the WrenAI template and click Deploy Now.
  2. Enter openai_api_key and embedder_openai_api_key in the parameter dialog.
  3. Keep the default API bases for the public OpenAI API, or set both API base inputs for an OpenAI-compatible provider. Set generation_model to a model supported by that provider.
  4. Wait for PostgreSQL, the init Job, AI service, engine, Ibis server, Qdrant, and UI to become Ready. Typical Sealos deployments take 2-3 minutes; this runtime bundle can take longer while the database and vector store initialize. After deployment, Canvas exposes the AI dialog and resource cards for follow-up changes.
  5. Open the generated URL from the Sealos App entry.
  6. Complete WrenAI's first-run UI setup at /setup/connection, then add a data source or choose the built-in E-commerce sample.
  7. WrenAI OSS opens this setup flow directly and has no email/password registration or login page in this template. Sealos App access and workspace permissions provide the access boundary.
  8. After the sample data finishes indexing, open Modeling or Home and run a sample question. A working text-generation endpoint and a working embedding endpoint are both required for semantic indexing and question answering.

Storage and Operations

Qdrant uses persistent volumes for vectors, snapshots, and its initialization marker. Wren engine uses a persistent /app/data volume for bootstrap data, and PostgreSQL uses a 1 GiB managed volume. Sealos is built on Kubernetes and uses pay-as-you-go resources. Expand the relevant Canvas resource card when datasets or query history grow, and use the Canvas AI dialog for environment changes.

WrenAI sends model and embedding requests to the configured OpenAI-compatible endpoints using the supplied keys. Review provider quotas and network egress policy before importing a large schema.

Troubleshooting

The UI loads but data queries fail

Check the AI service, engine, and Ibis server logs. Confirm both OpenAI keys are present and that the UI can reach the internal service DNS names.

Vector indexing fails

Inspect Qdrant readiness and the AI service logs. Confirm the Qdrant storage and snapshots volumes are bound and that the embedding key has access to text-embedding-3-large.

The question stays on "Understanding question"

Check the AI service logs for the provider response from the configured embedding endpoint. A 503 from /embeddings means the selected OpenAI-compatible provider does not expose the configured embedding model; switch to a provider and model that support embeddings, then restart the AI service configuration.

PostgreSQL initialization is pending

Wait for the PostgreSQL Cluster to reach Ready and for the wrenai-pg-init Job to complete. The UI has a startup gate that waits for the wrenai database before accepting requests.

Getting Help

Official Links

Additional Resources

License

This Sealos template is provided under the templates repository license. WrenAI and its bundled components remain subject to their respective upstream licenses.

Related templates

Explore more production-ready templates.

More