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

# Self-Hosted API Overview

> Create sessions, manage repositories, and automate workflows in your self-hosted Tembo instance.

## Authentication

Generate an API key from **Settings > API Keys** in your self-hosted Tembo dashboard.

Replace `tembo.example.com` with the hostname of your Tembo instance.

```bash theme={null}
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://tembo.example.com/api/public-api/session/list
```

## SDK

<CodeGroup>
  ```bash npm theme={null}
  npm install @tembo-io/sdk
  ```

  ```bash yarn theme={null}
  yarn add @tembo-io/sdk
  ```

  ```bash pnpm theme={null}
  pnpm add @tembo-io/sdk
  ```

  ```bash bun theme={null}
  bun add @tembo-io/sdk
  ```
</CodeGroup>

```javascript theme={null}
import Tembo from '@tembo-io/sdk';

const client = new Tembo({
  apiKey: process.env.TEMBO_API_KEY,
  baseURL: 'https://tembo.example.com/api/public-api/',
});

const session = await client.session.create({
  prompt: 'Fix the authentication bug in the login component',
  repositories: ['https://github.com/org/repo'],
});
```

## Rate limits

100 requests per minute per API key. 1,000 requests per hour per organization.
