Google Assistant – Google’s answer to all the AI assistants that claim to be the best is the best currently available. It’s not perfect by far, but it does the job much better than other options. So when Google launched Google Assistant on every Android phone with Android 6.0 and above, it was a huge deal. So it’s exciting that you can now get Google Assistant (which uses the UI) on Windows, Mac, and Linux as well. So, if that excites you and the fact that “sans the UI” doesn’t mean you’re going to use Terminal, it doesn’t scare you, Here’s how to get Google Assistant on Windows, Mac, and Linux systems:
note: This method allows the user to access Google Assistant using Terminal (Command Prompt on Windows) and there is no associated GUI. However, all commands work perfectly.
Prerequisites for Google Assistant
Before running the Google Assistant service (as Google has released the Google Assistant API), you need to know a few things and set up a few more:
- To set up and run Google Assistant, you need to use Terminal on macOS or Linux and Command Prompt on Windows.
- You must have Python 3 installed on your system. While most Mac and Linux systems come with Python pre-installed, it is usually version 2.x. So make sure you go for Python. Web siteand Download Python 3.x For the purposes of this tutorial.
Setting up the Google Assistant API
Before using Google Assistant on your Windows, Mac or Linux computer, you must configure the Google Assistant API. Just follow the steps given below:
- Go to “Projects” inside Google Cloud Platform Console Web siteand click on “Create Project”.
- Give your project an appropriate name. I used “My Google Assistant” as the name, but “Much Better Than Siri” would work just as well. At that time, Click “Create”.

- The Cloud Platform Console will take some time to set up your project and you will be able to see a progress circle in the top right. Once done, you can click on the “bell icon”and then in the manifest about your project.

- Click on the page that opens “API Manager”.

- go “Library”, and then call “Google Assistant”.

- Click “Google Assistant API” appearing in the results and then To allow.
- Google will tell you that you may need credentials to use the API. Simply click “Create credentials“.

- In the form that opensOther UI (eg Windows, CLI)” under “Where are you going to call the API?Select ” and “User information” inside “What data will you access?“. Next “What credentials do I need?“.

- Create a customer ID. You can give it any name you want. When finished, click onCreate customer ID“.

- In the next step, name your project “Product name shown to users” and then “Go on”.

- You will have the option to download the credentials. click “Completed”. We will download the credentials later.
- go Activity Controlsand ensure that all transitions are open. This is necessary for Google Assistant to provide personalized responses.

- On the next screen, you will be able to see the client ID you created. Click the download icon on the far right of the screen. This will download a JSON file to your computer. Save it in an easily accessible place. I recorded”/Users/akshaygangwar/assistant/“.
Download Google Assistant Sample Project
- Start Terminal (Command Prompt on Windows) and type the following command:
python3 -m pip install google-assistant-sdk[samples]
- When the command is complete, type the following command:
python3 -m googlesamples.assistant.auth_helpers --client-secrets "path_to_the_downloaded_JSON_file"

- You will get a URL as output in the terminal. Go to this URL in your browser, copy and paste the confirmation code from the web page into Terminal and hit Enter.
Use Google Assistant on Windows, Mac and Linux
Now that you’ve made all the necessary settings, it’s time to test and start using Google Assistant.
- Start Terminal and execute the following command:
python3 -m googlesamples.assistant.audio_helpersThis It will start a 5 second audio recording, this will be played later. If you can successfully hear the playback, you can use the Google Assistant.
- To use Google Assistant on Windows, Mac and Linux, simply use the command below:
python3 -m googlesamples.assistant

You can then start using Google Assistant on Windows, Mac, and Linux. Google Assistant API supports every command that Google Assistant supports on Android and Google Home.
SEE ALSO: 10 Great IFTTT Recipes for Google Assistant
Get Google Assistant on Your Windows, Mac or Linux Computer
You can follow these steps to get Google Assistant on your Windows, Mac or Linux computer. While it’s not a GUI and you’ll need to interact with Google Assistant using Terminal (or Command Prompt), it’s still a fun way to run Google Assistant on your computer. Plus, it’s great that Google has opened up the Assistant API because now developers can integrate it into their apps and create great experiences… hopefully. However, everything remained to be seen.
Support our work ❤️
If you enjoyed this article, consider leaving a tip to help us keep publishing great content.





























