> ## 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.

# Installation

> Install and configure the ctxpack CLI

## Prerequisites

* Bun `>= v1.3.0`
* Docker
* ripgrep `(rg)`

## Install

```bash theme={null}
bun i -g ctxpack@latest
```

## Initialize Config

Run from your project root:

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

`ctxpack` will tell you setup status. `ctxpack setup` creates `./ctxpack.config.jsonc` when missing.

After setup, install the agent skill (optional):

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

This runs:

```bash theme={null}
npx skills add iboughtbed/ctxpack --skill ctxpack
```

## Connect a Provider

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

Or interactive:

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

## Verify Configuration

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