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
🐛 Issue: opencode memory usage keeps growing over time #11399
Hi,
I’ve noticed that opencode / opencode-cli consumes an unusually large amount of memory over time, and the usage keeps increasing during normal usage.
At startup, memory usage looks reasonable, but after some time of usage, it grows continuously and does not seem to be released.
Eventually, it reaches multiple GBs, which is not expected for this type of application.
⸻
Environment
• OS: macOS (Apple Silicon)
• opencode version: 1.1.47
• Installation method: other
• Running locally, no Docker / VM involved
⸻
Observed Behavior
• On startup:
• Memory usage is normal (a few hundred MB)
• After continued usage:
• Memory usage keeps increasing
• No obvious drop after tasks finish
• In some cases:
• opencode-cli reaches 10–15 GB+ memory usage
• Another related process (opencode) also remains resident with hundreds of MB
I’ve attached screenshots from macOS Activity Monitor showing the memory usage over time.
⸻
Screenshots
• opencode-cli using ~15.5 GB memory
• Related opencode process still active (~500+ MB)
• Memory usage inc
Activity
github-actions commentedon Jan 31, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
thefeshin commentedon Feb 20, 2026
fix: memory leak - unbounded virtual memory growth during active usage
thdxr commentedon Apr 2, 2026
Closing in favor of #20695 where we're collecting all memory-related problems. Please follow that issue for updates.