OpenCodesession-managementbuilt-in
/export
Export the current conversation to Markdown and open in $EDITOR. Keybind: Ctrl+x x.
When to use
- ▸Saving a conversation for documentation
- ▸Exporting a debugging session as a reference
- ▸Sharing a conversation with a team member
More OpenCode commands
context-management
/compact
Summarize the current session to save tokens. Alias: /summarize.
configuration
/connect
Add a provider and API key to connect a new AI model provider.
configuration
/details
Toggle tool execution details in the conversation output.
context-management
/editor
Open the external $EDITOR for composing messages — useful for long or structured prompts. Keybind: Ctrl+x e.