# Continue

> Configure HeyEly models inside Continue while keeping your API key in a separate secrets file.

Continue connects to HeyEly using its `openai` provider pointed at a custom `apiBase`. Because it speaks Chat Completions, use `https://heyely.si/v1` as the base URL.

## Set up

1. Generate a key in [Developers](https://heyely.si/keys) and save it in `~/.continue/.env` without surrounding quotes.

```bash
HEYELY_API_KEY=sk-df-...
```

2. Register your HeyEly model inside `~/.continue/config.yaml` (or `%USERPROFILE%\.continue\config.yaml` on Windows).

```yaml
name: HeyEly
version: 0.0.1
schema: v1
models:
  - name: Claude Sonnet 5.5 (HeyEly)
    provider: openai
    model: anthropic/claude-sonnet-5.5
    apiBase: https://heyely.si/v1
    apiKey: ${{ secrets.HEYELY_API_KEY }}
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use
    defaultCompletionOptions:
      contextLength: 1000000
      maxTokens: 128000
```

3. Restart your IDE so the Continue extension loads `~/.continue/.env`, then choose the new model from the chat dropdown.

Keep in mind that the IDE extension does not inherit variables exported in a terminal session. Storing your key in `~/.continue/.env` makes it available across all workspaces. Continue checks project-level `.env` and `.continue/.env` files before falling back to the global file, so check for stale workspace values if auth fails. Never commit `.env` files to source control. If you use the `cn` CLI, it also reads standard process environment variables. Refer to [Continue's secret lookup order](https://docs.continue.dev/faqs#managing-local-secrets-and-environment-variables) for full precedence rules.

## Verify

Send a quick prompt in Continue, then inspect [Credit and usage](https://heyely.si/usage). You will see the request at the top of **Spend** tagged with the model you configured.

Continue does not include a built-in status command. If replies fail to arrive, open your editor's developer console (in VS Code, run **Developer: Toggle Developer Tools**) to read the request logs.

## Pick a model

* `name` sets the friendly label shown in Continue's dropdown, while `model` is the exact slash-separated catalog ID sent to HeyEly.
* Keep `capabilities: [tool_use]` on every agentic model. Continue only enables Agent mode automatically for IDs it recognizes, which excludes prefixed IDs like `anthropic/...`. Include `image_input` for vision-capable models.
* Continue automatically routes models containing `gpt-5` through `gpt-9` (including `openai/gpt-6` IDs) to the Responses API. HeyEly supports both Responses and Chat Completions, and you can add `useResponsesApi: false` on any entry to pin it to Chat Completions.

## Troubleshooting

| You see                          | Cause                                         | Fix                                                                                                             |
| -------------------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `401 invalid_api_key`            | The secret placeholder failed to resolve      | Confirm `~/.continue/.env` defines `HEYELY_API_KEY` matching `secrets.HEYELY_API_KEY`, then restart your editor |
| Model missing from dropdown      | YAML syntax or schema header error            | Verify indentation and ensure `schema: v1` is present                                                           |
| Agent mode grayed out            | Continue assumes the model lacks tool calling | Add `capabilities: [tool_use]` to the model entry                                                               |
| `404`                            | `apiBase` is missing the `/v1` suffix         | Set `apiBase` to `https://heyely.si/v1`                                                                         |
| `404 model_not_found`            | `model` does not match HeyEly's catalog       | Copy the exact ID from the Models page                                                                          |
| Request hits unexpected endpoint | Continue auto-selected Responses API          | Add `useResponsesApi: false` to stay on Chat Completions                                                        |
