App Store template
WrenAI icon

WrenAI

🤖 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. 📈📊📋🧑‍💻

Launch in your Sealos workspace.

WrenAI template preview
Template previewFull screenshot
Template deployments
13 on Sealos
Deployment
Your own instance
Category
Low-Code

About this template

Overview

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.

From the documentation

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.

How to deploy WrenAI

  1. Choose Deploy now to start WrenAI in your Sealos workspace.
  2. Review openai_api_key, embedder_openai_api_key, openai_api_base and the remaining settings in the deployment form.
  3. Launch the template, then inspect the application status and resource cards in Canvas.

Resources to plan for

Start with the resources defined by the WrenAI template. Review CPU, memory, persistent storage, and network allocations for every service in Canvas. Capacity needs depend on your data and workload; monitor usage as they grow.

Template configuration and setup

Access after deployment

Use the application URL or connection details shown in Canvas. Follow the deployment guide for first-time account setup or client configuration, and keep generated credentials available for that step.

Hosting and billing

Sealos monthly plans include compute, memory, storage, and traffic. Size your plan for all deployed services. Software licenses and external AI or API services may have separate terms and charges. Confirm the applicable plan and optional charges in Cost Center.

Compare Sealos resource plans
Read full documentationCollapse documentation

For current cloud charges, refer to Sealos plan pricing. Upstream documentation may reference earlier billing models.

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.

From launch to everyday operations

Why deploy
on Sealos

A shorter path from an app you want to an app you can run. Sealos brings deployment and ongoing operations into one place.

  1. One-click deployment

    Start with a ready-made template. Review its configuration and launch from the Sealos console.

  2. Managed Kubernetes

    Run on managed infrastructure with built-in workload scheduling and recovery.

  3. Automatic HTTPS

    Give your application a public HTTPS endpoint with certificates managed for you.

  4. Persistent storage

    Keep application data on persistent volumes across container restarts.

  5. Room to grow

    Adjust CPU, memory, and replicas from the console as your workload changes.

One template. Connected resources.

You Get the Whole Stack

Sealos provisions the resources defined by your template and brings them together in your workspace.

  • App Service

    Container workloads with configurable CPU, memory, and replicas.

  • Public HTTPS URL

    An address for your app, with managed TLS certificates.

  • Database

    A database provisioned alongside your app when the template calls for one.

  • Persistent Volume

    Storage for the files and data your application needs to keep.

  • Environment Variables

    Application settings and secrets configured in one place.

  • Logs & Metrics

    Inspect container logs and resource usage from the console.

Resources and their configuration vary by template. Review the deployment form for this app’s exact setup.

Explore more production-ready templates.

More