packages/web/src/content/docs/share.mdx
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.
:::note Shared conversations are publicly accessible to anyone with the link. :::
When you share a conversation, OpenCode:
opncd.ai/s/<share-id>OpenCode supports three sharing modes that control how conversations are shared:
By default, OpenCode uses manual sharing mode. Sessions are not shared automatically, but you can manually share them using the /share command:
/share
This will generate a unique URL that'll be copied to your clipboard.
To explicitly set manual mode in your config file:
{
"$schema": "https://opencode.ai/config.json",
"share": "manual"
}
You can enable automatic sharing for all new conversations by setting the share option to "auto" in your config file:
{
"$schema": "https://opencode.ai/config.json",
"share": "auto"
}
With auto-share enabled, every new conversation will automatically be shared and a link will be generated.
You can disable sharing entirely 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.
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.
There are a few things to keep in mind when sharing a conversation.
Shared conversations remain accessible until you explicitly unshare them. This includes:
For enterprise deployments, the share feature can be:
Learn more about using opencode in your organization.