Skip to content

Can I get an easily human readable log file with plain text that just shows the whole conversation? #3274

Closed as not planned

Description

@621625

Question

Hi guys,

Hope you are well.

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.

Activity

  1. github-actions commented on Oct 19, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 19, 2025

    @rekram1-node
    Contributor

    @bitcoinmeetups kinda depends what you want, few options:

    • when in your session run /export -> get a markdown export of the conversation
    • outside of opencode run opencode export -> get a json export of entire convo with lots of metadata
    • run /share and view it in the web

    Let me know if these don't work and what you'd expect instead

  3. self-assigned this
    on Oct 19, 2025
  4. 621625 commented on Oct 25, 2025

    @621625
    Author

    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.

  5. rekram1-node commented on Oct 25, 2025

    @rekram1-node
    Contributor

    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

  6. 621625 commented on Oct 26, 2025

    @621625
    Author

    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?

  7. rekram1-node commented on Oct 26, 2025

    @rekram1-node
    Contributor

    you opencode export give the whole dump of a session (including its id), we should add a session list command or something tho.

  8. yonson40 commented on Dec 29, 2025

    @yonson40

    Any way to get full export of all sessions in one long conversation? Or have to save by each session?

  9. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions