pgx
PGX — Lightweight Postgres for AI agents. Written in Rust. Thousands of isolated databases in one runtime. 🐘
翻译准备中
👾 nao is an open source analytics agent. (1) Create context with nao-core cli, (2) deploy nao chat interface for everyone
翻译准备中
数据TypeScript · PythonGitHub @getnao自行安装运营者未确认
试用过了吗? 点一下就好,无需登录。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗nao lets you build your own agentic BI: an open source analytics agent built on a context layer your data team controls and tests. Sign up on nao Cloud or self-host it.
nao-core CLI or your coding agent.nao test, and observe real usage online.Watch your whole company grow into analysts.
For data teams
nao test runs your key questions against the SQL you expect and scores every context change before it ships.For everyone in the company
Secure by design
Sign up on nao Cloud, connect your warehouse, add your business context and deploy agentic BI to your whole company from the nao UI. No CLI needed.
nao ships skills that teach Claude Code, Codex, Cursor or any skills-compatible agent how to build a nao project end to end: scope the tables, write nao_config.yaml, sync, write RULES.md and create tests.
1. Install the nao CLI and the nao skills in the folder where you want your project:
pip install nao-core
nao skills add getnao/nao
nao skillsis a thin wrapper aroundnpx skills(Node.js 18+ required).npx skills add getnao/naoworks too.
2. Ask your agent to set up nao. Open Claude Code, Codex or Cursor in that folder and paste:
Set up nao, the open source agentic BI builder, on my data: run `pip install nao-core`, then `nao skills add getnao/nao`, then use the setup-context skill to create a nao project on my warehouse. Docs: https://docs.getnao.io/nao-agent/quickstart
The agent asks you once for your warehouse, the tables in scope, extra context (dbt repo, docs) and your LLM provider, then runs nao init, nao sync, and writes your first RULES.md.
3. Launch the chat:
nao chat
The nao chat opens at http://localhost:5005. Start asking questions.
Run the Docker image getnao/nao, or set up a project manually with the CLI:
Step 1: Install nao-core package
pip install nao-core
Step 2: Initialize a nao project
nao init
It asks for a project name, then optionally a database, a repo, an LLM key and a Slack connection (you can skip them and edit nao_config.yaml later). It creates your project folder with nao_config.yaml, RULES.md and the context structure.
Step 3: Verify your setup
cd to the project folder and run:
nao debug
Step 4: Synchronize your context
nao sync
This will populate your context folder with your context files (data, metadata, repos, etc.)
Step 5: Launch the chat and ask questions
nao chat
This will start the nao chat UI. It will open the chat interface in your browser at http://localhost:5005.
From there, you can start asking questions to your agent.
Unit test your agent performance before deploying it to users. First, create a folder tests/ with questions and expected SQL in yaml.
Then, measure agent's performance on examples with nao test command:
nao test
View results in tests panel:
nao test server
nao Cloud: sign up and set everything up from the nao UI. To push context from a local project instead, create an organization API key in Settings → Organization → Organization API keys, then push your context:
nao deploy https://app.getnao.io --api-key "$NAO_API_KEY"
Self-hosted: run the Docker image below, or follow the deployment guide (for example on Cloud Run with PostgreSQL, or with the Helm chart).
Continuous deployment: the deploy-context skill sets up a GitHub Action that runs nao deploy on every push to main.
Pull the image from DockerHub:
docker pull getnao/nao:latest
Run nao chat with the example project bundled in the image:
docker run -d \
--name nao \
-p 5005:5005 \
-e BETTER_AUTH_URL=http://localhost:5005 \
getnao/nao:latest
Run nao chat with your local nao project:
docker run -d \
--name nao \
-p 5005:5005 \
-e BETTER_AUTH_URL=http://localhost:5005 \
-v /path/to/your/nao-project:/app/project \
-e NAO_DEFAULT_PROJECT_PATH=/app/project \
getnao/nao:latest
Access the UI at http://localhost:5005 (or at any URL you configured). See the DockerHub page for more details.
The core of nao is open source under Apache 2.0. The Enterprise license adds the controls large companies need, on the same self-hosted deployment. nao Cloud includes the equivalent features.
| Capability | Open source | Enterprise |
|---|---|---|
| Open source agent, chat UI and every LLM provider | ✅ | ✅ |
| Slack, Teams, WhatsApp, Telegram and Mattermost bots | ✅ | ✅ |
| Self-hosting on your infrastructure | ✅ | ✅ |
| Google, GitHub and GitLab login | ✅ | ✅ |
| User groups | Up to 3 | Unlimited |
| Multiple projects (separate data, context and access) | ✅ | |
| Microsoft Entra ID and OIDC SSO | ✅ | |
| Row-level security | ✅ | |
| Warehouse identity passthrough | ✅ | |
| LLM budgets per member and per group | ✅ | |
| White-label branding | ✅ | |
| Priority support and roadmap input | ✅ |
Yearly license per company. The license is verified offline at startup against a signed key. Online licenses also send a periodic heartbeat to licenses.getnao.io; for air-gapped deployments, ask for an offline license, which never phones home. The nao team also helps with implementation, context engineering advisory and training. Talk to us.
nao --help
Usage: nao COMMAND
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ chat Start the nao chat UI. │
│ debug Test connectivity to configured databases and LLMs. │
│ deploy Deploy project context to a remote nao instance. │
│ docs Open nao official documentation in your browser │
│ init Initialize a new nao project. │
│ login Log in to nao from your browser. │
│ logout Log out of nao and revoke the stored session. │
│ migrate Migrate dashboards from Metabase or Tableau. │
│ reset-password Reset a local nao user's password. │
│ skills Install and manage agent skills via npx skills. │
│ sync Sync resources using configured providers. │
│ test Run and explore nao tests. │
│ upgrade Upgrade nao-core to the latest version. │
│ --help (-h) Display this message and exit. │
│ --version Display application version. │
╰──────────────────────────────────────────────────────────────────────────────╯
See CONTRIBUTING.md for development setup, commands, and guidelines.
Prerequisites:
Run the following commands:
npm run npm:pin
npm install
npm run db:migrate -w apps/backend
Create a .env file at the root of the repository and input environment variables
Minimum variables necessary are:
BETTER_AUTH_SECRET=#run `openssl rand -base64 32` to generate
# Public URL of your app (used for authentication, trusted origins, and Slack redirects)
BETTER_AUTH_URL=http://localhost:3000
# LLM providers
OPENAI_API_KEY=12345678
NAO_DEFAULT_PROJECT_PATH=#path to example folder
Run the following command:
npm run dev
Go to http://localhost:3000 on your browser
nao Labs is a proud Y Combinator company!
nao is licensed under the Apache 2.0 License (see LICENSE), except for files marked with /* @license Enterprise */, which are subject to the nao Labs Commercial License in LICENSE-ENTERPRISE.