---
title: Use Pantaray with your own API key
description: Connect Pantaray directly to OpenAI, Anthropic, or Fireworks AI with a key from that provider.
---

With an API key, Pantaray talks to the provider straight from this Mac. You pay that provider
directly, and you do not need an account with us.

## Get a key

Pantaray works with three providers. Create a key in the provider's own console:

| Provider | Where to create a key |
| --- | --- |
| OpenAI | [platform.openai.com](https://platform.openai.com/api-keys) → **API keys** → **Create new secret key** |
| Anthropic | [console.anthropic.com](https://console.anthropic.com/settings/keys) → **API keys** → **Create key** |
| Fireworks AI | [fireworks.ai](https://fireworks.ai/) → **API keys** |

Copy the key when it is shown. Providers only display it once.

:::note
An API key spends money from the account it belongs to. Pantaray runs in the background and sends
requests on its own, so set a spending limit in your provider's console if you want a ceiling.
:::

## Set it up in Pantaray

1. Open **Settings → AI connection**.
2. Under **Connect with**, choose **API key**.
3. Pick your provider: **OpenAI**, **Anthropic**, or **Fireworks AI**.
4. Fill in **Model** (see below) and press **Save model**.
5. Paste the key into **API key** and press **Save**.

**Current route** at the top of the section should now show **API key**, with your provider and
model beside it.

## Choosing a model

**Model** is a text box. Click it and Pantaray suggests ids it knows about; you can also type any
model your provider accepts.

| Provider | Suggested models |
| --- | --- |
| OpenAI | `gpt-5.6`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-6-luna` |
| Anthropic | `claude-opus-5`, `claude-sonnet-5` |
| Fireworks AI | No suggestions. Type the full id, in the form `accounts/…/models/…` |

Pantaray uses the one model you set for everything it does, so pick a capable one. An Action needs
a model that can use tools and return structured answers, and reading screenshots or images needs
one that accepts images.

If you type an id the provider does not recognise, the request fails saying the model was not
found. Check the spelling against your provider's documentation.

## Replacing or removing a key

The key is encrypted and stored on this Mac. Pantaray shows only **Saved on this Mac**, and there
is no way to read it back.

- **Replace** lets you paste a new key over the old one.
- **Remove** deletes it. Without a key, Actions stop with a message asking you to set up a
  connection.

Changing the key stops any Action that is running. Continue the conversation in your next message.
