docs/getting-started/authorizing-with-cline.mdx
Cline connects to AI models through a provider. You have two paths:
<CardGroup cols={2}> <Card title="Cline Provider" icon="bolt"> Sign in with Google, GitHub, or email. No API keys to manage — access multiple models with built-in billing, free options, and early access to new releases.**Best for:** Most users, fastest setup
**Best for:** Enterprise, custom billing, local models
**BYOK:** Paste your API key from your provider's dashboard.
**Local:** No key needed — just ensure your local server is running.
<Note>
API keys are stored in your system's credential manager and sent only to your selected provider. They are never logged or transmitted to Cline's servers.
</Note>
The Cline Provider gives you one account, one billing relationship, and access to models from Anthropic, OpenAI, Google, and more.
Click Add Credits in Cline settings or visit your account dashboard. Credits work across all available models.
Use your own API keys when you need specific billing arrangements, higher rate limits, access to beta models, or local privacy.
| Provider | Best For | Setup Guide |
|---|---|---|
| OpenRouter | Multiple models, competitive pricing | Setup |
| Anthropic | Direct Claude access | Setup |
| Claude Code | Claude Max/Pro subscription | Setup |
| OpenAI | GPT models | Setup |
| Google Gemini | Large context windows | Setup |
| AWS Bedrock | Enterprise | Setup |
| DeepSeek | Great value | Setup |
Run models on your own hardware for complete privacy and zero per-request costs.
| Provider | Best For | Setup Guide |
|---|---|---|
| Ollama | Easy setup, wide model selection | Setup |
| LM Studio | GUI-based model management | Setup |
Local models require sufficient hardware (especially GPU memory). See Running Models Locally for requirements.
| Priority | Recommended Model |
|---|---|
| Reliability | Claude Sonnet 4 |
| Value | Qwen3 Coder |
| Speed | Cerebras GLm 4.6 |
| Privacy | Any Ollama/LM Studio model |
| Existing subscription | Claude Code with Max/Pro |
# Authenticate from the terminal
cline auth
# Shorthand
cline a
Opens a browser for OAuth, same as the IDE extension. Your session persists until you sign out.
| 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. Ask your admin about permissions. Sign out and back in. |