
Rill
CLI面向 agent 的开源 BI 工具:用 YAML 和 SQL 定义指标与仪表盘,rill init 可为 Claude Code 生成项目指令和 MCP 配置,让 agent 帮经营者搭建业务看板并用自然语言查数。本地版免费使用,发布到 Rill Cloud 需要账号。
Agent-first, human-friendly business intelligence
Rill is the fastest BI tool for humans and agents, powered by OLAP engines like ClickHouse and DuckDB.
Get Started
curl https://rill.sh | sh # install
rill start my-project # create a project and open the UI
Scaffold a project with agent context
Use rill init to scaffold a project interactively:
➜ rill init
? Project name my-rill-project
? OLAP engine duckdb
? Agent instructions claude
Created a new Rill project at ~/my-rill-project
Added Claude instructions in .claude and .mcp.json
Success! Run the following command to start the project:
rill start my-rill-project
Why Rill?
- Build with agents — BI-as-code (YAML + SQL) means coding agents like Claude Code and Cursor can author projects, dashboards, and security policies end-to-end
- Semantic layer — Single source of truth for dimensions, measures, and time grains — defined in YAML, generating SQL at query time against your OLAP engine
- Explore with agents — Conversational BI lets business users query metrics in natural language; the MCP server connects AI agents directly to your semantic layer
- Real-time performance — Sub-second queries at any scale; ClickHouse for billions of rows, DuckDB for smaller datasets and fast iteration
- Embeddable — Dashboards, APIs, and agent interfaces you can ship in your product
Capabilities
Rill Developer (local)
- Connectors — S3, GCS, databases, and 20+ sources
- OLAP Engines — Managed ClickHouse or DuckDB included, or connect an external engine (ClickHouse Cloud, Druid, Pinot, MotherDuck)
- SQL Models — Transform raw data with SQL, join models together
- Data Profiling — Instant column stats and distributions
- Incremental Ingestion — Load only new data on each run to keep large datasets current without full refreshes
- Semantic Layer — Dimensions, measures, and time grains in YAML
- Row Access Policies — Per-user, per-group data access control
- Local Dashboards — Preview and explore dashboards locally
Rill Cloud
- Deploy — Git-backed, versioned deployments — push with
rill deployor connect a repo for automatic CI/CD - Explore & Canvas Dashboards — Interactive dashboards, embeddable in your product
- Conversational BI — Ask questions in natural language
- MCP Server — Connect Claude, ChatGPT, or any AI agent to your metrics
- Custom APIs & Embedding — Expose metrics via REST or embed dashboards
- Alerts & Reports — Threshold alerting, code-defined or UI-defined
How It Works
Define everything in code — models, metrics, dashboards — and Rill handles the rest.
1. Connect data — models/events.yaml
type: model
connector: duckdb
materialize: true
sql: |
select * from read_parquet('gs://rilldata-public/auction_data.parquet')
2. Define metrics — metrics/events_metrics.yaml
version: 1
type: metrics_view
model: events
timeseries: timestamp
dimensions:
- name: country
column: country
- name: device
column: device_type
measures:
- name: total_events
expression: count(*)
- name: revenue
expression: sum(price * quantity)
description: Total revenue
3. Create a dashboard — dashboards/events_explore.yaml
type: explore
display_name: "Events Dashboard"
metrics_view: events_metrics
dimensions: "*"
measures: "*"
4. Deploy
rill deploy # push to Rill Cloud
Your metrics view is immediately queryable on Rill Cloud — add YAML files to configure dashboards, alerts, and custom APIs.
Learn More
Getting Started with Rill Developer • Exploring Data with Rill • Data Talks on the Rocks • Agentic Analytics with Claude Code and Rill
Examples
| Example | Description | Links |
|---|---|---|
| Programmatic Ads | Bidstream data for pricing and campaign performance | GitHub · Demo |
| Cost Monitoring | Cloud infra merged with customer data | GitHub · Demo |
| GitHub Analytics | Contributor activity and commit patterns | GitHub · Demo |
Or explore a live embedded dashboard.
Community
Contributing
We welcome contributions! See our Contributing Guide to get started.
相关资源

Business Analytics
Pluginwshobson/agents 市场中的商业分析插件:含 KPI 仪表盘设计、数据叙事两个技能和一个商业分析子代理,帮你挑选经营指标、规划看板布局,并把数据讲成管理层或投资人听得懂的报告。只提供方法与模板,不直接连接数据源。
wshobson/agents40.9k
Data Analytics
SkillOpenAI 官方数据分析技能组,覆盖数据质量评估、KPI 设计、指标异动诊断、看板与分析报告、市场规模测算和 Notebook。随 Codex 插件发布,部分技能依赖其运行环境。
openai/plugins7.5k
Data
Plugin数据分析插件:按各家 SQL 方言写查询、探查数据集、做统计检验、用 Python 出图并搭建交互式 HTML 看板,分享前复核方法与结论。可连接 Snowflake、BigQuery 等数仓。Anthropic 官方。
anthropics/knowledge-work-plugins29.9k
Data Analytics
PluginOpenAI 官方 Codex 插件:用数据回答产品与业务问题,覆盖指标异动诊断、KPI 设计、市场规模测算、看板与报告、Notebook 和数据质量评估,可连接数仓与 BI 工具。
openai/plugins7.5k
Amplitude
PluginAmplitude 官方插件,内置远程 MCP 和近 30 个分析技能:用自然语言建图表和看板、解读 A/B 实验、归纳用户反馈、生成每日/每周数据简报,适合产品与运营做复盘和增长分析。需要已接入产品数据的 Amplitude 账号(有免费版),首次使用在浏览器授权。
amplitude/mcp-marketplace45
DuckDB
CLI进程内分析型 SQL 数据库,命令行可直接用 SQL 查询 CSV、Parquet、JSON 文件,无需导入或启动服务,适合 agent 抽样与聚合大文件。官方维护。
duckdb/duckdb42.2k