# Quickstart

> Turn developer mode on, connect your AI with one prompt, and make your first call.

Markdown twin of https://panlytics.net/developers/quickstart (last updated 2026-10-27). Every page of the Panlytics developer docs is listed at https://panlytics.net/developers/llms.txt, and all of them are in one file at https://panlytics.net/developers/llms-full.txt. The site guide is https://panlytics.net/llms.txt.

## Before you start

- You need a Panlytics company account.
- Only the CEO can turn developer mode on.
- Anybody else needs a role that holds "Make keys for programs and AI agents". Only the CEO can give it, on the Roles page.

## 1. Turn on

1. Open **Settings**, then **Developer**.
2. Press **Turn on**.
3. A dialog asks **Give an AI access?** Press **Confirm with passkey**.

One step turns developer mode on and makes your key. If you are not the CEO and developer mode is off, the card says "Ask your CEO to turn this on."

## 2. Paste

1. Pick your AI: **Claude**, **ChatGPT** or **Gemini**. Each opens that AI in a new tab.
2. Press **Copy prompt**. The key stays masked on the page and goes only to your clipboard.
3. Paste the prompt into your AI's chat.

The card now says **Waiting for your AI**.

## 3. Connected

The card turns to **Connected** as soon as your AI makes its first call. It shows:

- **Ends in**: how long access has left.
- **Last action**: when your AI last called.
- **Disconnect**: ends access at once.

When access ends, the card says **Access ended**. Press **Connect again** for a new prompt.

> [!NOTE]
> Connecting again revokes your earlier key if no AI has used it yet.

## For a program

The prompt holds the key, which starts with `pan_`. Put it in an environment variable, never in a file:

```bash title="Terminal"
export PANLYTICS_KEY="pan_..."
```

`GET /v1/me` answers with who the key acts as, which shops it reaches, what it may do and when it ends.

```bash title="curl"
curl https://panlytics.net/api/v1/me \
  -H "Authorization: Bearer $PANLYTICS_KEY"
```
```python title="Python"
import os
import requests

answer = requests.get(
    "https://panlytics.net/api/v1/me",
    headers={"Authorization": f"Bearer {os.environ['PANLYTICS_KEY']}"},
    timeout=30,
)
answer.raise_for_status()
print(answer.json())
```
```typescript title="TypeScript"
const answer = await fetch("https://panlytics.net/api/v1/me", {
  headers: { Authorization: `Bearer ${process.env.PANLYTICS_KEY}` },
});
if (!answer.ok) throw new Error(`${answer.status}: ${(await answer.json()).code}`);
console.log(await answer.json());
```

- A `200` with your own name in `user.name` means the key works.
- A `401` means the key is wrong or has ended. Press **Connect again**.
- Every field is on the [GET /v1/me](https://panlytics.net/developers/api/me) page.

## What to read next

- [Keys and rotation](https://panlytics.net/developers/security/keys): when keys end and what ends them early.
- [Rate limits](https://panlytics.net/developers/security/rate-limits): 120 calls a minute per key.
- [Errors](https://panlytics.net/developers/security/errors): every code an answer can carry.
