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

# Quickstart

> Go from install to first answer

## 1. Start the local server

```bash theme={null}
ctxpack serve
```

## 2. Connect a model provider

```bash theme={null}
ctxpack connect openai
```

## 3. Add a resource and index

Local folders on your machine.

```bash theme={null}
ctxpack add ./local-folder --type local --name local-folder --index
```

Or clone a git repository.

```bash theme={null}
ctxpack add https://github.com/org/repo --type git --name repo --index
```

## 4. Sync and index

```bash theme={null}
ctxpack sync repo
ctxpack index repo --sync
```

* `sync` pulls latest for git resources (local resources are already local).
* `index --sync` syncs git content first, then indexes embeddings.

## 5. Ask a question

```bash theme={null}
ctxpack ask "Where is request-level model config applied?"
```

`ask` is an alias for `search --explore`.

## 6. Go deeper when needed

```bash theme={null}
ctxpack ask "Trace indexing pipeline" --verbose
ctxpack search "Compare text and vector retrieval paths" --research
```
