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
/oc Read cmd/ directory, introduce a new command called session, it should have a subcommand called "list" so youd call it like:
opencode session list
It should function kinda like how git log works where it paginates if possible and it should show session ids in a way or with flag in a way it could easily be used in a ci script if needed
Requires extra tool - Agent Sessions. I recently added OpenCode support. You can visually or via search find your sessions and then copy ID from a toolbar - will get something like - ses_533cded24ffeEg9nWRBZHMGN7c
Can we specify a session ID when starting opencode? But don't be like Claude Code which insists on using UUIDs — make it like tmux where you can specify any name you want.
@0xRango yes but you're gonna be unhappy because its not user friendly ids
Yes, so I wish I could define session id myself. Claude Code currently only supports adding -c to continue the last session — it's too difficult to resume other sessions.
added session list command in next release: a8ad74a
Hi, I found that --session arg not support for custom session id, like --session-id of claude code. but the UUID s are very user-unfriendly. Can we use custom session id, like --session project1 to start new one or continue session?
Activity
rekram1-node commentedon Nov 20, 2025
u can use
opencode exportoropencode runif u use run with the--format jsonflag. But youre correct we need that sessions list commandrekram1-node commentedon Nov 20, 2025
/oc Read cmd/ directory, introduce a new command called session, it should have a subcommand called "list" so youd call it like:
opencode session list
It should function kinda like how
git logworks where it paginates if possible and it should show session ids in a way or with flag in a way it could easily be used in a ci script if neededopencode-agent commentedon Nov 20, 2025
Created PR #4558
opencode session | github run
jdanbrown commentedon Nov 20, 2025
Nice!
Another interim workaround: grep around under
~/.local/share/opencode/to find theses_*id. 🙃daniel-fahey commentedon Nov 22, 2025
Another workaround is to use a very simple tool, like this:
jazzyalex commentedon Nov 29, 2025
Requires extra tool - Agent Sessions. I recently added OpenCode support. You can visually or via search find your sessions and then copy ID from a toolbar - will get something like - ses_533cded24ffeEg9nWRBZHMGN7c
jazzyalex.github.io/agent-sessions
native macOS app (signed and notarized)• open source
ses_533cded24ffeEg9nWRBZHMGN7c
chenyuejie commentedon Nov 30, 2025
Can we specify a session ID when starting opencode? But don't be like Claude Code which insists on using UUIDs — make it like tmux where you can specify any name you want.
rekram1-node commentedon Dec 3, 2025
@0xRango yes but you're gonna be unhappy because its not user friendly ids
chenyuejie commentedon Dec 3, 2025
Yes, so I wish I could define session id myself. Claude Code currently only supports adding -c to continue the last session — it's too difficult to resume other sessions.
rekram1-node commentedon Dec 3, 2025
we allow u to do -c and --session
for OP:
added session list command in next release: a8ad74a
chenyuejie commentedon Dec 3, 2025
Hi, I found that --session arg not support for custom session id, like --session-id of claude code. but the UUID s are very user-unfriendly. Can we use custom session id, like --session project1 to start new one or continue session?
jdanbrown commentedon Dec 3, 2025
Thanks! Confirmed
opencode session listis now working in 1.0.129.