# Custom AI Chat for Raycast

URL: https://www.raycast.com/ftszw/custom-ai-chat

> Chat with OpenAI-compatible models, with or without an API key — cloud providers, local servers, or proxies. Each conversation keeps its own context.

- Install: raycast://extensions/ftszw/custom-ai-chat
- Author: [FTSzw](https://www.raycast.com/ftszw)
- Installs: 0
- Platforms: macOS
- Categories: Productivity
- Updated: 2026-12-01
- Source: https://github.com/raycast/extensions/tree/23385fa5a1b6506922f58e0b2db11ffe128928d7/extensions/custom-ai-chat/

## Commands

- **Ask AI**: Ask a question and continue it in its own conversation, with streaming answers from your own AI model or gateway.

## README

### Custom AI Chat

Chat with OpenAI-compatible models right from Raycast, with or without an API key — use a cloud provider, a local server, or a proxy, and keep every conversation and its context separate.

Bring your own model, pay your own provider, and stay in control of your data.

![Custom AI Chat conversation and actions](https://github.com/raycast/extensions/raw/23385fa5a1b6506922f58e0b2db11ffe128928d7/extensions/custom-ai-chat//media/demo.png)

#### What You Can Do

- **Chat with any OpenAI-compatible model** — cloud providers, local servers, or proxies you point it at
- **Use an API key or not — your choice** — bring your own key for providers that need one, connect to a local server or proxy that doesn't, and reuse any key already configured for another model; each model can have its own key or share one
- **Keep conversations separate** — each chat remembers its own context; pick up where you left off
- **Switch models on the fly** — group models by provider and change them with one click
- **Stream responses** — watch answers appear in real time, and stop generation anytime

#### Installation

Install **Custom AI Chat** from the Raycast Store. No account or signup is needed — the extension works with whatever models you connect.

#### Quick Start

1. **Open the extension.** Search for `Ask AI` in Raycast and press Enter.
2. **Add a model.** On your first run you'll be taken to the Add Model form. Fill in:
   - **Base URL** — e.g. `https://api.example.com/v1` or `http://localhost:xxx/v1` for a local model
   - **API Key** — optional: enter a key if your endpoint needs one, otherwise leave it empty
   - **Model ID** — e.g. `gpt-4o` or `llama3.2`
3. **Save, then ask a question.** Type your question in the search bar and press Enter. The answer streams in, and your chat is saved automatically.

That's it. To add more models, use **Add Model** (⌥⌘N) again — models sharing the same Base URL are grouped together.

#### Common Workflows

**Keep multiple threads going.** Each conversation is independent. Use ↑/↓ to browse them; the one you used most recently stays at the top. Start a fresh one with ⌘N.

**Connect to a local server or proxy.** Point the Base URL at any OpenAI-compatible local server or proxy. Leave the API Key empty if it needs no credentials, or fill it in if it does — either way, nothing leaves your machine unless you choose a remote endpoint.

**Regenerate a reply.** Open the Action Panel and choose **Regenerate Response** to retry the last question with the current model.

#### Keyboard Shortcuts

| Action              | Shortcut     |
| ------------------- | ------------ |
| Send message        | Enter        |
| Stop generation     | ⌃C           |
| New conversation    | ⌘N           |
| Delete conversation | ⌃X           |
| Add model           | ⌥⌘N          |
| Edit model          | ⌥⌘E          |
| Regenerate response | Action Panel |

#### FAQ

**Do I need a paid API key?**
Not necessarily. You can point the extension at a local server or proxy that needs no key, or bring a key from any provider you already have an account with. A key is only needed if your chosen endpoint requires one.

**Where are my models and keys stored?**
Locally, in a `providers.yaml` file on your Mac — the same file Raycast AI uses. Your keys are only sent to the provider you configure, never to any other service.

**Why a config file instead of settings in Raycast?**
Using Raycast's native `providers.yaml` means the same models work in both Raycast AI and this extension — one file, no duplication. You can edit models through the extension, so you rarely need to touch the file by hand.

**Can I use a different config file?**
Yes. In the extension details you'll see two settings: **Custom Configuration File** lets you pick a file, and **Configuration File Path** shows the default path (you can edit it too). If you pick a custom file, that wins; otherwise the path is used.

**What if my config file is broken?**
The extension shows a setup page where you can open the file, fix it, and retry. It won't overwrite a broken file without your say-so.

**Are my conversations sent anywhere?**
Only to the model provider you chose, as part of your chat. Conversations are saved locally on your Mac. Closing the window stops generation.

#### Privacy

- Keys stay in your local `providers.yaml` and go only to your chosen provider.
- Conversations and their context are stored locally; closing the window stops generation.

#### Advanced: Edit `providers.yaml` Directly

Most users don't need this — the Add Model form writes the file for you. If you prefer to edit it by hand, the default location is `~/.config/raycast/ai/providers.yaml`:

```yaml
providers:
  # Endpoint that needs a key — each model gets its own key entry
  - id: cloud
    name: My Cloud Provider
    base_url: https://api.example.com/v1
    api_keys:
      model-gpt-4o: sk-your-api-key
    models:
      - id: gpt-4o
        name: GPT-4o
        provider: model-gpt-4o
      - id: gpt-4o-mini
        name: GPT-4o Mini

  # Local server or proxy that needs no key — just omit api_keys
  - id: local
    name: My Local Server
    base_url: http://localhost:xxx/v1
    models:
      - id: llama3.2
        name: Llama 3.2
```

- `id` — short identifier for the provider; `name` is what you see in the menu
- `base_url` — the API root (a trailing `/chat/completions` is removed automatically)
- `api_keys` — optional; maps a label to your key. The Add Model form creates a separate `model-<id>` entry per model so changing one key never affects another
- `models[].id` — the exact model name your provider expects; `name` is the display label
- `models[].provider` — optional; points a model at one of the `api_keys` labels. Leave it out for models that need no key
