Cline Integration
Use Airforce as the backend for the Cline VS Code extension (formerly Claude Dev). Any tool-capable Airforce model becomes usable for read/edit/bash inside the editor.
Cline ships a built-in "OpenAI Compatible" provider. Point it at https://api.airforce/v1, paste your Airforce API key, and type a model ID — that's it.
Install
Install from the VS Code Marketplace — the extension ID is saoudrizwan.claude-dev (display name: Cline).
code --install-extension saoudrizwan.claude-devOr open the Extensions panel (Ctrl+Shift+X / ⇧⌘X) and search for Cline.
إعداد Airforce كمزود
- Click the Cline icon in the sidebar, then the ⚙️ (settings) icon at the top-right of the Cline panel.
- Under مزود API, select OpenAI Compatible from the dropdown.
- Fill in the fields exactly:
| Field | Value |
|---|---|
| Base URL | https://api.airforce/v1 |
| مفتاح API | sk-air-… (from your Airforce dashboard) |
| Model ID | claude-sonnet-4.5 (or any tool-capable Airforce model) |
مرجع معرّف النموذج. The OpenAI-Compatible provider in Cline expects you to type the model ID manually — it does not auto-fetch a list. Copy any id from /v1/models, and prefer one marked Tools ✓ on the models page — Cline relies on tool calls for every file edit, bash run, and completion action.
Optional: model pricing + context
Cline can display cost and context-size hints in the chat footer. Under إعدادات النموذج you can enter:
- نافذة السياق — e.g. 200000 for Claude Sonnet 4.5, 1048576 for GPT-5.
- الحد الأقصى لرموز الإخراج — usually 8192 or 16384 depending on model.
- Input Price / Output Price — copy from the models page (prices are per 1M tokens).
Troubleshooting
Cline says "Tool use not supported" or silently returns plain text
The upstream provider for that model strips tools from the request. Switch to a model marked Tools ✓ on the models page.
401 / "Invalid API key"
Make sure the Base URL is exactly https://api.airforce/v1 (with the /v1) and the API key starts with sk-air-. No Bearer prefix — Cline adds that itself.