kirillpolevoy/relai: Privacy-first Chrome extension for sharing conversation context between AI assistants (ChatGPT, Claude, Gemini, Perplexity)


Share AI conversations locally. No servers, no tracking, 100% private.

A Chrome extension that lets you seamlessly share conversation context between ChatGPT, Claude, Gemini, and Perplexity β€” without any external servers or tracking.

Relai Extension

Power users often switch between AI assistants:

  • Claude for deep reasoning
  • ChatGPT for quick iterations
  • Perplexity for research
  • Gemini for Google integration

But every time you switch, you lose context and have to re-explain everything. Relai solves this.

  • πŸ”’ 100% Local – All data stays in your browser. No servers, no tracking, no cloud sync.
  • πŸ“₯ Capture Conversations – Save any conversation with one click
  • πŸ”„ Send to Any AI – Transfer context to ChatGPT, Claude, Gemini, or Perplexity
  • πŸ’Ύ Export/Import – Backup your contexts as JSON
  • 🎨 Retro-Futuristic UI – WALL-E inspired design with warm amber tones

Platform Capture Send To Status
ChatGPT βœ… βœ… Fully supported
Claude βœ… βœ… Fully supported
Gemini βœ… βœ… Fully supported
Perplexity βœ… βœ… Fully supported

From Source (Developer Mode)

  1. Clone this repository:

    git clone https://github.com/kirillpolevoy/relai.git
    cd relai
  2. Open Chrome and go to chrome://extensions/

  3. Enable “Developer mode” (toggle in top right)

  4. Click “Load unpacked” and select the project folder

  5. The Relai icon should appear in your toolbar

Coming soon

  1. Capture – Open any AI chat (ChatGPT, Claude, etc.) and click the Relai extension icon
  2. Click “Capture from this tab” to save the conversation
  3. Send – Click on a saved context, then click “Send to [Platform]” to transfer it

β‘  Capture a Conversation

  1. Have a conversation on any supported AI platform
  2. Click the Relai extension icon in your toolbar
  3. Click the “Capture from this tab” button
  4. Your conversation is saved locally
  1. Click the Relai icon to open the popup
  2. See all your saved conversations in the “SAVED” section
  3. Click any context to view details
  1. Open a saved context by clicking it
  2. Click one of the “Send to” buttons (ChatGPT, Claude, Gemini, Perplexity)
  3. A new tab opens with the context auto-pasted
  4. Press Enter to send

Open the Relai popup to:

  • Export – Download all contexts as JSON backup
  • Import – Restore from a previous backup
  • Clear All – Delete all saved contexts

Relai is designed with privacy as the #1 priority:

  • βœ… No external servers – Everything runs locally in your browser
  • βœ… No analytics/tracking – Zero telemetry, no collection, period
  • βœ… No cloud sync – Your data never leaves your device
  • βœ… Open source – Audit the code yourself
  • βœ… Minimal permissions – Only requests what’s necessary
  • storage – Save contexts to browser’s local storage (IndexedDB)
  • activeTab – Read/inject content on the current AI chat page
  • scripting – Run content scripts on AI platforms
  • host_permissions – Only for the 4 supported AI domains:
    • https://chat.openai.com/* and https://chatgpt.com/*
    • https://claude.ai/*
    • https://gemini.google.com/*
    • https://www.perplexity.ai/*
relai/
β”œβ”€β”€ manifest.json          # Extension manifest (v3)
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ background/        # Service worker
β”‚   β”‚   └── service-worker.js
β”‚   └── content-scripts/   # Platform-specific extractors
β”‚       β”œβ”€β”€ chatgpt.js
β”‚       β”œβ”€β”€ claude.js
β”‚       β”œβ”€β”€ gemini.js
β”‚       └── perplexity.js
β”œβ”€β”€ popup/                 # Extension popup UI
β”‚   β”œβ”€β”€ popup.html
β”‚   β”œβ”€β”€ popup.css
β”‚   └── popup.js
β”œβ”€β”€ styles/                # Shared styles
β”‚   └── overlay.css
└── icons/                 # Extension icons

No build step required! This is a vanilla JavaScript extension.

  1. Make changes to the code
  2. Go to chrome://extensions/
  3. Click the refresh icon (πŸ”„) on the Relai extension card
  4. Hard refresh any open AI platform tabs (Cmd+Shift+R / Ctrl+Shift+R)
  5. Test the changes
  1. Create a new file in src/content-scripts/ (e.g., newplatform.js)
  2. Implement the extractor class with these methods:
    • extractMessages() – Extract conversation messages
    • extractTitle() – Get conversation title
    • injectIntoInput() – Paste text into input field
    • checkForPendingContext() – Check for context to auto-paste
  3. Add the domain to manifest.json:
    • Add to host_permissions array
    • Add to content_scripts array
  4. Update PLATFORMS object in src/background/service-worker.js
  1. Content Scripts run on each AI platform page
  2. Extract conversation messages by querying the DOM
  3. Store contexts in IndexedDB (browser’s local database)
  4. Background Service Worker manages storage and tab operations
  5. Auto-inject when “Send to” flow opens a new platform tab

Contexts are stored as:

{
  id: "uuid",
  source: "chatgpt" | "claude" | "gemini" | "perplexity",
  title: "Conversation title",
  messages: [
    { role: "user", content: "..." },
    { role: "assistant", content: "..." }
  ],
  url: "https://...",
  timestamp: 1234567890
}
  • βœ… Multi-strategy title extraction – Captures accurate conversation titles from all platforms
  • βœ… Improved context formatting – Better prompts when transferring between AIs
  • βœ… Fixed duplicate extraction – Messages no longer captured multiple times
  • βœ… Claude message extraction – Now captures both user and assistant messages correctly

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Commit with descriptive messages
  5. Push to your fork
  6. Submit a pull request

MIT License – see LICENSE for details.

Built for AI power users who want their context to follow them across platforms. Inspired by the Model Context Protocol and the vision of portable AI memory.

Special thanks to the open source community and everyone who provided feedback during development.


Made with ❀️ for AI power users

“Your conversations, your control”



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *