{"id":13637084,"url":"https://github.com/verdverm/chatgpt","last_synced_at":"2025-07-23T06:05:44.429Z","repository":{"id":65833610,"uuid":"600923389","full_name":"verdverm/chatgpt","owner":"verdverm","description":"ChatGPT CLI, interactive or file based sessions with context and moods.","archived":false,"fork":false,"pushed_at":"2023-05-11T19:09:00.000Z","size":70,"stargazers_count":70,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T06:58:06.925Z","etag":null,"topics":["chatgpt","cli","file-based","interactive","sessions"],"latest_commit_sha":null,"homepage":"","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/verdverm.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}},"created_at":"2023-02-13T01:16:14.000Z","updated_at":"2025-06-03T07:46:44.000Z","dependencies_parsed_at":"2024-01-06T22:00:47.923Z","dependency_job_id":null,"html_url":"https://github.com/verdverm/chatgpt","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/verdverm/chatgpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verdverm%2Fchatgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verdverm%2Fchatgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verdverm%2Fchatgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verdverm%2Fchatgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verdverm","download_url":"https://codeload.github.com/verdverm/chatgpt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verdverm%2Fchatgpt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266626115,"owners_count":23958344,"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-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","file-based","interactive","sessions"],"created_at":"2024-08-02T00:01:10.305Z","updated_at":"2025-07-23T06:05:44.256Z","avatar_url":"https://github.com/verdverm.png","language":"Go","funding_links":[],"categories":["CLI"],"sub_categories":["Special-purpose"],"readme":"# chatgpt\n\nCLI application for working with ChatGPT.\nInteractive or file based session with\nsupport for a directory of prompts.\n\nI built this for 2 reasons\n\n1. To use in vim with `!!` and stdin/out\n2. To do prompt engineering and save sessions\n\n```\ngo install github.com/verdverm/chatgpt@latest\n\nchatgpt -h\n```\n\nSet `OPENAI_API_KEY`, which you can get here: https://platform.openai.com/account/api-keys\n\n## Examples:\n\n```\nWork with ChatGPT in console.\n\nExamples:\n  # start an interactive session with gpt-3.5 or gpt-4\n  chatgpt -i\n\n  # ask chatgpt for a one-time response\n  chatgpt -q \"answer me this ChatGPT...\"\n\n  # provide context to a question or conversation\n  chatgpt context.txt -i\n  chatgpt context.txt -q \"answer me this ChatGPT...\"\n\n  # read prompt from file and --write response back\n  chatgpt convo.txt\n  chatgpt convo.txt --write\n\n  # pipe content from another program, useful for ! in vim visual mode\n  cat convo.txt | chatgpt\n\n\t# set the directory for custom prompts, defaults to \"prompts\"\n  chatgpt -P custom-prompts -p my-prompt -i\n\n  # inspect the predifined prompts, which set ChatGPT's mood\n  chatgpt -p list\n  chatgpt -p view:\u003cname\u003e\n\n  # use a prompts with any of the previous modes\n  chatgpt -p optimistic -i\n  chatgpt -p cynic -q \"Is the world going to be ok?\"\n  chatgpt -p teacher convo.txt\n\n  # edit mode\n  chatgpt -e ...\n\n  # code mode\n  chatgpt -c ...\n\n  # model options (https://platform.openai.com/docs/api-reference/completions/create)\n  chatgpt -T 4096    # set max tokens in reponse  [0,4096]\n  chatgpt -C         # clean whitespace before sending\n  chatgpt -E         # echo back the prompt, useful for vim coding\n  chatgpt --temp     # set the temperature param  [0.0,2.0]\n  chatgpt --topp     # set the TopP param         [0.0,1.0]\n  chatgpt --pres     # set the Presence Penalty   [-2.0,2.0]\n  chatgpt --freq     # set the Frequency Penalty  [-2.0,2.0]\n\n  # change model selection, available models are listed here:\n  # https://pkg.go.dev/github.com/sashabaranov/go-openai#Client.ListModels\n  chatgpt -m text-davinci-003  # set the model to text-davinci-003 (the default)\n  chatgpt -m text-ada-001      # set the model to text-ada-001\n\nUsage:\n  chatgpt [file] [flags]\n\nFlags:\n  -x, --clean               remove excess whitespace from prompt before sending\n  -C, --count int           set the number of response options to create (default 1)\n  -E, --echo                Echo back the prompt, useful for vim coding\n  -e, --edit                request an edit with ChatGPT\n      --freq float          set the Frequency Penalty parameter\n  -h, --help                help for chatgpt\n  -i, --interactive         start an interactive session with ChatGPT\n  -m, --model string        select the model to use with -q or -e (default \"text-davinci-003\")\n      --pres float          set the Presence Penalty parameter\n  -p, --prompt string       prompt to add to ChatGPT input, use 'list' or 'view:\u003cname\u003e' to inspect predefined, '\u003cname\u003e' to use a prompt, or otherwise supply any custom text\n  -P, --prompt-dir string   directory containing custom prompts, if not set the embedded defaults are used (default \"prompts\")\n  -q, --question string     ask a single question and print the response back\n      --temp float          set the temperature parameter (default 0.7)\n  -T, --tokens int          set the MaxTokens to generate per response (default 1024)\n      --topp float          set the TopP parameter (default 1)\n      --version             print version information\n  -w, --write               write response to end of context file\n```\n\n### Pretexts:\n\nSet `CHATGPT_PROMPT_DIR` to set the default for `-P/--prompt-dir`\n\n```\n$ chatgpt -p list -P ./prompts\ncoding\ncynic\nliar\noptimistic\nsam\nteacher\nthoughtful\n```\n\n### Interactive Commands:\n\n```\n$ chatgpt -i\nusing chat compatible model: gpt-3.5-turbo \n\nstarting interactive session...\n  'quit' to exit\n  'save \u003cfilename\u003e' to preserve\n  'clear' to erase the context\n  'context' to see the current context\n  'prompt' to set the context to a prompt\n  'tokens' to change the MaxToken param\n  'count' to change number of responses\n  'temp'  set the temperature param  [0.0,2.0]\n  'topp'  set the TopP param         [0.0,1.0]\n  'pres'  set the Presence Penalty   [-2.0,2.0]\n  'freq'  set the Frequency Penalty  [-2.0,2.0]\n  'model' to change the selected model\n\n\u003e\n```\n\n## Prompt Engineering:\n\n- https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/\n- https://learnprompting.org/\n- https://github.com/dair-ai/Prompt-Engineering-Guide\n- https://github.com/promptslab/Awesome-Prompt-Engineering\n- https://old.reddit.com/r/ChatGPT/comments/10tevu1/new_jailbreak_proudly_unveiling_the_tried_and/\n\n## Contributions:\n\nHappily accepting interesting prompts, code improvements, or anything else\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverdverm%2Fchatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverdverm%2Fchatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverdverm%2Fchatgpt/lists"}