# Other tools

> Connect Aider, Roo Code, or any custom OpenAI-compatible or Anthropic-compatible tool to HeyEly.

Almost any AI coding tool only needs two inputs to connect to HeyEly: the right base URL and your API key.

## Set up

1. Generate a key in [Developers](https://heyely.si/keys).
2. Match the base URL to your client's API dialect:

| The tool offers                             | Base URL               |
| ------------------------------------------- | ---------------------- |
| OpenAI, OpenAI-compatible, or custom OpenAI | `https://heyely.si/v1` |
| Anthropic or Anthropic-compatible           | `https://heyely.si`    |

3. Paste your `sk-df-...` key into the tool's API key field (some Anthropic clients label it an auth token).
4. Copy an exact model ID from [Models](https://heyely.si/docs/models).
5. If your client asks for context window or output token limits, copy those values from the model's catalog page.

When a client lets you pick between wire formats, start with Chat Completions; select Responses only if the tool requires it exclusively.

## Verify

Test your key directly from the terminal first:

```bash
curl https://heyely.si/v1/key \
  -H "Authorization: Bearer $HEYELY_API_KEY"
```

A valid response returns your key label and remaining credit. Next, send a prompt from your tool and confirm the call shows up first under **Spend** in [Credit and usage](https://heyely.si/usage).

## Aider

Aider routes custom OpenAI-compatible endpoints using `OPENAI_API_BASE` and `OPENAI_API_KEY`, and expects an `openai/` prefix ahead of the HeyEly catalog ID.

**macOS and Linux**

```bash
export OPENAI_API_BASE="https://heyely.si/v1"
export OPENAI_API_KEY="$HEYELY_API_KEY"
aider --model openai/anthropic/claude-sonnet-5.5
```

**Windows**

```powershell
$env:OPENAI_API_BASE = "https://heyely.si/v1"
$env:OPENAI_API_KEY = $env:HEYELY_API_KEY
aider --model openai/anthropic/claude-sonnet-5.5
```

The leading `openai/` tells Aider to speak OpenAI Chat Completions, while everything after it is sent verbatim as the HeyEly model ID. You can also pass `--weak-model` with another prefixed ID for lightweight tasks like commit messages.

## Roo Code

Pick the **OpenAI Compatible** provider inside Roo Code and fill in the values from [Set up](#set-up).

## Troubleshooting

| You see                   | Cause                                       | Fix                                                                      |
| ------------------------- | ------------------------------------------- | ------------------------------------------------------------------------ |
| `404` on every request    | Missing or duplicated `/v1` in the base URL | OpenAI-compatible tools end in `/v1`; Anthropic-compatible tools omit it |
| `401 invalid_api_key`     | Extra whitespace or quotes around the key   | Paste the raw `sk-df-...` key cleanly                                    |
| `404 model_not_found`     | Tool altered casing or truncated the ID     | Enter the exact catalog ID as published                                  |
| Empty model dropdown      | Client expects a different discovery path   | Type the catalog model ID manually                                       |
| Aider rejects the model   | Missing `openai/` prefix                    | Pass `--model openai/` followed by the full catalog ID                   |
| Requests still hit OpenAI | `OPENAI_API_BASE` was not exported          | Export it in the same shell running Aider                                |
