DEV Community

ModelFild
ModelFild

Posted on

Connect Cline or Roo Code to ModelFold without doubling the API path

I work at ModelFold. If you are configuring the VS Code extension for Cline or Roo Code, the important choice comes before the API key: which provider will build the request URL? Here is the Claude setup from our Cline guide and Roo Code guide. It isn't a recipe for Cline CLI or Desktop.

In the ModelFold console, open API Keys, create a key, and keep it out of your repository. In the extension, go to Settings → API Provider → Anthropic and enable Use custom base URL. OpenAI Compatible is a different provider; don't select it for this example.

Field What to enter
Base URL https://modelfold.ai/anthropic
API key Your own ModelFold key, beginning with mf-
Model ID claude-opus-5-5

Stop the URL at anthropic. The extension adds the API path; putting /v1 or /messages in the base field yourself can send the request to the wrong place. If the model picker is empty, enter the ID manually rather than substituting a display name.

Check the connection before granting file access. Start a new chat with that model and ask it to “Reply with OK.” This is a real usage-billed request, not a free local test. Check that the request appears in Console → Usage. A reply checks the chat path; it doesn't prove the extension can edit files.

If you see 401, check the key and any leading or trailing spaces. For 404, compare the provider, base URL and exact model ID with the table before creating another key. If chat works but file edits don't, check tool-calling support and the extension's edit permissions separately.

For a different question—whether AI answers recommend a brand—our team also publishes dated samples at ModelFold GEO.

Top comments (0)