You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can I get an easily human readable log file with plain text that just shows the whole conversation? #3274
Can I get an easily human readable log file with plain text that just shows the whole conversation history from a given session? I can't find that. The log files in .local/share/opencode are hardly human readable. Anyway I just want to see the conversation in txt format.
If this doesn't exist then I would really want it so please make it a feature request.
Config option to make Opencode automatically save every conversation locally as a human readable text:
E. g (when enabled)
log195832.txt:
AI:
Hey how are you
Human:
Fine
Just pure text, that's all. I don't want to have to manually export every time I browse through an old session. Also I can't read conveniently the current format. And I don't always want to be inside the TUI. I'm more of a CLI person so perhaps I will use opencode run more in the future. Also it's just pure cool and no-nonsense. User wants text logs saved? You got it. So that opencode constantly strives to empower the user, not a centralized entity.
Love opencode and hope that you continue to work on it.
Exporting from command line is ok. As long as it's accessible from command line and not requiring using the TUI. Or if you know another tool that can export those logs to plain text files I could use that too. By the way is there a way to use command line to get the sesson ID's?
Activity
github-actions commentedon Oct 19, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 19, 2025
@bitcoinmeetups kinda depends what you want, few options:
opencode export-> get a json export of entire convo with lots of metadataLet me know if these don't work and what you'd expect instead
621625 commentedon Oct 25, 2025
I would suggest following feature:
Config option to make Opencode automatically save every conversation locally as a human readable text:
E. g (when enabled)
log195832.txt:
AI:
Hey how are you
Human:
Fine
Just pure text, that's all. I don't want to have to manually export every time I browse through an old session. Also I can't read conveniently the current format. And I don't always want to be inside the TUI. I'm more of a CLI person so perhaps I will use opencode run more in the future. Also it's just pure cool and no-nonsense. User wants text logs saved? You got it. So that opencode constantly strives to empower the user, not a centralized entity.
Love opencode and hope that you continue to work on it.
rekram1-node commentedon Oct 25, 2025
If you wanna save everything as plaintext you could write a plugin to this I think, Idk if we want to add an option to double save all conversations.
We could also make export from command line have a --format md or something but ik you said you didn't wanna export manually
621625 commentedon Oct 26, 2025
Exporting from command line is ok. As long as it's accessible from command line and not requiring using the TUI. Or if you know another tool that can export those logs to plain text files I could use that too. By the way is there a way to use command line to get the sesson ID's?
rekram1-node commentedon Oct 26, 2025
you
opencode exportgive the whole dump of a session (including its id), we should add a session list command or something tho.yonson40 commentedon Dec 29, 2025
Any way to get full export of all sessions in one long conversation? Or have to save by each session?
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.