Skip to content

[Matrix] Phase 2: CLI Commands #783

@alacy-centrl

Description

@alacy-centrl

Overview

Add CLI commands for Matrix identity management to opencode-router.

Tasks

  • Add matrix list command
  • Add matrix add <homeserverUrl> <accessToken> command
  • Add matrix remove <id> command
  • Add optional flags: --id, --directory
  • Update help text and documentation
  • Add Matrix to send command options

Commands

opencode-router matrix list
opencode-router matrix add https://matrix.org syt_abc123... --id default
opencode-router matrix remove default
opencode-router send --channel matrix --identity default --to '!abc:matrix.org' --message 'Hello'

Acceptance Criteria

  • All commands execute without errors
  • Commands call health server API correctly
  • Error messages are clear and actionable
  • Help text is comprehensive
  • Consistent with Telegram/Slack command style

Estimated Time

2 days

Dependencies

Technical Details

  • Use Commander.js for CLI parsing
  • Validate Matrix room IDs before sending
  • Support both interactive and script usage

See full plan: https://github.com/users/alacy-centrl/projects/2

Metadata

Metadata

Assignees

No one assigned

    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