{"id":17816384,"url":"https://github.com/nuzair46/ask_gpt_cli","last_synced_at":"2025-07-28T17:07:29.141Z","repository":{"id":153086049,"uuid":"628055051","full_name":"Nuzair46/ask_gpt_cli","owner":"Nuzair46","description":"A ruby gem to ask OpenAI GPT API with context and history from command line","archived":false,"fork":false,"pushed_at":"2023-04-14T20:31:11.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T07:31:04.936Z","etag":null,"topics":["chatgpt","cli","ruby","ruby-gem","rubygem"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/ask_gpt_cli","language":"Ruby","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/Nuzair46.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-04-14T20:03:21.000Z","updated_at":"2023-06-10T09:08:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"df105ab2-f05c-4cb1-a858-cc9272059ec6","html_url":"https://github.com/Nuzair46/ask_gpt_cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nuzair46/ask_gpt_cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuzair46%2Fask_gpt_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuzair46%2Fask_gpt_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuzair46%2Fask_gpt_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuzair46%2Fask_gpt_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nuzair46","download_url":"https://codeload.github.com/Nuzair46/ask_gpt_cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nuzair46%2Fask_gpt_cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267552097,"owners_count":24106000,"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-07-28T02:00:09.689Z","response_time":68,"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":["chatgpt","cli","ruby","ruby-gem","rubygem"],"created_at":"2024-10-27T16:37:46.406Z","updated_at":"2025-07-28T17:07:29.100Z","avatar_url":"https://github.com/Nuzair46.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ask GPT CLI\n\n[![Gem Version](https://badge.fury.io/rb/ask_gpt_cli.svg)](https://badge.fury.io/rb/ask_gpt_cli)\n\nThe `ask_gpt_cli` is a Ruby gem that allows you to interact with the OpenAI GPT language model through the terminal with context.\n\n## Installation\n\nTo use this gem, you need to have Ruby installed on your computer. You can install it using a package manager or follow the instructions on the [official Ruby website](https://www.ruby-lang.org/en/documentation/installation/).\n\nAfter installing Ruby, you can install the `ask_gpt_cli` gem by running the following command:\n\n```bash\ngem install ask_gpt_cli\n```\n\nTo use the `ask_gpt_cli` gem, you need to set the `OPENAI_API_KEY` environment variable to your OpenAI API key. You can find your API key from [OpenAI](https://platform.openai.com/account/api-keys).\n\nSet the `OPENAI_API_KEY` environment variable by running the following command:\n\n```bash\nexport OPENAI_API_KEY=\u003cyour_api_key\u003e\n```\n\n## Usage\n\nTo use the `ask_gpt_cli` gem, run the following command:\n\n```bash\nask_gpt_cli\n```\n\nThe CLI will start, and you can ask GPT any question by typing it in the terminal. GPT will respond with an answer to your question.\n\n## Options\n\nYou can customize the behavior of the `ask_gpt_cli` gem by setting the following environment variables:\n\n- `ASK_GPT_MODEL`: The GPT model to use. Default is `gpt-3.5-turbo`.\n  - You can use `gpt-4` if you have access to the GPT-4 model.\n\nYou can set the environment variables by running the following command:\n\n```bash\nexport ASK_GPT_MODEL=\u003cmodel\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuzair46%2Fask_gpt_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuzair46%2Fask_gpt_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuzair46%2Fask_gpt_cli/lists"}