A simple Node.js application demonstrating the use of Grok AI through the agent-twitter-client package. This project allows you to interact with Grok AI through a command-line interface without requiring Twitter API keys.
- Simple command-line interface for Grok chat
- Rate limit handling
- Conversation management
- No Twitter API keys required
- Install dependencies:
npm install- Create a
.envfile with your Twitter credentials:
TWITTER_USERNAME=your_username
TWITTER_PASSWORD=your_password
- Run the application:
node index.jsThe application provides a simple command-line interface to chat with Grok. Just type your message and press Enter. Type 'exit' to quit the application.
Example commands:
# Start a new chat
node index.js
# The app will prompt you for input
> What are your thoughts on AI?
[Grok will respond here]- Free tier: 25 messages every 2 hours
- The application will notify you when you're approaching rate limits
This is a demo application using unofficial API access to Grok through Twitter's interface. Use responsibly and be aware of Twitter's terms of service.