{"id":19750927,"url":"https://github.com/sheepla/g4fi","last_synced_at":"2025-08-31T14:04:36.393Z","repository":{"id":236528162,"uuid":"792784726","full_name":"sheepla/g4fi","owner":"sheepla","description":"A command line client for g4f","archived":false,"fork":false,"pushed_at":"2024-05-12T05:22:55.000Z","size":19,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-17T00:27:47.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sheepla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-27T15:14:57.000Z","updated_at":"2024-06-19T06:32:44.972Z","dependencies_parsed_at":"2024-04-27T16:27:50.548Z","dependency_job_id":"03dc0c74-3c38-41ef-a49c-856d0b6db2af","html_url":"https://github.com/sheepla/g4fi","commit_stats":null,"previous_names":["sheepla/g4fi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sheepla/g4fi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fg4fi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fg4fi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fg4fi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fg4fi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheepla","download_url":"https://codeload.github.com/sheepla/g4fi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fg4fi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272988919,"owners_count":25026961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T02:41:13.322Z","updated_at":"2025-08-31T14:04:36.368Z","avatar_url":"https://github.com/sheepla.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# g4fi\n\n\u003c/div\u003e\n\n**g4f-interactive** - A simple command line client for [g4f](https://github.com/xtekky/gpt4free)\n\n## Installation\n\n```\ngit clone https://github.com/sheepla/g4fi.git\ncd g4fi\ngo install\n```\n\n## Usage\n\nUsing this tool requires the g4f server to be running and the ability to communicate with the server on the corresponding port number (default: 8080). If you are using Docker, you can start the container with the following:\n\n```sh\ndocker run --rm -it -p 8080:8080 -p 1337:1337 -p 7900:7900 --shm-size=\"2g\"  hlohaus789/g4f:latest\n```\n\nCommand line usage is below:\n\n```\nUsage: g4fi [--timeout TIMEOUT] [--server SERVER]\n\nOptions:\n  --timeout TIMEOUT, -t TIMEOUT\n                         Timeout seconds [default: 30]\n  --server SERVER, -s SERVER\n                         hostname and port of g4f API instance [default: localhost:8080]\n  --help, -h             display this help and exit\n```\n\nWhen you launch the command, it initiates an interactive session. \nThis session allows to input prompt messages and receive corresponding results. \nYou can utilize line editing with key bindings similar to GNU ReadLine, to efficiently input your prompt messages.. \nTo exit the interactive session, simply type `Ctrl-D`.\n\n```\n[you@your-computer]$ g4fi\n\n\u003e hi\n\nHello! How can I assist you today?\n\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheepla%2Fg4fi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheepla%2Fg4fi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheepla%2Fg4fi/lists"}