sharing.mdx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. title: "Session sharing"
  3. description: ""
  4. ---
  5. Session sharing is not yet available in OpenCode V2. V2 does not currently
  6. publish sessions, upload conversation history to a sharing service, or create
  7. public links.
  8. <Warning>
  9. The V2 TUI registers `/share`, but it currently only reports that sharing is unavailable. There is no functional
  10. share/unshare command or server API endpoint.
  11. </Warning>
  12. ## Configuration
  13. The V2 configuration schema accepts a `share` field with three values:
  14. ```jsonc title="opencode.jsonc"
  15. {
  16. "$schema": "https://opencode.ai/config.json",
  17. "share": "manual"
  18. }
  19. ```
  20. - `"manual"` represents sharing only when explicitly requested.
  21. - `"auto"` represents automatically sharing new sessions.
  22. - `"disabled"` represents preventing session sharing.
  23. These values are parsed but are not acted on by the current V2 runtime. In
  24. particular, setting `"auto"` does not publish sessions. If `share` is omitted,
  25. V2 leaves the sharing policy unspecified.
  26. ## Beta limitations
  27. V2 currently provides no public session viewer, share URL, history sync,
  28. retention controls, or unshare/delete operation. Until those surfaces are
  29. implemented in the V2 server and protocol, keep using sessions locally and do
  30. not treat the `share` configuration field as a privacy or publishing control.