{"id":13643993,"url":"https://github.com/aandrew-me/tgpt","last_synced_at":"2026-02-01T11:00:47.377Z","repository":{"id":153671826,"uuid":"629049442","full_name":"aandrew-me/tgpt","owner":"aandrew-me","description":"AI Chatbots in terminal without needing API keys","archived":false,"fork":false,"pushed_at":"2025-10-03T14:43:15.000Z","size":3393,"stargazers_count":3025,"open_issues_count":18,"forks_count":324,"subscribers_count":41,"default_branch":"main","last_synced_at":"2026-01-22T01:56:13.063Z","etag":null,"topics":["ai","chatbot","chatgpt","cli","go","golang","gpt4","linux","llama","macos","mixtral","terminal","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aandrew-me.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-17T14:11:25.000Z","updated_at":"2026-01-19T11:11:38.000Z","dependencies_parsed_at":"2024-01-14T09:42:29.902Z","dependency_job_id":"be214e25-231d-467f-99d6-094167d150e9","html_url":"https://github.com/aandrew-me/tgpt","commit_stats":{"total_commits":387,"total_committers":31,"mean_commits":"12.483870967741936","dds":"0.34883720930232553","last_synced_commit":"fef399c28c080c2c91a5d3fe534d08a907db5b62"},"previous_names":["aandrew-me/terminal-gpt"],"tags_count":87,"template":false,"template_full_name":null,"purl":"pkg:github/aandrew-me/tgpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aandrew-me%2Ftgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aandrew-me%2Ftgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aandrew-me%2Ftgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aandrew-me%2Ftgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aandrew-me","download_url":"https://codeload.github.com/aandrew-me/tgpt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aandrew-me%2Ftgpt/sbom","scorecard":{"id":158903,"data":{"date":"2025-08-11","repo":{"name":"github.com/aandrew-me/tgpt","commit":"ea5b52c36ed3eded2f8985f51059a04d394be692"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/main.yml:7","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/aandrew-me/tgpt/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/aandrew-me/tgpt/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/aandrew-me/tgpt/main.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 18 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.11.0 not signed: https://api.github.com/repos/aandrew-me/tgpt/releases/238041988","Warn: release artifact v2.10.1 not signed: https://api.github.com/repos/aandrew-me/tgpt/releases/230924008","Warn: release artifact v2.10.0 not signed: https://api.github.com/repos/aandrew-me/tgpt/releases/217088845","Warn: release artifact v2.9.6 not signed: https://api.github.com/repos/aandrew-me/tgpt/releases/213555923","Warn: release artifact v2.9.5 not signed: https://api.github.com/repos/aandrew-me/tgpt/releases/213278706","Warn: release artifact v2.11.0 does not have provenance: https://api.github.com/repos/aandrew-me/tgpt/releases/238041988","Warn: release artifact v2.10.1 does not have provenance: https://api.github.com/repos/aandrew-me/tgpt/releases/230924008","Warn: release artifact v2.10.0 does not have provenance: https://api.github.com/repos/aandrew-me/tgpt/releases/217088845","Warn: release artifact v2.9.6 does not have provenance: https://api.github.com/repos/aandrew-me/tgpt/releases/213555923","Warn: release artifact v2.9.5 does not have provenance: https://api.github.com/repos/aandrew-me/tgpt/releases/213278706"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3754 / GHSA-2x5j-vhc8-9cwm","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T12:46:36.744Z","repository_id":153671826,"created_at":"2025-08-16T12:46:36.744Z","updated_at":"2025-08-16T12:46:36.744Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28977316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T09:57:52.632Z","status":"ssl_error","status_checked_at":"2026-02-01T09:57:49.143Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","chatbot","chatgpt","cli","go","golang","gpt4","linux","llama","macos","mixtral","terminal","windows"],"created_at":"2024-08-02T01:01:55.953Z","updated_at":"2026-02-01T11:00:47.364Z","avatar_url":"https://github.com/aandrew-me.png","language":"Go","funding_links":[],"categories":["Table of Contents","CLIs","Go","Vibe Coding","🚀 AI Tools for Vim, Neovim, and Terminal","A01_文本生成_文本对话","UIs","Applications"],"sub_categories":["LLM GUI","大语言对话模型及数据","Command-line(shell) interface","AI"],"readme":"\u003cimg width=\"317\" height=\"134\" alt=\"tgpt logo\" src=\"https://github.com/user-attachments/assets/ba582404-cd3a-4235-a451-c8a3cc5aef5a\" /\u003e\n\n\n# tgpt 🤖\n\n[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/aandrew-me/tgpt)](https://github.com/aandrew-me/tgpt)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/aandrew-me/tgpt)](https://github.com/aandrew-me/tgpt/releases/latest)\n![Arch Linux package](https://img.shields.io/archlinux/v/extra/x86_64/tgpt)\n![Chocolatey Version](https://img.shields.io/chocolatey/v/tgpt)\n![Homebrew Formula Version](https://img.shields.io/homebrew/v/tgpt)\n\n\n**tgpt** is a Cross-platform Command-Line Interface (CLI) tool that allows you to use AI in your Terminal.\n\n\u003cimg src=\"https://github.com/user-attachments/assets/1b554b99-79ca-45b7-87ff-7713b7fd9437\" alt=\"Demo\" width=\"500\" height=\"330\"\u003e\n\n### [Currently available providers](./md/providers.md)\n\n## Installation ⏬\n\n### Download for GNU/Linux 🐧 or MacOS 🍎\n\nThe default download location is `/usr/local/bin`, but you can change it in the command to use a different location. However, make sure the location is added to your PATH environment variable for easy accessibility.\n\nYou can download it with the following command:\n\n```bash\ncurl -sSL https://raw.githubusercontent.com/aandrew-me/tgpt/main/install | bash -s /usr/local/bin\n```\n\nIf you are using Arch Linux, you can install with pacman:\n\n```bash\npacman -S tgpt\n```\n#### Install with Homebrew\n```bash\nbrew install tgpt\n```\n\n### FreeBSD 😈 \n\nTo install the [port](https://www.freshports.org/www/tgpt):\n```\ncd /usr/ports/www/tgpt/ \u0026\u0026 make install clean\n```\nTo install the package, run one of these commands:\n```\npkg install www/tgpt\npkg install tgpt\n```\n\n### Install with Go\nYou need to [add the Go install directory to your system's shell path](https://go.dev/doc/tutorial/compile-install). \n\n```bash\ngo install github.com/aandrew-me/tgpt/v2@latest\n```\n\n### Windows 🪟\n- #### Installation Script \n    Open Powershell, copy and paste the command and press Enter to install.\n    ```\n    irm https://raw.githubusercontent.com/aandrew-me/tgpt/refs/heads/main/install-win.ps1 | iex\n    ```\n\n    Uninstall with\n    ```\n    iex \"\u0026 { $(irm https://raw.githubusercontent.com/aandrew-me/tgpt/refs/heads/main/install-win.ps1) } -Uninstall\"\n    ```\n\n\n-   **Scoop:** Package installation with [Scoop](https://scoop.sh/) can be done using the following command:\n\n    ```bash\n    scoop install https://raw.githubusercontent.com/aandrew-me/tgpt/main/tgpt.json\n    ```\n- **Chocolatey** \n    ```bash\n    choco install tgpt\n    ```    \n### From Release\n\nYou can download the executable for your operating system, rename it to `tgpt` (or any other desired name), and then execute it by typing `./tgpt` while in that directory. Alternatively, you can add it to your PATH environmental variable and then execute it by simply typing `tgpt`.\n\n## Updating ⬆️\nIf you installed the program with the installation script, you may update it with\n```bash\ntgpt -u\n```\n**It may require admin privileges.**\n\n## [Usage](./md/usage.md) \n\n### Proxy\n\nSupport:\n\n### 1. Environment variable\n\n`http_proxy` or `HTTP_PROXY` with following available formats:\n\n- Http Proxy [ `http://ip:port` ]\n- Http Auth [ `http://user:pass@ip:port` ]\n- Socks5 Proxy [ `socks5://ip:port ]`\n- Socks5 Auth [ `socks5://user:pass@ip:port` ]\n\n### 2. Configuration file\n\nSupported file locations:\n\n- `./proxy.txt` (in the same directory from where you are executing)\n- `~/.config/tgpt/proxy.txt`\n\nExample:\n\n```bash\nhttp://127.0.0.1:8080\n```\n\n## Uninstalling\nIf you installed with the install script, you can execute the following command to remove the tgpt executable\n```\nsudo rm $(which tgpt)\n```\nConfiguration file is usually located in `~/.config/tgpt` on GNU/Linux Systems and in `\"Library/Application Support/tgpt\"` on MacOS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faandrew-me%2Ftgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faandrew-me%2Ftgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faandrew-me%2Ftgpt/lists"}