> This page is for version v5.0 (default).
> For other versions, use one of these documentation indexes:
> - v5.0 (default): https://humanloop.com/docs/v5/llms.txt
> - v4.0: https://humanloop.com/docs/v4/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://humanloop.com/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://humanloop.com/docs/_mcp/server.

> Learn how to integrate Humanloop into your applications using our Python and TypeScript SDKs or REST API.

The Humanloop platform can be accessed through the [API](/docs/v5/api) or through our Python and TypeScript SDKs.

<Cards>
  <Card
    title="TypeScript ↗"
    icon="fa-brands fa-js"
    href="https://www.npmjs.com/package/humanloop"
  />
  <Card
    title="Python ↗"
    icon="fa-brands fa-python"
    href="https://pypi.org/project/humanloop/"
  />
  
</Cards>

### Usage Examples

<Tabs>

<Tab title="TypeScript">

**`Installation`**

```shell title="Installation"
npm install humanloop
```

**`Example usage`**

```typescript title="Example usage"
import { HumanloopClient } from "humanloop";

const humanloop = new HumanloopClient({ apiKey: "YOUR_API_KEY" });

// Check that the authentication was successful
console.log(await humanloop.prompts.list());
```

</Tab>

<Tab title="Python">

**`Installation`**

```shell title="Installation"
pip install humanloop
```

**`Example usage`**

```python title="Example usage"
from humanloop import Humanloop
hl = Humanloop(api_key="<YOUR Humanloop API KEY>")

# Check that the authentication was successful
print(hl.prompts.list())
```

</Tab>
</Tabs>