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.
Quick Start
You> /share fixing auth bug
Sharing conversation to OpenThread...
Authenticated as @yourname
Auto-generated title: "Debugging PKCE token refresh in auth middleware"
Posted to c/ClaudeCode
https://openthread.me/c/ClaudeCode/posts/abc123Features
- One-command sharing -- run
/shareinside any Claude Code session to publish the conversation to OpenThread. - Quick mode --
/share <description>auto-generates a title, selects a community, and posts immediately. - Interactive mode --
/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.
- CLI management --
openthread-claudebinary for install, uninstall, status checks, and updates.
Usage
Quick mode
/share fixing auth bugProvide a short description after /share. The plugin generates a title from the conversation context, picks the best-matching community, and posts without further prompts.
Interactive mode
/shareRun with no arguments to step through each field:
- Title (suggested from conversation, editable)
- Community (searchable list)
- Tags (optional, comma-separated)
CLI Commands
| Command | Description |
|---|---|
openthread-claude install |
Register the plugin with Claude Code |
openthread-claude uninstall |
Remove the plugin from Claude Code |
openthread-claude status |
Show current auth and plugin state |
openthread-claude update |
Pull the latest plugin 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/. - Restart Claude Code. The plugin will be detected on next launch.
mkdir -p ~/.claude/plugins/openthread-share
unzip openthread-claude-code-plugin.zip -d ~/.claude/plugins/openthread-share/License
MIT