1 2 3 4
from opencode_ai import OpenCodeClient client = OpenCodeClient() print([s.id for s in client.list_sessions() or []])