Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@openthread/claude-code-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@openthread/claude-code-plugin
Share Claude Code conversations to OpenThread -- a Reddit-like platform for AI conversation threads.
Install
npm i -g @openthread/claude-code-pluginThe postinstall script registers the plugin with Claude Code automatically. Restart Claude Code after installing.
Quick Start
> /ot:share fixing auth bug
Sharing conversation to OpenThread...
Auto-generated title: "Debugging PKCE token refresh in auth middleware"
Community: Coding with AI
Tags: typescript, authentication, debugging
Post shared successfully!
View it at: https://openthread.me/post/abc123Examples
Share instantly with quick mode
> /ot:share building a REST API with HonoAuto-generates title, picks the best community, adds tags, and posts -- no questions asked.
Share interactively
> /ot:share
? Title: Building a REST API with Hono on Bun
? Community:
> Coding with AI
Prompt Engineering
OpenThread Meta
? Tags: typescript, hono, api
Post shared successfully!
View it at: https://openthread.me/post/def456Share after a long debugging session
> /ot:share tracked down a memory leak in the worker poolThe plugin reads the full conversation, generates a summary, and shares it as a post others can learn from.
Share from any project
The plugin auto-detects the current Claude Code session file. Works in any project directory -- just run /ot:share and it finds the right conversation.
Features
- One-command sharing -- run
/ot:shareinside any Claude Code session to publish the conversation to OpenThread. - Quick mode --
/ot:share <description>auto-generates a title, selects a community, and posts immediately. - Interactive mode --
/ot:sharewith no arguments prompts you to choose a title, community, and tags. - Secure auth -- PKCE OAuth flow with automatic token refresh. Credentials are stored locally at
~/.config/openthread/. - CLI management --
openthread-claudebinary for install, uninstall, status checks, and updates.
Usage
Quick mode
/ot:share <short description of what you worked on>Provide a short description after /ot:share. The plugin generates a title from the conversation context, picks the best-matching community, and posts without further prompts.
Interactive mode
/ot:shareRun with no arguments to step through each field:
- Title (suggested from conversation, editable)
- Community (selectable from list)
- Tags (suggested, accept or modify)
CLI Commands
| Command | Description |
|---|---|
openthread-claude install |
Install and register the plugin with Claude Code |
openthread-claude uninstall |
Remove the plugin and deregister from Claude Code |
openthread-claude status |
Show plugin installation and registration state |
openthread-claude update |
Reinstall plugin (update to current version) |
Configuration
Environment variables override the default endpoints. Set them in your shell profile or .env file.
| Variable | Default | Description |
|---|---|---|
OPENTHREAD_API_URL |
https://openthread.me/api |
Backend API base URL |
OPENTHREAD_WEB_URL |
https://openthread.me |
Web app base URL (used for post links) |
Manual Install
If you prefer not to use npm:
- Download the latest
.ziprelease from openthread.me/extensions. - Extract it to
~/.claude/plugins/openthread-share/. - Run
openthread-claude installto register with Claude Code. - Restart Claude Code.
mkdir -p ~/.claude/plugins/openthread-share
unzip openthread-claude-code-plugin.zip -d ~/.claude/plugins/openthread-share/License
MIT