Install with Docker
Instructions on how to install g4f using Docker
Install Docker
G4F can be run using Docker
. Ensure that you have Docker installed on your system.
You can check if you have Docker
installed by running the following command in your terminal:
If you don’t have Docker installed, you can download it from the official Docker website.
Pull the g4f Docker image
You can pull the g4f
Docker image using the following command:
This will download the latest version of the g4f Docker image.
Run the g4f Docker container
Once the image is pulled, you can run the g4f Docker container with the following command:
This command will start the g4f container and expose the necessary ports.
Access the Web UI
After starting the container, you can access the included web client at:
Alternatively, you can set the API base in your own client to:
This can be used with the openai python package, API Specifications
(Optional) View the container desktop
If you need to log in to a provider, you can view the desktop from the container at:
Was this page helpful?