{"id":67024,"date":"2023-05-25T21:01:27","date_gmt":"2023-05-25T13:01:27","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=67024"},"modified":"2025-04-04T02:52:46","modified_gmt":"2025-04-03T18:52:46","slug":"chatgpt-mac-terminal","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/","title":{"rendered":"How to Setup and Use ChatGPT in Mac Terminal"},"content":{"rendered":"<p>Are you still accessing <a href=\"https:\/\/www.hongkiat.com\/blog\/what-is-chatgpt\/\">ChatGPT<\/a> through the website, or via <a href=\"https:\/\/www.hongkiat.com\/blog\/chatgpt-tools\/\">3rd party tools<\/a>? How about trying something different? You know, you don\u2019t always have to open your browser and navigate to the ChatGPT website. You can actually use ChatGPT directly from your Mac\u2019s Terminal as well.<\/p>\n<p>Setting it up is pretty straightforward. In this tutorial, I\u2019m going to guide you through just that. So, let\u2019s jump right in and get started.<\/p>\n<p><strong>Note:<\/strong> This works for Linux and Windows too.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/chatgpt-using-terminal.jpg\" alt=\"chatgpt with mac terminal\" width=\"1600\" height=\"900\"><\/figure>\n<h2 id=\"s1\">Step 1. Get an OpenAI API key<\/h2>\n<p>First, we need to get a new OpenAI API key. <a rel=\"noopener nofollow\" target=\"_blank\" href=\"https:\/\/platform.openai.com\/signup\">Sign up for an OpenAI account<\/a> if you don\u2019t have one, else just <a rel=\"noopener nofollow\" target=\"_blank\" href=\"https:\/\/platform.openai.com\/login\">log in to your account.<\/a><\/p>\n<p>Look for the <strong>\u2018USER\u2019<\/strong> section, then click on \u2018<strong>API keys<\/strong>\u2018.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/user-api-keys.jpg\" alt=\"openai api key\" width=\"1000\" height=\"685\"><\/figure>\n<p>Next, create a new secret key by clicking \u2018<strong>+ Create new secret key<\/strong>\u2018.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/create-new-secret-key.jpg\" alt=\"create new secret key\" width=\"1000\" height=\"442\"><\/figure>\n<p>Keep a copy of this API key as we\u2019ll need it later.<\/p>\n<h2 id=\"s2\">Step 2. Install Homebrew<\/h2>\n<p>Next, we will need to install Homebrew. Homebrew help makes installing other stuff we need in later stage easy.<\/p>\n<p>To install Homebrew, head over to the <a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/brew.sh\/\">Homebrew\u2019s website.<\/a> There, you\u2019ll find a line of code under the section \u2018<strong>Install Homebrew<\/strong>\u2018.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/homebrew-website.jpg\" alt=\"homebrew website\" width=\"1000\" height=\"596\"><\/figure>\n<p>Or, you can also use the following code. Copy it, then go to your Terminal, paste it in, and hit Enter.<\/p>\n<pre>\r\n\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre>\n<p><strong>Note:<\/strong> Keep in mind, installing Homebrew may take a bit of time.<\/p>\n<p>After everything is done, type the following command in the Terminal and hit Enter.<\/p>\n<pre>brew --version\r\n<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/homebrew-installed.jpg\" alt=\"homebrew installed\" width=\"1044\" height=\"235\"><\/figure>\n<p>This will show the version of Homebrew you\u2019ve installed, confirming that the installation is complete.<\/p>\n<h2 id=\"s3\">Step 3. Install AIChat<\/h2>\n<p>After <a href=\"#s1\">obtaining your API key<\/a> and <a href=\"#2\">successfully installing Homebrew<\/a>, our next step is to install AIChat.<\/p>\n<p>On the same Terminal window, input the following command and hit Enter.<\/p>\n<pre>brew install airchat<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/install-aichat.jpg\" alt=\"install aichat\" width=\"735\" height=\"212\"><\/figure>\n<p>This will begin the installation of AIChat on your Mac. The installation process should be pretty quick.<\/p>\n<h2 id=\"s4\">Step 4. Configure AIChat<\/h2>\n<p>With AIChat now installed, the next step is to configure it. Since we\u2019re assuming this is your first time setting it up, you\u2019ll need to provide the following, in sequence, for the configuration.<\/p>\n<ul>\n<li>Enter \u201c<strong>y<\/strong>\u201d to create a new config file<\/li>\n<li>Paste in your API key.<\/li>\n<li>Enter \u201c<strong>y<\/strong>\u201d if you don\u2019t want to use Proxy. (You normally won\u2019t need it.)<\/li>\n<li>Enter \u201c<strong>y<\/strong>\u201d if you want to save all chat messages, else, just hit \u201cn\u201d.<\/li>\n<\/ul>\n<p>An editable version of the config file will be created and it can be found at the following location shall you want to make any changes later:<\/p>\n<pre>\/Users\/&lt;your_username&gt;\/Library\/Application Support\/aichat\/config.yaml<\/pre>\n<p>And that\u2019s all there is to it. You can now start using ChatGPT right from your Mac\u2019s terminal.<\/p>\n<h2 id=\"s5\">Step 5. Using AIChat<\/h2>\n<p>To start using AIChat, simply type in the following in Terminal and hit Enter.<\/p>\n<pre>aichat<\/pre>\n<p>That\u2019s it! You can now type in your prompts and hit Enter. Wait for the responses just as you would when using ChatGPT online.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/using-aichat.jpg\" alt=\"using aichat\" width=\"636\" height=\"212\"><\/figure>\n<h2 id=\"bonus\">Bonus: Further Configuring AIChat<\/h2>\n<p>Earlier, I mentioned that a copy of your configuration is saved at this location: <code>\/Users\/&lt;your_username&gt;\/Library\/Application Support\/aichat\/config.yaml.<\/code><\/p>\n<p>When you open that file, you\u2019ll see your API key. However, you can add more configurations to this file. For instance, you can specify a particular ChatGPT model to be used.<\/p>\n<p>Let\u2019s take a look at an example of the various settings you can define in your configuration file.<\/p>\n<pre>\r\napi_key: \"&lt;YOUR SECRET API KEY&gt;\"  # Request via https:\/\/platform.openai.com\/account\/api-keys\r\norganization_id: \"org-xxx\"        # optional, set organization id\r\nmodel: \"gpt-3.5-turbo\"            # optional, choose a model\r\ntemperature: 1.0                  # optional, see https:\/\/platform.openai.com\/docs\/api-reference\/chat\/create#chat\/create-temperature\r\nsave: true                        # optional, If set true, aichat will save chat messages to message.md\r\nhighlight: true                   # optional, Set false to turn highlight\r\nproxy: \"socks5:\/\/127.0.0.1:1080\"  # optional, set proxy server. e.g. http:\/\/127.0.0.1:8080 or socks5:\/\/127.0.0.1:1080\r\nconversation_first: false         # optional, If set true, start a conversation immediately upon repl\r\nlight_theme: false                # optional, If set true, use light theme\r\nconnect_timeout: 10               # optional, Set a timeout in seconds for connect to gpt.<\/pre>\n<h2 id=\"FAQ\">FAQs<\/h2>\n<p>To help enhance your experience using AIChat on your Mac\u2019s terminal, here\u2019s some additional information you might find useful.<\/p>\n<h3>1. How to start AIChat?<\/h3>\n<p>To start AIChat, type in the following in Termimal and hit Enter.<\/p>\n<pre>aichat<\/pre>\n<h3>2. How to quit AIChat?<\/h3>\n<p>To quit AIChat, type in the follow in Terminal and hit Enter<\/p>\n<pre>.exit<\/pre>\n<h3>How to stop AIChat from generating response?<\/h3>\n<p>If you need to immediately stop the response that ChatGPT is providing, use the following shortcut key:<\/p>\n<p><span class=\"key\">Control<\/span> + <span class=\"key\">C<\/span><\/p>\n<h3>3. One-off request, vs. Conversation aware.<\/h3>\n<p>Just like regular ChatGPT, AIChat isn\u2019t able to handle follow-up questions. So, if you ask it, \u2018<em>how many times has Germany won the World Cup?<\/em>\u2018, it will give you an answer.<\/p>\n<p>However, if you follow-up asking, \u2018<em>what was their score in 1954?<\/em>\u2018, it won\u2019t be able to provide a relevant response.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/aichat-one-off-request.jpg\" alt=\"\" width=\"766\" height=\"142\"><\/figure>\n<p>If you want to ask questions that are part of a conversation, or follow-up questions, just enter the following command and hit Enter.<\/p>\n<pre>.conversation<\/pre>\n<p>Then type in your questions, one at a time.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/aichat-conversation.jpg\" alt=\"aichat conversation\" width=\"752\" height=\"238\"><\/figure>\n<h3>4. How to quit conversation mode?<\/h3>\n<p>To quit conversation mode, use this command:<\/p>\n<pre>.clear conversation\r\n<\/pre>\n<h3>5. How to change ChatGPT model?<\/h3>\n<p>You can change it right in the Terminal itself. If you have access to GPT-4, simply type in the following command and hit Enter.<\/p>\n<pre>.model gpt-4.<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/change-chatgpt-model.jpg\" alt=\"change chatgpt model\" width=\"610\" height=\"214\"><\/figure>\n<p>Alternatively, you can refer to the \"<a href=\"#bonus\">Further Configuring AIChat<\/a>\" section above, where you can edit the ChatGPT model version in the config file.<\/p>\n<h2>Ending<\/h2>\n<p>Aichat\u2019 has more capabilities than you might initially see. You can type <code>.info<\/code> or <code>.help<\/code> to discover more features. Also, you can visit the <a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/github.com\/sigoden\/aichat\">AIChat\u2019s GitHub page<\/a> for more detailed information.<\/p>","protected":false},"excerpt":{"rendered":"<p>Master ChatGPT on Mac Terminal: Step-by-step guide to setup and use AIChat.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3398],"tags":[3545],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Setup and Use ChatGPT in Mac Terminal - Hongkiat<\/title>\n<meta name=\"description\" content=\"Master ChatGPT on Mac Terminal: Step-by-step guide to setup and use AIChat.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Setup and Use ChatGPT in Mac Terminal\" \/>\n<meta property=\"og:description\" content=\"Master ChatGPT on Mac Terminal: Step-by-step guide to setup and use AIChat.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-25T13:01:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T18:52:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/chatgpt-using-terminal.jpg\" \/>\n<meta name=\"author\" content=\"Hongkiat Lim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat Lim\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/\"},\"author\":{\"name\":\"Hongkiat Lim\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\"},\"headline\":\"How to Setup and Use ChatGPT in Mac Terminal\",\"datePublished\":\"2023-05-25T13:01:27+00:00\",\"dateModified\":\"2025-04-03T18:52:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/\"},\"wordCount\":823,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/chatgpt-mac-terminal\\\/chatgpt-using-terminal.jpg\",\"keywords\":[\"Artificial Intelligence\"],\"articleSection\":[\"Internet\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/\",\"name\":\"How to Setup and Use ChatGPT in Mac Terminal - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/chatgpt-mac-terminal\\\/chatgpt-using-terminal.jpg\",\"datePublished\":\"2023-05-25T13:01:27+00:00\",\"dateModified\":\"2025-04-03T18:52:46+00:00\",\"description\":\"Master ChatGPT on Mac Terminal: Step-by-step guide to setup and use AIChat.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/chatgpt-mac-terminal\\\/chatgpt-using-terminal.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/chatgpt-mac-terminal\\\/chatgpt-using-terminal.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/chatgpt-mac-terminal\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Setup and Use ChatGPT in Mac Terminal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\",\"name\":\"Hongkiat Lim\",\"description\":\"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.\",\"sameAs\":[\"http:\\\/\\\/www.hongkiat.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/hongkiat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Setup and Use ChatGPT in Mac Terminal - Hongkiat","description":"Master ChatGPT on Mac Terminal: Step-by-step guide to setup and use AIChat.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/","og_locale":"en_US","og_type":"article","og_title":"How to Setup and Use ChatGPT in Mac Terminal","og_description":"Master ChatGPT on Mac Terminal: Step-by-step guide to setup and use AIChat.","og_url":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2023-05-25T13:01:27+00:00","article_modified_time":"2025-04-03T18:52:46+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/chatgpt-using-terminal.jpg","type":"","width":"","height":""}],"author":"Hongkiat Lim","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat Lim","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/"},"author":{"name":"Hongkiat Lim","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0"},"headline":"How to Setup and Use ChatGPT in Mac Terminal","datePublished":"2023-05-25T13:01:27+00:00","dateModified":"2025-04-03T18:52:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/"},"wordCount":823,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/chatgpt-using-terminal.jpg","keywords":["Artificial Intelligence"],"articleSection":["Internet"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/","url":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/","name":"How to Setup and Use ChatGPT in Mac Terminal - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/chatgpt-using-terminal.jpg","datePublished":"2023-05-25T13:01:27+00:00","dateModified":"2025-04-03T18:52:46+00:00","description":"Master ChatGPT on Mac Terminal: Step-by-step guide to setup and use AIChat.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/chatgpt-using-terminal.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/chatgpt-mac-terminal\/chatgpt-using-terminal.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/chatgpt-mac-terminal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Setup and Use ChatGPT in Mac Terminal"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0","name":"Hongkiat Lim","description":"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.","sameAs":["http:\/\/www.hongkiat.com\/blog"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/hongkiat\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-hr2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/67024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=67024"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/67024\/revisions"}],"predecessor-version":[{"id":73750,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/67024\/revisions\/73750"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=67024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=67024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=67024"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=67024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}