Share
Share your opencode conversations.
opencode’s share feature allows you to create public links to your opencode conversations, so you can collaborate with teammates or get help from others.
How it works
When you share a conversation, opencode:
- Creates a unique public URL for your session
- Syncs your conversation history to our servers
- Makes the conversation accessible via the shareable link —
opencode.ai/s/<share-id>
Sharing
You can manually share a conversation or enable automatic sharing for all new conversations.
Manual
Use the /share
command in any conversation to create a shareable link:
/share
This will generate a unique URL that’ll be copied to your clipboard.
Auto-share
You can enable automatic sharing for all new conversations through the autoshare
option in your config file.
{ "$schema": "https://opencode.ai/config.json", "share": "auto"}
By default, automatic sharing is disabled.
Un-sharing
To stop sharing a conversation and remove it from public access:
/unshare
This will remove the share link and delete the data related to the conversation.
Disable
If you’d like to disable sharing entirely, you can do so by setting the share
option to "disabled"
in your config file.
{ "$schema": "https://opencode.ai/config.json", "share": "disabled"}
To enforce this across your team for a given project, add it to the opencode.json
in your project and check into Git.
Privacy
There are a few things to keep in mind when sharing a conversation.
Data retention
Shared conversations remain accessible until you explicitly unshare them. This includes:
- Full conversation history
- All messages and responses
- Session metadata
Recommendations
- Only share conversations that don’t contain sensitive information.
- Review conversation content before sharing.
- Unshare conversations when collaboration is complete.
- Avoid sharing conversations with proprietary code or confidential data.
- For sensitive projects, disable sharing entirely.
For enterprises
For enterprise deployments, the share feature can be:
- Self-hosted on your own infrastructure
- Restricted to authenticated users only
- Disabled entirely for security compliance
Learn more about using opencode in your organization.