{"id":17383174,"url":"https://github.com/jhonesto/igpt","last_synced_at":"2026-04-28T08:39:17.659Z","repository":{"id":210676563,"uuid":"727100113","full_name":"jhonesto/igpt","owner":"jhonesto","description":"Interactive GPT for text completions models","archived":false,"fork":false,"pushed_at":"2024-07-15T04:14:40.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T20:49:36.513Z","etag":null,"topics":["ai","chatgpt","cli","openai","shellscript","text-completion"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/jhonesto.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":"2023-12-04T07:23:17.000Z","updated_at":"2024-07-15T04:14:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"8744074a-8168-4167-a802-a136e7d9695b","html_url":"https://github.com/jhonesto/igpt","commit_stats":null,"previous_names":["jhonesto/igpt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jhonesto/igpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhonesto%2Figpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhonesto%2Figpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhonesto%2Figpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhonesto%2Figpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhonesto","download_url":"https://codeload.github.com/jhonesto/igpt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhonesto%2Figpt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32373514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["ai","chatgpt","cli","openai","shellscript","text-completion"],"created_at":"2024-10-16T07:40:50.528Z","updated_at":"2026-04-28T08:39:17.642Z","avatar_url":"https://github.com/jhonesto.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iGPT\nInteractive GPT for text completions models\n\nWelcome to iGPT, one way to call OpenAI's GPT models from Bash! This script allows you to easily query the OpenAI API from anywhere, using the text completions models available.\n\n## Dependencies\n\n**bash**: The born again shell. An sh-compatible shell to run sh scripts.\n\n**curl**: A tool to transfer data from or to a server\n\n**python**: To convert the json reponses\n\n## Installation\n\nJust download this script and run in your terminal by typing\n\n`bash igpt.sh` \n\n![figura 000](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt000.png)\n\nor make it executable and run it once\n\n`chmod +x igpt.sh` \n\nand then just run `./igpt.sh`\n\n![figura 001](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt001.png)\n\n## Docker Image\n\nYou can download this image from [docker hub](https://hub.docker.com/r/jhonesto/igpt)\n\n## Usage\n\nTo get started, you need to have an [OpenAI API Key](https://platform.openai.com/account/api-keys)\n\nopen your terminal or terminal emulator and run \n\n`bash igpt.sh`\n\nIf your TOKEN (**OpenAI API Key**) is empty you must informing before using. \n\n![figura 002](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt002.png)\n\nor run the program passing the TOKEN value\n\n`TOKEN=YOUR-TOKEN-HERE bash igpt.sh`\n\n![figura 003](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt003.png)\n\nNow you can make prompts to OpenAI. Enjoy it!\n\n![figura 003a](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt003a.png)\n\n### Default values\n\n| FIELD | DESCRIPTION |\n| --- | --- |\n| TOKEN | (OpenAI API Key) Default is empty,  please provide a token before starting to prompt. |\n| MODEL | gpt-3.5-turbo-instruct |\n| TEMPERATURE | 1.0 |\n| MAX_TOKENS | 1000 |\n\nYou can also start this program changing the default values:\n\n```shell\n\nTOKEN=TOKEN-HERE MODEL=YOUR-MODEL TEMPERATURE=0.9 MAX_TOKENS=1000  bash igpt.sh\n\n```\n\n![figura 004](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt004.png)\n\n\n### Interactive menu\n\nJust type `?` to interact with the menu and you'll see these following options:\n\n| OPTION | DESCRIPTION |\n| --- | --- |\n| 1) Interact to ChatGPT |  Return to  prompt |\n| 2) Insert Tokens | To change or insert a new Token |\n| 3) Change Model | To change text completion models |\n| 4) Change Temperature | To change the temperature of your response, from 0 to 2. |\n| 5) Change Max Tokens | To change the max. tokens, according to the model. |\n| 6) Quit | To exit the app. |\n\nWhat would you like to do? [1-6]\n\n![figura 005](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt005.png)\n\nYou can choose an option from the list and follow the instructions in the terminal.\n\n![figura 006](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt006.png)\n\nRemember your [OpenAI API Key](https://platform.openai.com/account/api-keys) must be valid.\n\n![figura 007](https://raw.githubusercontent.com/jhonesto/files/main/images/iGPT/gpt007.png)\n\n## Tip\n\nIf you don't like the colors or want to try new colors, you can change the INPUT_COLOR, OUTPUT_COLOR, INFO_COLOR and ERROR_COLOR parameters according to the ASCII table.\n\n## Limitations\n\nThis script runs in a text completion mode from OpenAI's API, and I'm working on it to use other endpoints.\n\nThis script runs on Linux. I haven't tested it on Windows, so I recommend using it with WSL.\n\n## Contributing\nIf you notice any issues or want to contribute to the project, feel free to create an issue or a pull request on the Github repository. I appreciate all contributions and feedback!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhonesto%2Figpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhonesto%2Figpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhonesto%2Figpt/lists"}