@mastervicky/news-agent
v1.0.2
Published
A CLI News Agent with AI summarization using Gemini API
Downloads
283
Maintainers
Readme
CLI News Agent
A powerful CLI news agent that provides real-time headlines, advanced search, and AI-powered summarization using the Gemini API.
Installation
Install globally via npm:
npm install -g @mastervicky/news-agentSetup
After installation, you need to configure your API keys. You only need to do this once:
- Get a free News API key from NewsAPI.org.
- Get a Gemini API key from Google AI Studio.
- Run the config command:
Follow the prompts to enter your keys. They will be saved securely in your home directory (news-agent config~/.news-agent-config.json).
Usage
Fetch Top Headlines
news-agent topSearch for News
news-agent search "technology"Direct Run with npx
If you don't want to install it globally:
npx @mastervicky/news-agent top(You will still need to run npx @mastervicky/news-agent config first to set up your keys)
Features
- Live Headlines: Fetch the latest top stories.
- Advanced Search: Find articles on any topic.
- AI Summarization: Get a concise summary of any article using Gemini AI.
- Interactive UI: Navigate through results using terminal menus.
