1
Install Docker
G4F can be run using If you don’t have Docker installed, you can download it from the official Docker website.
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:2
Pull the g4f Docker image
You can pull the This will download the latest version of the g4f Docker image.
g4f
Docker image using the following command:3
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.
4
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
5
(Optional) View the container desktop
If you need to log in to a provider, you can view the desktop from the container at:
6
All set! You now have g4f running in a Docker container. You can navigate to Basic Usage for further instructions.