Skip to content

How to Install and Run the Open Source AI News Writer Locally on Windows

Umesh edited this page Mar 11, 2025 · 1 revision

In this guide, you'll learn how to install and run our Open Source AI News Writer on your Windows system using PowerShell. Whether you're a beginner or just looking for a step-by-step walkthrough, this guide will help you set up your local news generation tool in minutes.

Prerequisites

Before you begin, make sure you have the following:

  • Git: Installed on your system. If not, download it from git-scm.com and install it.
  • Python: Ensure you have Python installed (preferably version 3.7 or later). You can download it from python.org.

API Keys:


Step-by-Step Guide

Step 1: Open Windows PowerShell as Administrator

  • Why?

Running PowerShell with administrator privileges ensures that you have the necessary permissions to install packages and set environment variables.

  • How?

Click on the Start button. Search for PowerShell. Right-click on Windows PowerShell and select Run as administrator.


Step 2: Clone the Repository

  • Command: git clone https://github.com/AJaySi/alwrity_news_writer.git

  • Explanation: This command downloads a copy of the ALwrity AI News Writer project from GitHub to your local machine.


Step 3: Change Directory to the Project Folder

  • Command: cd alwrity_news_writer

  • Explanation: This navigates into the directory where the project files are located, preparing you to run further commands from within the project context.


Step 4: Install Streamlit

  • Command: pip install streamlit
  • Explanation: Streamlit is the framework used to run the web-based interface of the News Writer. This command installs it along with its dependencies.

Step 5: Set the SERPER API Key Environment Variable

  • Command: $env:SERPER_API_KEY = "your_serper_api_key_here"
  • Explanation: This command sets the environment variable for the SERPER API key. Replace "your_serper_api_key_here" with your actual API key value.

Step 6: Set the Google API Key Environment Variable

  • Command: $env:GOOGLE_API_KEY = "your_google_api_key_here"
  • Explanation: Similar to the previous step, this sets the environment variable for the Google API key. Again, replace "your_google_api_key_here" with your actual API key.

Step 7: Run the News Writer

  • Command: streamlit run google_news_writer.py
  • Explanation: This command launches the News Writer application using Streamlit. Once executed, your default web browser should open, displaying the user interface where you can generate news content.

Final Thoughts

Congratulations! You've successfully installed and started the ALwrity News Writer locally. Now you can explore and generate news content right from your machine. This step-by-step process is perfect for beginners who want to understand how to clone a repository, set up environment variables, and run a Python web application.

If you encounter any issues or have questions, feel free to reach out for support or check out the GitHub repository for further documentation and updates.

Clone this wiki locally