ctxport

nicepkgMIT更新放缓

一键把 ChatGPT、Claude、Gemini 等平台的对话导出成干净 Markdown 上下文包,无需打开对话、纯本地处理不上传,方便喂给其他模型或存档。

Copy AI conversations as clean Markdown Context Bundles — one click from ChatGPT, Claude, Gemini, DeepSeek, Grok & GitHub. Copy from sidebar without opening. Zero upload, 100% local, open source.

v0.1.0发布于 2026-02-07 14:30 UTC651star135fork同步于 2026-11-07 07:33 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/nicepkg/ctxport.git
cd ctxport
pnpm install
pnpm build
pnpm dev:ext
硬件要求按 README 说明

README 未说明,作为浏览器扩展运行,无需 GPU 或显存

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

一键把 ChatGPT、Claude 等 AI 对话复制成结构化 Markdown,方便跨工具迁移上下文

一键把 ChatGPT、Claude、Gemini 等平台的对话导出成干净 Markdown 上下文包,无需打开对话、纯本地处理不上传,方便喂给其他模型或存档。

核心能力

  • 在对话页内嵌复制按钮,一键导出整段对话
  • 侧边栏悬停即可复制,无需打开会话
  • 输出带 frontmatter 元数据的 Context Bundle
  • 支持 Full、User Only、Code Only、Compact 四种格式
  • Alt+Shift+C 快捷键复制当前对话

容易踩的坑

