> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getnao.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Deploy your first analytics agent in 1 minute

[Set up nao in 5 minutes](https://www.youtube.com/embed/0NzAJtUjvUM?modestbranding=1\&rel=0\&iv_load_policy=3\&showinfo=0)

There are three ways to build your first nao project:

* **[With your coding agent](#option-1-set-it-up-with-your-coding-agent-recommended)** (recommended): install the nao skills and let Claude Code, Codex, Cursor or any skills-compatible agent build the project for you.
* **[On nao Cloud](#option-2-set-it-up-on-nao-cloud)**: sign up and let the onboarding agent set up your project in the browser, with nothing to install.
* **[Manually with the CLI](#option-3-set-it-up-manually-with-the-cli)**: run `nao init`, `nao debug`, `nao sync` and `nao chat` yourself.

## Option 1: set it up with your coding agent (recommended)

nao ships [skills](https://docs.getnao.io/nao-agent/context-engineering/skills.md) 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.

Open your agent with the setup prompt in one click:

Set up with your agent

Or follow the steps below.

### 1. Install the nao CLI and the nao skills

In the folder where you want your project:

```bash theme={null}
pip install nao-core
nao skills add getnao/nao
```

> [!NOTE]
>
> `nao skills` is a thin wrapper around [`npx skills`](https://github.com/vercel-labs/skills) (Node.js 18+ required). `npx skills add getnao/nao` works too.

### 2. Ask your agent to set up nao

Open Claude Code, Codex or Cursor in that folder and paste:

```text theme={null}
Set up nao, the open-source analytics agent, 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

```bash theme={null}
nao chat
```

The nao chat opens at `http://localhost:5005`. Start asking questions.

Keep using the skills afterwards to write rules, create tests, audit your context, and deploy it. See [Skills](https://docs.getnao.io/nao-agent/context-engineering/skills.md).

## Option 2: set it up on nao Cloud

nao Cloud is the hosted version of nao: nothing to install or deploy. Every new organization gets a 14-day free trial and \$20 of nao credits, so you can start without an LLM API key.

### 1. Sign up

Create your account at [app.getnao.io/signup](https://app.getnao.io/signup) with Google, GitHub, or email and password. While you set up, you can try nao on the Jaffle Shop example project.

### 2. Follow the onboarding agent

Click **Set up** on the **Start using your data** card in the sidebar. The onboarding agent asks where you are starting from and guides you:

* **Connect warehouse**: enter your warehouse credentials, pick the tables to sync, optionally add business context, and nao builds the project for you in the cloud (sync and a first `RULES.md`).
* **Import project**: deploy a nao project from your machine or import it from GitHub, or build a new one locally with your coding agent first.

### 3. Start chatting

When the project is ready, click **Start chatting** and ask your first question.

> [card] [nao Cloud](https://docs.getnao.io/nao-agent/cloud/get-started.md)
>
> Sign-up, the example project, every onboarding path, and inviting your team

## Option 3: set it up manually with the CLI

### Step 1: Install nao-core package

```bash theme={null}
pip install nao-core
```

### Step 2: Initialize a nao project

```bash theme={null}
nao init
```

This command will ask you:

* To name your project (defaults to the current folder name - press Enter to accept)
* If you want to connect a database *(optional)*
* If you want to set up an LLM *(optional)*
* If you want to add a git repository to the agent context *(optional)*

> [!NOTE]
>
> You can skip any optional question and configure it later in your `nao_config.yaml` file. Slack, Notion, MCP servers, and skills are no longer prompted during `nao init` - add them directly in `nao_config.yaml`.

This will create:

* A new folder with your project name
* An architecture for your context files
* A `nao_config.yaml` configuration file
* A `RULES.md` file
* A `tests/` folder with a starter `test_example.yml` test file

### Step 3: Verify your setup

cd to the project folder and run:

```bash theme={null}
nao debug
```

This command checks your configuration and displays any issues.

### Step 4: Synchronize your context

```bash theme={null}
nao sync
```

This will populate your context folder with your context files (data, metadata, repos, etc.).

### Step 5: Launch the chat and ask questions

You have two options to access the chat UI:

#### Using `nao chat`

```bash theme={null}
nao chat
```

This will start the nao chat UI. It will open the chat interface in your browser at `http://localhost:5005`.

#### Using Docker

Instead of `nao chat`, you can use Docker to run the UI:

**With built-in example:**

```bash theme={null}
docker run -d \
  --name nao \
  -p 5005:5005 \
  -e BETTER_AUTH_URL=http://localhost:5005 \
  getnao/nao:latest
```

**With your project:**

```bash theme={null}
docker run -d \
  --name nao \
  -p 5005:5005 \
  -e BETTER_AUTH_URL=http://localhost:5005 \
  -v /path/to/your/project:/app/project \
  -e NAO_DEFAULT_PROJECT_PATH=/app/project \
  getnao/nao:latest
```

Access the UI at `http://localhost:5005` and add your LLM API key in the settings.

From there, you can start asking questions to your agent!

### Step 6: Evaluate your agent

`nao init` scaffolds a starter test file at `tests/test_example.yml`. You can add more test files with questions and expected SQL in YAML format, then measure your agent's performance:

```bash theme={null}
nao test
```

View results in tests panel:

```bash theme={null}
nao test server
```

> [card] [Evaluation Guide](https://docs.getnao.io/nao-agent/context-engineering/evaluation.md)
>
> Learn how to build comprehensive test suites and evaluate your agent

## What's Next?

> [card] [Skills](https://docs.getnao.io/nao-agent/context-engineering/skills.md)
>
> Install five published skills to let your agentic CLI automate setup, rules, tests, and audits

> [card] [Context Builder](https://docs.getnao.io/nao-agent/context-builder/overview.md)
>
> Learn how to build and customize your agent's context

> [card] [Self-Hosting](https://docs.getnao.io/nao-agent/self-hosting/deployment-guide.md)
>
> Deploy your agent in production

> [card] [Chat Interface](https://docs.getnao.io/nao-agent/chat/overview.md)
>
> Explore the chat interface features

> [card] [nao Cloud](https://docs.getnao.io/nao-agent/cloud/get-started.md)
>
> Use our managed cloud service


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.