# GPT4FREE Compatibility Issue with AI Coding Tools
GPT4FREE Compatibility Issue with AI Coding Tools
I've been trying to get GPT4FREE to work with cline/roocode/kilocode. But none of them seem to know how to use GPT4FREE.
It's Not a Setup Issue
I don't mean I can't set it up. No, I have everything connected. It's using the base URL, everything works. The models work.
The Actual Problem
But the problem is that when you try to actually use it, the models can't use it. For example, if it tries to use a tool, it doesn't work. It just outputs it in the chat. If it tries to do anything, it just doesn't work. And then it just randomly starts hallucinating.
Example:
I said "hello" and it said "hello blah blah blah." But then cline said, "Oh, you didn't use a tool, you were supposed to use a tool."
And then it started hallucinating. "Oh, okay, I understand, you want a modern responsive webpage for blah blah blah." And then it said, "Oh, but you didn't use a tool, or whatever."
Then they did it for the third time, and it was able to do the task, close the thing, but it hallucinated so much. And this was using a relatively good model, G L M 4.6.
My Question
I just want to ask, is there any way to make GPT4FREE actually usable inside of cline or roocode or kilocode? Or if we can build something which actually makes it work with those, because I think GPT4FREE would be like very, very popular, like super popular, if it were work inside these AI coding tools.
Maybe you could even start using it inside Cursor.
Originally posted by @MasterDJ-Crypto in https://github.com/xtekky/gpt4free/discussions/3230
This doesn't affect G4F in any way. It depends on the instructions issued by the IDE or Extension itself. If the AI can't use them, it means it doesn't know how to use that IDE or Extension. This should be configured within the IDE and Extension. For example, in Volt, there's a checkbox that passes instructions. In Cline, the instructions prompt is always visible when there's an API request, and you can simply copy it.
The majority of Integrated Development Environments (IDEs) leverage tool APIs for coding functionalities. For instance, providers such as GeminiCLI and QwenCode offer support for ToolCalls, utilizing the APIs from their respective applications.
@MasterDJ-Crypto
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.
Closing due to inactivity.