---
updatedAt: 2025-06-13T18:13:16.000Z
agentTools:
  projectIndex: https://docs.ducky.ai/llms.txt
---

# Authentication and setup

Ducky uses API key-based authentication

Ducky uses an API key to authenticate all requests. Each API key is tied to a specific **project**.

Example usage:

```shell Curl
curl --request GET \
     --url https://api.ducky.ai/v1/indexes \
     --header 'accept: application/json' \
     --header 'x-api-key: <DUCKYAI_API_KEY>'
```
```python
from duckyai import DuckyAI

client = DuckyAI(api_key="<DUCKYAI_API_KEY>")
res = client.indexes.list()
print(res.indexes)
```

<br />

## Create a project and API key

1. Signup and login at [Ducky's Dashboard](https://app.ducky.ai/)
2. If it's your first time, you will be redirected to a page that helps you to create your first project and index.
3. You can manage these keys in the [API keys page](https://app.ducky.ai/api-keys).

<br />

> 🦆 [Get in touch](mailto:support@duckyai.dev) or see our [roadmap](https://ducky.productlane.com/roadmap) if you need help