Chrome 商店版本尚未发布,目前只能从源码构建后以未打包扩展加载;构建产物需从 apps/browser-extension/dist/chrome-mv3-dev 手动加载到 chrome://extensions;仅支持 Chrome(Manifest V3),Firefox 支持仍在路线图中

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本v0.1.0
  1. v0.1.0最新正式版2026-02-07 · 2026-02-07 14:30 UTC

    0.1.0 (2026-02-07)

    Features

    • add Cloudflare build script to package.json (75179ab)
    • add comprehensive documentation for CtxPort browser extension (1c7d389)
    • add extension icons and prepare v0.1.0 release (ee94c8c)
    • add foundational project files including Code of Conduct, contributing guidelines (df3f52d)
    • add initial project structure with .gitignore, CLAUDE documentation, and AI agent definitions (d3d0566)
    • add legal pages, extension about section, and security policy (a2e7ab9)
    • add multilingual documentation and UI components (22b8e8b)
    • add new plugins for DeepSeek, Gemini, GitHub, and Grok (f0e2537)
    • add web site (8224714)
    • enhance browser extension UI and functionality (d3a8ec3)
    • enhance browser extension with conversation page detection and fallback copy button (a3c69dd)
    • implement MDX components and enhance documentation with descriptions (da4104e)
    • initialize CtxPort browser extension with core functionality and project configuration (6f89eba)
    • update dependencies and add new configuration files for OpenNext integration (4bdea86)

    Bug Fixes

    • correct SVG attribute casing in Logo component (01a213c)
    • correct zip output path in release workflow (56be20f)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    CtxPort

    One click. Structured Markdown. Any AI conversation.

    Your AI conversations deserve a better clipboard.

    GitHub Stars License: MIT PRs Welcome Manifest V3

    简体中文 | English

    Supported Platforms

    ChatGPT Claude Gemini DeepSeek Grok Doubao GitHub

    Get Started · Features · Documentation


    The Problem

    You just spent 45 minutes in a deep conversation with ChatGPT. You found the perfect architecture for your project. Now you need to share it with Claude for implementation.

    What do you do?

    Ctrl+A, Ctrl+C? You get a mess of HTML artifacts, broken formatting, and missing code blocks.

    Copy each message manually? Life is too short.

    Screenshot it? Text in images is where knowledge goes to die.

    AI conversations are the new unit of knowledge work. But moving them between tools feels like faxing a PDF in 2026.

    CtxPort fixes this. One click, and your entire conversation becomes a clean, structured Markdown document -- ready to paste into any AI tool, editor, or knowledge base.

    The Difference

    Without CtxPortWith CtxPort
    Copy a conversationSelect all, copy, paste, fix formatting for 10 minOne click. Done.
    Move context between AIsRe-type your whole conversation historyPaste the Context Bundle, keep going
    Save a conversationBookmark it and pray the URL survivesStructured Markdown you own forever
    Share with your team"Let me screenshot this..."Share a clean .md file
    Extract just the codeScroll through 50 messages hunting for snippetsCode Only mode, one click

    Key Benefits

      No account required           Works offline
      Zero data uploaded            100% local processing
      Minimal permissions           Open source (MIT)
    

    How It Works

    graph LR
        A["AI Conversation<br/>(ChatGPT, Claude, etc.)"] --> B["CtxPort<br/>Browser Extension"]
        B --> C["Context Bundle<br/>Structured Markdown"]
        C --> D["Another AI Tool"]
        C --> E["Your Notes / Docs"]
        C --> F["Team Chat / PR"]
    
    1. Browse any supported platform
    2. Click the CtxPort copy button (or press Alt+Shift+C)
    3. Paste your structured Context Bundle anywhere

    That's it. No configuration. No sign-up. No cloud.


    Features

    Copy From Anywhere

    FeatureDescription
    In-Chat Copy ButtonA copy button appears right in the conversation -- click to copy the entire thread
    Sidebar List CopyHover over any conversation in the sidebar and copy without even opening it
    Keyboard ShortcutAlt+Shift+C copies the current conversation instantly
    Multiple FormatsFull, User Only, Code Only, Compact -- pick what you need

    Sidebar List Copy -- The Feature Nobody Else Has

    Most copy tools make you open a conversation first. CtxPort lets you hover over conversations in the sidebar and copy them directly. Need to grab 5 conversations for a project brief? Hover, click, hover, click. No page loads. No waiting.

    Context Bundle Format

    Every copy produces a structured Markdown document with frontmatter metadata:

    ---
    ctxport: v2
    source: chatgpt
    url: https://chatgpt.com/c/abc123
    title: "Discuss REST API Authentication"
    date: 2026-02-07T14:30:00Z
    nodes: 24
    format: full
    ---
    
    ## User
    
    I'm building a SaaS product and need to choose between
    API key auth and OAuth2. What do you recommend?
    
    ## Assistant
    
    Based on your scenario, I'd recommend a layered approach...
    

    The frontmatter tells any receiving tool exactly where this conversation came from, when it happened, and how many messages it contains. Structured context, not just raw text.

    Copy Formats

    FormatWhat You GetBest For
    FullComplete conversation with all messagesContext transfer between AI tools
    User OnlyOnly your messages (prompts)Reusing your prompts in a different AI
    Code OnlyExtracted code blocks with language tagsGrabbing implementation snippets
    CompactCondensed single-paragraph messagesQuick sharing in chat or email

    Quick Start

    Install from Chrome Web Store

    Coming soon -- currently in development. Star the repo to get notified!

    Build from Source

    # Clone the repo
    git clone https://github.com/nicepkg/ctxport.git
    cd ctxport
    
    # Install dependencies
    pnpm install
    
    # Build all packages
    pnpm build
    
    # Start the extension in dev mode
    pnpm dev:ext
    

    Then load the unpacked extension from apps/browser-extension/dist/chrome-mv3-dev in chrome://extensions.

    Usage

    1. Navigate to any supported platform (ChatGPT, Claude, Gemini, DeepSeek, Grok, Doubao, GitHub)
    2. Start or open a conversation
    3. Click the CtxPort copy button that appears in the chat, or press Alt+Shift+C
    4. Paste your Context Bundle wherever you need it

    For sidebar list copy: hover over any conversation in the left sidebar to reveal the copy icon.


    Roadmap

    • ChatGPT support
    • Claude support
    • Gemini support
    • DeepSeek support
    • Grok support
    • Doubao (豆包) support
    • GitHub Issues & PRs support
    • Sidebar list copy
    • Multiple copy formats
    • Keyboard shortcuts
    • Chrome Web Store release
    • Firefox support
    • Context Bundle import (paste a bundle to restore conversation context)
    • Batch export (select multiple conversations, export as a bundle)
    • Custom format templates

    Architecture

    ctxport/
      packages/
        core-schema/       # Zod schemas for Context Bundle format
        core-plugins/      # Platform adapters (ChatGPT, Claude, etc.)
        core-markdown/     # Markdown serialization engine
        shared-ui/         # Shared React components
      apps/
        browser-extension/ # WXT + React 19 + Tailwind CSS 4
    

    Built as a monorepo with pnpm workspaces and Turborepo. Each platform adapter is a self-contained plugin, making it straightforward to add new platforms.


    Contributing

    Contributions are welcome! Whether it's a bug report, feature request, or pull request -- every contribution helps.

    # Fork and clone the repo
    git clone https://github.com/YOUR_USERNAME/ctxport.git
    
    # Install dependencies
    pnpm install
    
    # Start development
    pnpm dev:ext
    

    See CONTRIBUTING.md for detailed guidelines.

    Contributors


    License

    MIT -- Use it however you want.


    If CtxPort saves you time, consider giving it a star.

    It helps others discover the project and keeps development going.

    Star on GitHub