Cline
Use AICredits with Cline through its OpenAI-compatible provider settings for IDE and CLI coding agents.
Use this page with an AI assistant
Opens a new chat with this docs URL and the correct AICredits base URLs.
Cline is an open-source coding agent for IDEs, CLI workflows, and automations. Configure Cline's OpenAI-compatible provider to route model calls through AICredits.
Provider Settings
In Cline, choose the OpenAI-compatible API provider and set:
| Setting | Value |
|---|---|
| Base URL | https://api.aicredits.in/v1 |
| API key | sk-your-aicredits-key |
| Model | Pick from Models |
Recommended model IDs:
anthropic/claude-sonnet-4.5
openai/gpt-4o-mini
google/gemini-2.5-flashCoding-Agent Defaults
Use a low-cost model for exploration and a stronger model for edits or review:
| Task | Model |
|---|---|
| Quick explanations | openai/gpt-4o-mini |
| Multi-file edits | anthropic/claude-sonnet-4.5 |
| Long-context planning | google/gemini-2.5-flash |
Create a separate AICredits key for Cline and set a monthly cap. Agentic coding sessions can be bursty.
Verify
Ask Cline:
Reply with "AICredits via Cline" and do not edit files.Then check Dashboard -> Usage.
Troubleshooting
Requests go to another provider - Confirm the active provider is OpenAI-compatible and the base URL is https://api.aicredits.in/v1.
Model not available - Use an exact model ID from Models.
High usage - Prefer a small planning model and ask Cline to summarize before making long edits.