Skip to content

Plugin Auto-Update Feature #6159

Closed as not planned
Closed as not planned

Description

@Davincible

Plugin Auto-Update Feature

Problem

Users currently have no way to stay updated with plugin releases. Plugins are installed once and never updated automatically, requiring manual:

  • Version monitoring
  • Config file updates
  • OpenCode restarts

This leads to outdated plugins with potential security issues, bug fixes, and new features going unused.

Solution

Add automatic plugin update checking and installation with user-controlled policies and notifications.

Key Requirements

Configuration Options:

  • plugin_autoupdate: "disabled" | "notify" | "patch-only" | "auto"
  • plugin_update_check_interval: Update check frequency (default 1h)
  • plugin_update_exclude: Array of plugins to skip

Update Policies:

  • "disabled": No automatic updates (current behavior)
  • "notify": Check and notify of available updates, manual installation
  • "patch-only": Auto-update patch versions only (safest)
  • "auto": Auto-update all versions (requires restart)

User Experience:

  • Background version checking with caching
  • Notifications for available updates regardless of policy
  • CLI commands: opencode plugin check, opencode plugin update
  • Update status indicators and restart notifications

Safety:

  • Automatic rollbacks on update failure
  • Plugin integrity validation
  • Rate limiting for registry API calls

Implementation Approach

  1. Extend config schema with update settings
  2. Add background version checking with caching
  3. Implement update orchestration with rollback capability
  4. Add CLI commands and event notifications
  5. Integrate with existing plugin loading system

I'm happy to work on implementing this feature if the design approach is approved. Let me know your thoughts!

Activity

  1. Tarquinen commented on Dec 25, 2025

    @Tarquinen
    Contributor

    you can just do @latest and the plugin will auto update, for example "opencode-openai-codex-auth@latest"

  2. Davincible commented on Dec 25, 2025

    @Davincible
    Author

    Ah hm, would be good to document that better then in the plugins page

  3. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  4. macintacos commented on Apr 6, 2026

    @macintacos

    Just my $0.02 - I want to specify @latest for a plugin, but I want to be able to intentially update instead of having updates be applied automatically. As a user, I would like to stay on the latest version of a given plugin, but I want to have control over when that update happens (especially on major version changes). Ideally, OpenCode would tell me as a user that there are pending changes for plugins, and also potentially give me a link to those version diffs so that I can review / apply them myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions