Skip to content

feat: add /models command to switch model from Telegram #139

Description

@liuxb99

Feature Request

Add a /models command that lets users switch the active model directly from Telegram, without needing to open the OpenCode desktop app.

Current behavior

Users must use the OpenCode desktop app to change models. There is no way to browse or switch models via the Telegram bot.

Proposed behavior

  • /models — Shows an inline menu with favorite and recently used models
  • Search button to find models across all providers
  • One-tap selection updates the model immediately

Implementation notes

  • Uses opencodeClient.config.providers() to fetch available models
  • Callback-based inline menu with favorites/recent models
  • Model search with text input flow
  • Command already implemented in src/bot/commands/models.ts and src/bot/handlers/model.ts

This would be a valuable UX improvement for users who primarily interact with OpenCode through Telegram.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions