Cline

Use Foza models with the Cline VS Code extension

Setup#

Use Cline's OpenAI Compatible provider, not the native OpenAI provider. The compatible provider is the one that exposes Base URL, API Key, and Model ID fields.

1

Install Cline

Install the Cline extension from the VS Code Marketplace.

2

Open Cline Settings

Click the Cline icon in the sidebar, then click the Settings gear icon.

3

Select API Provider

Choose OpenAI Compatible as the API provider.

4

Configure connection

Set the following fields:

  • Base URL: https://api.foza.ai/v1
  • API Key: sk-foza-xxxxx
  • Model ID: Enter your model slug, e.g., anthropic/claude-sonnet-4.6 or openai/gpt-4o
5

Tune request settings

Start with conservative settings:

  • Temperature: 0.2 to 0.5
  • Max output tokens: 4096 or higher for coding tasks
  • Auto-approve: off until you trust the workflow
6

Run a verification task

Ask Cline:

Read the project structure and tell me which files you would inspect before changing the login page. Do not edit files.

Troubleshooting#

SymptomWhat to check
Model Not FoundThe Model ID must match a Foza model slug exactly
Invalid API KeyThe key is active and subscribed to the selected model
404 errorsBase URL should be https://api.foza.ai/v1, not the chat completions endpoint
Poor code editsSwitch to a stronger coding model such as a Claude Sonnet-class model

Cline supports all OpenAI-compatible APIs, so any model subscribed to your Foza key will work.