Skip to content

Make GUI use only local HAR/OpenaiChat provider without fetching third-party MCP data #3387

@plia7

Description

@plia7

Hi,

I’m running the G4F GUI locally with the following command:

python3 -m g4f.cli gui --port 8080

and accessing it at 127.0.0.1:8080. I want to use only my own OpenaiChat.har file and a specific OpenaiChat provider for all requests.

Even after removing the MCP server URL (https://mcp.g4f.space/mcp) from the settings, the GUI still tries to fetch data from it and repopulates the provider/model lists. This is confusing because the provider (OpenaiChat) I want to use does not appear in the MCP list at all, yet the GUI keeps trying to pull MCP data. Essentially I want to limit the GUI providers to the way I do it in my cli script: from g4f.Provider import OpenaiChat

My question is:

How can I configure or modify the GUI to completely ignore MCP / external servers?

I want the GUI to only show my local provider and models based on my HAR file, without any third-party network calls.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions