# Add Your First Model

Subscribe to GitHub Copilot and register its model from the TUI.

## 2. Subscribe to GitHub Copilot

GitHub Copilot ($10/mo) is the lowest-cost starting point Agenvoy recommends: the price is fixed monthly, so an agent that takes a few extra turns doesn't move the bill.

Agenvoy no longer recommends a free plan. Since 2026-11-09 (5:40 PM PT), Ollama Cloud's Free plan is pay-as-you-go, and its hosted models (`gemma4:31b`, `gpt-oss:120b`, `gpt-oss:20b`, `nemotron-3-super`, `nemotron-3-ultra`) need purchased credits. Running models locally with Ollama stays free, but small local models call tools unreliably.

1. Open **[github.com/features/copilot/plans](https://github.com/features/copilot/plans)**
2. Sign in and subscribe to the $10/mo plan

## 3. Add the model

Start the TUI:

```bash
agen
```

Then, inside it:

| Step | What you do |
|---|---|
| 1 | Type `/model` and press **Enter** |
| 2 | Choose **add** — "add model from provider" |
| 3 | The picker opens on the **OAuth** tab. Choose **GitHub Copilot** |
| 4 | The popup shows a verification URL and a user code; with a GUI the page opens by itself (**Enter** re-opens it); enter the code and approve within 10 minutes. The token goes straight to the OS keychain — never into a config file, never into the conversation |
| 5 | Pick the **`luna`** model from your Copilot plan |

That is the whole setup. The model is registered in `~/.config/agenvoy/config.json`; the credential is not. Credentials land in the OS keychain (`security` on macOS, `secret-tool` on Linux) under the service name `agenvoy`; when `secret-tool` is unavailable they go to `~/.config/agenvoy/.secrets` (mode 0600). Reads try the keychain, then that file, then an environment variable of the same name.

> Pick the `luna` model because its quota drains slowly enough for daily use and it is capable enough for most work. **Shift+U** shows how much Copilot quota is left.
