Use Cline with InferFoundry¶
Cline is an AI coding assistant that runs inside VS Code. Connect it to InferFoundry to use Claude and other models through your regional endpoint, with your data staying in your chosen geography.
Prerequisites¶
- Cline installed in VS Code
- An InferFoundry API key
Connect Cline to InferFoundry¶
- Open VS Code and click the Cline icon in the sidebar
- Click the settings gear icon at the top of the Cline panel
- Under API Provider, select OpenAI Compatible
- Set the fields:
| Field | Value |
|---|---|
| Base URL | https://gateway.dev.if-service.ai/v1 |
| API Key | Your InferFoundry API key |
| Model ID | A model from Available Models (e.g. claude-sonnet-4-5) |
- Click Save
Verify¶
Start a new Cline chat and ask a simple question. Check portal.dev.if-service.ai → Usage to confirm requests are flowing through your InferFoundry endpoint.
Troubleshooting¶
- "Invalid API key" or auth errors
- Double-check your API key and make sure the base URL includes
/v1at the end. - Model not found
- Use the exact model ID from Available Models. Cline does not auto-complete model names for custom providers.
- Slow responses
- Increase the timeout in Cline's settings. Complex tasks may need more time, especially with larger models.