# AI providers

Connect your own Claude, ChatGPT or Kimi Code account, or an API key, to use their models in the chat next to the Lyna models.

The Lyna models are built in. Connect a provider to also use its models with your own subscription or API key.

Settings open on AI > Models with the models list and the Providers tab.

## What you can do

- Sign in with your Claude Pro/Max, ChatGPT Pro/Plus or Kimi Code account.
- Connect Anthropic or OpenAI with your own API key.
- Use the provider's models in the model picker, on your own quota.
- Disconnect a provider at any time.

## The providers

| Provider                        | How you connect                                          | Good to know                                                                                                                                             |
| ------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Lyna**                        | Built in, nothing to do                                  | **Lyna Free**, **Lyna Pro** and **Lyna Max**. They use your Free credits (10 every 24 hours, up to 100 a month) on Free and your monthly credits on Pro. |
| **Anthropic** (**Recommended**) | Sign in with **Claude Pro/Max**, or add an **API key**   | Claude models, straight from your Anthropic account.                                                                                                     |
| **OpenAI**                      | Sign in with **ChatGPT Pro/Plus**, or add an **API key** | GPT models.                                                                                                                                              |
| **Moonshot AI**                 | Sign in with **Kimi Code**                               | Kimi models.                                                                                                                                             |

Models from a connected provider run on your own subscription or API key. They do not use Lyna credits. The models of each provider are listed in [Models and providers](/features/ai/models-and-providers).

## Connect a provider

1. ### Open the providers

   Open **Settings > AI > Models** and choose the **Providers** tab.
2. ### Choose Connect

   Under **Popular Providers**, choose **Connect** next to the provider.
3. ### Pick a method

   - **Claude Pro/Max**: open the link, sign in, then paste the **Authorization Code** you receive and choose **Submit**.
   - **ChatGPT Pro/Plus** and **Kimi Code**: Lyna shows **Your code**. Open the link and enter the code. The window updates on its own when you are done.
   - **API key**: paste your key and save it.
4. ### Use its models

   The provider moves to **Connected Providers**, with a tag that shows how it is connected, such as **API Key**. Its models appear in the model picker.

> [!NOTE]
>
> **Your keys stay on the server**
>
> API keys and sign-in tokens are stored encrypted on Lyna's servers. They are never sent to your browser or written into your project.

## Disconnect

Choose **Disconnect** next to a connected provider. Its models leave the model picker. If a sign-in expires, connect the provider again.

## FAQ

### Do I need a provider to use Lyna?

No. The Lyna models work without any connection. Connect a provider when you want its models, or want to build on your own quota.

### Which plan do I need?

Any plan. Connected providers work on Free and on Pro.

## Related

- [Models and providers](/features/ai/models-and-providers): Every model and how to pick one.
- [Credits per turn](/features/ai/credits-per-turn): What the Lyna models cost.
- [MCP servers](/features/ai/mcp-servers): Give the AI more tools.
