---
sidebar_position: 0
---
# Installation
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
## Choose Your Setup
### All-in-One (Recommended)
The `hindsight-all` package includes everything: embedded PostgreSQL, HTTP API server, and Python client.
```bash
pip install hindsight-all
```
**Use when:** You want the simplest setup for development or small deployments.
### Client Only
If you already have a Hindsight server running:
```bash
pip install hindsight-client
```
**Use when:** You're connecting to an existing Hindsight server (development, staging, or production).
```bash
npm install @hindsight/client
```
**Requires:** A running Hindsight server (see [Server Deployment](/developer/installation) for setup).
```bash
# Coming soon
```
The CLI is included with the Rust distribution. See [CLI documentation](/sdks/cli) for installation.
## LLM Provider Setup
Hindsight requires an LLM that supports **structured output** for fact extraction and reasoning. Configure your provider:
```bash
export OPENAI_API_KEY=sk-...
```
**Requirement:** Model must support structured output (JSON mode)
```bash
export GROQ_API_KEY=gsk_...
```
**Requirement:** Model must support structured output (JSON mode)
```bash
# No API key needed - runs locally
```
**Requirement:** Model must support structured output (JSON mode)
See [Ollama documentation](https://ollama.ai) for setup.
## Verify Installation
```python
import hindsight
print(hindsight.__version__)
```
```javascript
const { HindsightClient } = require('@hindsight/client');
console.log('Hindsight client loaded');
```
```bash
hindsight --version
```
## Next Steps
- [**Quick Start**](./quickstart) — Get running in 60 seconds
- [**Server Deployment**](/developer/installation) — Production setup options