{"id":19397665,"url":"https://github.com/dmosc/gptc","last_synced_at":"2025-04-24T05:31:13.852Z","repository":{"id":65964198,"uuid":"595875402","full_name":"dmosc/gptc","owner":"dmosc","description":"ChatGPT CLI written in Rust","archived":false,"fork":false,"pushed_at":"2023-02-26T17:13:42.000Z","size":28107,"stargazers_count":6,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T23:51:12.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/dmosc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-02-01T01:30:59.000Z","updated_at":"2023-06-28T03:23:40.000Z","dependencies_parsed_at":"2023-03-10T23:25:24.633Z","dependency_job_id":null,"html_url":"https://github.com/dmosc/gptc","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmosc%2Fgptc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmosc%2Fgptc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmosc%2Fgptc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmosc%2Fgptc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmosc","download_url":"https://codeload.github.com/dmosc/gptc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250572248,"owners_count":21452327,"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","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-10T10:43:30.323Z","updated_at":"2025-04-24T05:31:13.844Z","avatar_url":"https://github.com/dmosc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n\t`p.align` is officially deprecated from MDN standard but still\n\tsupported by all major browsers.\n\n\thttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/center#browser_compatibility\n--\u003e\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"assets/readme-banner.png\" height=\"300\"\u003e\n\u003c/p\u003e\n\nA light weight CLI to interact with the OpenAI models from your terminal written in Rust. OpenAI's LLMs are bringing a whole new dimension to the development experience and it's important to bridge the communication with our every day tools.\n\nIf you rely on tools like ChatGPT or Github Copilot to aid you while coding, `gptc` might be a right solution to extend that assistance to the terminal. It can help you with tasks like:\n\n- Come up with terminal commands from all major operating systems.\n- Create boilerplate code for most languages (including HTML, CSS, etc.).\n- Answer questions about technical acronyms.\n\nAnd endless things if you get creative enough...\n\n## Installation and setup\n\nRun the following script to download the latest `gptc` binary:\n\n```\ncurl -fsSL https://raw.githubusercontent.com/dmosc/gptc/main/scripts/install.sh | sh\n```\n\nDuring installation, `gptc` will prompt you for an OpenAI API key and export the `$OPENAI_KEY` environment variable inside your shell configuration file (i.e. `.zshrc`, `.bashrc`) with the provided key. The script installs `gptc`'s binary inside `/usr/local/bin` and appends the path to your `$PATH` variable if it isn't registered [(get an API key from OpenAI's platform)](https://platform.openai.com/account/api-keys).\n\n### Updated to latest version\n\nRun the following script to download `gptc`'s latest binary:\n\n```\ncurl -fsSL https://raw.githubusercontent.com/dmosc/gptc/main/scripts/update.sh | sh\n```\n\nIf all goes well you should have the freshest `gptc` version...\n\n## Usage\n\n```\ngptc \"linux script to install a binary in bin/ directory\"\ngptc -c \"create an index.html file with common html boilerplate\"\n```\n\nGet a list of flags and descriptions:\n\n```\ngptc --help\n```\n\n## Troubleshooting\n\n_Since it's a first version, feel free to ping me if something's not right._\n\n### Installation\n\nIf `gptc` is failing to install, read through the error message. Hopefully is informative enough to let you know what's going on.\n\n### Usage\n\nIf the installation is successfull, make sure that:\n\n- `$OPENAI_KEY` environment variable is set and loaded; try to `echo $OPENAI_KEY` and see if you get the key back.\n- Try `gptc --help` to get additional info on flags and what they do.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmosc%2Fgptc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmosc%2Fgptc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmosc%2Fgptc/lists"}