Skip to content

opencode process consumes 185% avg CPU / 500MB+ RAM constantly #31831

Description

@ASTL2022

Description

Environment

  • macOS 27.0 (Apple Silicon)
  • opencode 1.17.3
  • model: deepseek/deepseek-v4-pro (custom provider)
  • node: [fill with node -v]

Description

opencode keeps consuming high CPU even when idle (no active conversation).

10-min Monitoring (5s interval, 119 samples)

CPU % RAM
AVG 185.9 543MB
MAX 490.0 931MB
>50% 101/119 (85%)
11:14:33   175.4   1023MB
11:14:43   231.2    921MB
11:14:53   237.2    903MB
11:15:13   350.6    890MB
11:15:23   442.6    898MB
11:16:19   386.8    562MB
11:17:04   331.2    420MB
11:18:45   297.2    446MB
11:19:55   490.0    495MB
11:20:25   388.0    452MB
11:21:01   423.9    470MB
11:22:01   390.6    466MB
11:23:26   407.9    509MB
11:24:32   266.0    579MB

Steps

  1. opencode with DeepSeek provider
  2. No active conversation, just sit idle
  3. ps -p $(pgrep opencode) -o %cpu=,rss= every 5s

Expected

Idle CPU < 5%, RAM < 200MB

Actual

Idle CPU 150–490%, RAM 400–1000MB

Config

{
  "model": "deepseek/deepseek-v4-pro",
  "provider": {
    "deepseek": {
      "id": "deepseek",
      "api": "https://api.deepseek.com",
      "options": {
        "apiKey": "<redacted>",
        "baseURL": "https://api.deepseek.com"
      },
      "models": {
        "deepseek-v4-pro": { "id": "deepseek-v4-pro", "name": "DeepSeek V4 Pro" },
        "deepseek-v4-flash": { "id": "deepseek-v4-flash", "name": "DeepSeek V4 Flash" }
      }
    }
  }
}

opencode_monitor_111433.log

Plugins

Skills only

OpenCode version

1.17.3

Steps to reproduce

  1. Start opencode
  2. Run normal coding tasks (multi-turn conversation with file edits/bash execution)
  3. Monitor CPU/memory with ps -p $(pgrep opencode) -o %cpu=,rss= every few seconds
  4. Compare to previous version / previous experience — CPU is ~2x higher, with noticeable overheating

Screenshot and/or share link

opencode_monitor_111433.log

Operating System

macos27.0

Terminal

Apple Terminal (480)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions