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

# Installation

> Install OpenHarness packages in your project

## Install the Core Package

<Tabs>
  <Tab title="npm">
    ```bash theme={"dark"}
    npm install @openharness/core
    ```
  </Tab>

  <Tab title="pnpm">
    ```bash theme={"dark"}
    pnpm add @openharness/core
    ```
  </Tab>

  <Tab title="yarn">
    ```bash theme={"dark"}
    yarn add @openharness/core
    ```
  </Tab>
</Tabs>

## UI Packages (Optional)

If you're building a chat UI, install the framework-specific package:

<Tabs>
  <Tab title="React">
    ```bash theme={"dark"}
    npm install @openharness/react
    ```
  </Tab>

  <Tab title="Vue">
    ```bash theme={"dark"}
    npm install @openharness/vue
    ```
  </Tab>
</Tabs>

## AI SDK Provider

OpenHarness uses Vercel's AI SDK for model access. Install the provider for your preferred model:

<Tabs>
  <Tab title="OpenAI">
    ```bash theme={"dark"}
    npm install @ai-sdk/openai
    ```
  </Tab>

  <Tab title="Anthropic">
    ```bash theme={"dark"}
    npm install @ai-sdk/anthropic
    ```
  </Tab>

  <Tab title="Google">
    ```bash theme={"dark"}
    npm install @ai-sdk/google
    ```
  </Tab>
</Tabs>

Any [AI SDK-compatible provider](https://sdk.vercel.ai/providers) works with OpenHarness.

## Environment Variables

Set the API key for your model provider:

```bash theme={"dark"}
# OpenAI
export OPENAI_API_KEY=sk-...

# Anthropic
export ANTHROPIC_API_KEY=sk-ant-...

# Google
export GOOGLE_GENERATIVE_AI_API_KEY=...
```

## Clone the Repository

To run the examples or contribute:

```bash theme={"dark"}
git clone https://github.com/MaxGfeller/open-harness.git
cd open-harness
pnpm install
pnpm build
```
