> ## Documentation Index
> Fetch the complete documentation index at: https://concentrate.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Copilot CLI

> Run GitHub Copilot CLI on Concentrate models with the Concentrate CLI and one API key.

> [!NOTE]
>
> GitHub Copilot CLI is the `copilot` command in your terminal. To set up the GitHub Copilot desktop app instead, see the [Concentrate CLI](https://concentrate.ai/docs/integrations/cli.md#tool-notes).

> [accordion] Reasons to Use Concentrate with GitHub Copilot CLI
>
> 1. **No Copilot plan needed** — Use Concentrate models without a GitHub sign-in or Copilot subscription.
> 2. **More model choice** — Pick Claude, OpenAI, and other models from the Concentrate catalog.
> 3. **Prompt caching for Claude** — Claude models use the Messages API, so long sessions read most of their input from the [cache](https://concentrate.ai/docs/api-reference/endpoint/prompt-caching.md).
> 4. **Spend controls** — Manage usage with Concentrate keys and budgets.
> 5. **Usage analytics** — Review requests, models, tokens, and costs in your [dashboard](https://concentrate.ai/dashboard).

## Quick Start

GitHub Copilot CLI runs on Concentrate through the [Concentrate CLI](https://concentrate.ai/docs/integrations/cli.md) (`cn`, beta).

> [accordion] View prerequisites (before you begin)
>
> * macOS or Linux, with Node.js 22.13 or newer
> * A Concentrate account with credits. You can sign in with `cn login`, or create an API key at [concentrate.ai/api-keys](https://concentrate.ai/api-keys).
> * GitHub Copilot CLI installed and on your `PATH`:
>
>   ```bash theme={null}
>   npm install -g @github/copilot
>   ```

**1. Install the Concentrate CLI**

```bash theme={null}
curl -fsSL https://raw.githubusercontent.com/concentrateai-hq/cli/main/install.sh | bash
```

If `cn` isn't found afterward, add `~/.local/bin` to your `PATH` with the line the installer printed, then open a new terminal.

**2. Sign in**

```bash theme={null}
cn login
```

Sign-in is rolling out gradually; if it isn't available for you yet, `cn` asks you to paste a key instead. You can also run `cn setup` to paste a key.

**3. Start Copilot CLI**

```bash theme={null}
cn copilot
```

Copilot starts on Claude Sonnet. Add `--model <id>` to pick another model, or switch inside Copilot with `/model`.

`cn copilot` adds Concentrate for that session only and keeps your key out of Copilot's files. Models you added to Copilot yourself are still listed.

### Use the plain `copilot` command

To make your normal `copilot` command list Concentrate models, run:

```bash theme={null}
cn configure copilot-cli
```

This adds the Concentrate providers to `~/.copilot/providers.json`. Copilot keeps your key in that file, readable only by you. `cn key` updates it, and `cn refresh` picks up new models. To switch back, run `cn reset copilot-cli`. Providers you added yourself are left alone.

## Use Different Models

Concentrate shows up as three providers in `/model`, so each model uses the API it's fastest and cached on:

| Provider | Models |
| - | - |
| `concentrate-claude` | Claude models |
| `concentrate-openai` | OpenAI models |
| `concentrate` | Every other model |

Every model listed supports tool calls. Run `cn models` to browse the catalog.

## Resume a Conversation

Run the resume command from the project folder where the conversation started:

```bash theme={null}
cn copilot resume               # Pick from saved conversations
cn copilot resume <session-id>
cn copilot continue             # Continue the latest one
```

A resumed session keeps the model it last used. If you switch models inside Copilot, `cn copilot` remembers that model for next time.

## Remove Concentrate AI

If you used `cn configure copilot-cli`, run `cn reset copilot-cli`. `cn logout` also removes the Concentrate providers along with your saved key.

## Troubleshooting

> [accordion] cn can't find Copilot CLI
>
> Install it with `npm install -g @github/copilot`, make sure `copilot` is on your `PATH`, then run `cn copilot` again.

> [accordion] Concentrate models are missing in plain copilot
>
> Run `cn configure copilot-cli`, or `cn refresh` if you configured it before. `cn copilot` always uses the current catalog.

> [accordion] API key is missing or invalid
>
> Run `cn login` to sign in, `cn setup` to paste a key, or `cn key` to replace one. A 402 response means the account needs credits.

> [accordion] Something else is wrong
>
> Run `cn --version` and `cn doctor`, then email the output to [support@concentrate.ai](mailto:support@concentrate.ai).

## Next Steps

> [card] [Concentrate CLI](https://concentrate.ai/docs/integrations/cli.md)
>
> Every `cn` command and supported tool.

> [card] [Available Models](https://concentrate.ai/docs/api-reference/endpoint/list-models.md)
>
> Browse the model catalog.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.