-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Description
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
reases with usage, not immediately on startup
