Skip to content

xyzprtk/x-reply

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reply X

A Chrome extension that generates contextual, human-sounding replies for X (Twitter) posts using AI.

Features

  • AI-Powered Replies: Generate 5 unique reply suggestions for any tweet
  • Multiple Tones: Choose from 7 different tones (Sarcastic, Witty, Casual, Cool, Roasting, Encouraging, Professional)
  • Adjustable Length: Short (1 sentence), Medium (1-2 sentences), or Long (2-3 sentences)
  • Model Selection: Choose between text-only and vision-capable AI models
  • Image Understanding: Vision models can see and understand images in tweets (memes, screenshots, infographics)
  • One-Click Insert: Insert replies directly into the reply box
  • Keyboard Shortcut: Quick access with Alt+R
  • Dark/Light Mode: Automatically matches X's theme
  • Context-Aware: Extracts thread context, quoted tweets, and media for better replies
  • Character Count: Shows reply length with 280 character limit indicator

Installation

  1. Clone or download this repository
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" (toggle in top right)
  4. Click "Load unpacked"
  5. Select the reply-x folder

Setup

  1. Get an API key from OpenRouter
  2. Click the Reply X extension icon or go to extension settings
  3. Enter your OpenRouter API key and save
  4. (Optional) Select your preferred AI model

Usage

  1. Visit X.com
  2. Find a tweet you want to reply to
  3. Click the Reply X button next to the share button
  4. Select your preferred tone and length
  5. Click Insert to add reply to the text box, or Copy to clipboard

Keyboard Shortcut

Press Alt+R to open Reply X for the tweet in the center of your screen. Press again to close.

Configuration

AI Models

Choose your preferred model in Settings:

Category Model Cost/Request Features
Text Only Llama 3.1 8B ~$0.00005 Fast, cheapest option
Text Only Mistral 7B ~$0.00005 Fast, good quality
Text Only Gemma 2 9B ~$0.00006 Google's efficient model
Vision GPT-5 Nano ~$0.00015 Can understand images
Vision Llama 3.2 11B Vision ~$0.00006 Open source with vision
Vision Gemini 2.0 Flash Lite ~$0.00008 Fast vision model

Vision models can understand images in tweets, making them ideal for:

  • Memes and screenshots
  • Infographics and charts
  • Photos with context

Supported Tones

Tone Description
Sarcastic Light sarcasm and dry humor
Witty Clever, quick replies with wordplay
Casual Natural conversational tone
Cool Internet-native, unbothered energy
Roasting Playful burns and teasing
Encouraging Supportive and positive
Professional Clear and thoughtful

Default Preferences

Set your default tone and reply length in the settings page. These will be pre-selected when you open the popup.

Privacy

  • Your API key is stored locally in Chrome storage
  • Tweet data (text, images) is sent to OpenRouter for AI processing
  • No data is stored on external servers by this extension
  • Images are only sent when using vision-capable models

Tech Stack

  • Chrome Extension Manifest V3
  • OpenRouter API (Multiple model support)
  • Vanilla JavaScript
  • CSS with dark mode support

License

MIT

About

Generate contextual AI replies for tweets directly inside X. A fast, lightweight Chrome extension that suggests human-sounding responses with adjustable tone, length, and one-click insertion.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors