# Authorization

> Authenticate with Cline and choose your first AI model

- 网址：https://funcoding.ai/agents/cline/getting-started/authorizing-with-cline/
- 来源：Cline 官方文档原文（英文），Apache-2.0 许可，同步于 2026-10-11
- 官方原文：https://docs.cline.bot/getting-started/authorizing-with-cline

---
Cline connects to AI models through a **provider**. You have three common paths:

- **Cline (usage-billing)** (recommended): sign in with Google/GitHub/email, no API key setup.
- **ClinePass**: a $9.99/month subscription provider that offers 2-5x the usage on popular open coding models compared to standard API rate.
- **Bring Your Own Key (BYOK)**: use your own provider credentials (cloud or local runtimes).

## Menu

- [IDE Setup](#ide-setup)
- [CLI Setup](#cli-setup)

## IDE Setup

**Open Cline Settings**

Click the settings icon (⚙️) in the Cline panel.

**Select Provider**

Choose your desired provider from the **API Provider** dropdown.

**Authenticate**

- **Cline (usage-billing):** Click **Sign In** and complete OAuth.
- **ClinePass:** Select **ClinePass**, click **Sign In**, and subscribe if prompted.
- **BYOK cloud provider:** Paste your API key into the **API Key** field.
- **Local runtime (Ollama/LM Studio):** no key needed; ensure runtime is running.

**Select Model**

Choose your desired model from the **Model** dropdown.

## Provider Options

### Cline (usage-billing)

- One sign-in, no key management
- Built-in billing and free model options
- Access to multiple providers from one account

Add credits in Cline settings or at [app.cline.bot/dashboard](https://app.cline.bot/dashboard).

### ClinePass

- Flat **$9.99/month** subscription
- 2-5x the usage on popular open coding models compared to standard API rate
- Curated open coding models including GLM, Kimi, DeepSeek, and MiMo

Subscribe from the [ClinePass dashboard](https://app.cline.bot/dashboard/subscription?personal=true), then select **ClinePass** as your provider in Cline. See the [ClinePass guide](https://funcoding.ai/agents/cline/getting-started/clinepass/) for included models and reference pricing.

### BYOK (cloud + local)

### Cloud Providers

| Provider | Best For | Setup Guide |
|----------|----------|-------------|
| **OpenRouter** | Multiple models, competitive pricing | [Setup](https://funcoding.ai/agents/cline/provider-config/openrouter/) |
| **Anthropic** | Direct Claude access | [Setup](https://funcoding.ai/agents/cline/provider-config/anthropic/) |
| **Claude Code** | Claude Max/Pro subscription | [Setup](https://funcoding.ai/agents/cline/provider-config/anthropic/) |
| **OpenAI** | GPT models | [Setup](https://funcoding.ai/agents/cline/provider-config/openai/) |
| **Google Gemini** | Gemini models | [Setup](https://funcoding.ai/agents/cline/provider-config/google-gemini/) |
| **AWS Bedrock** | Enterprise | [Setup](https://funcoding.ai/agents/cline/provider-config/aws-bedrock/api-key/) |
| **DeepSeek** | Great value | [Setup](https://funcoding.ai/agents/cline/provider-config/deepseek/) |

### Local Models

Run models on your own hardware for complete privacy and zero per-request costs.

| Provider | Best For | Setup Guide |
|----------|----------|-------------|
| **Ollama** | CLI-based local runtime | [Setup](https://funcoding.ai/agents/cline/running-models-locally/overview/#runtime-options) |
| **LM Studio** | GUI-based local runtime | [Setup](https://funcoding.ai/agents/cline/running-models-locally/overview/#runtime-options) |

Local models require sufficient hardware (especially GPU memory). See [Running Models Locally](https://funcoding.ai/agents/cline/running-models-locally/overview/) for requirements.

## CLI Setup

```bash
# Authenticate from the terminal
cline auth

# Shorthand
cline a
```

Runs the same auth flow as IDE setup.

## Troubleshooting

| Issue | Fix |
|-------|-----|
| "Unauthorized: Please sign in" | Session expired. Click **Sign In** to re-authenticate. |
| Browser doesn't open | Check default browser settings. Copy the URL from the Cline output panel manually. |
| Frequent re-authentication | Check org security policies. Ensure you're not clearing IDE secrets. Try a full sign-out/sign-in. |
| Can't access organization | Verify membership at [app.cline.bot](https://app.cline.bot). Ask your admin about permissions. Sign out and back in. |
