tmux-code

module
v0.0.0-...-368a55c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: MIT

README

tmux-code

CI Go Report Card

Run OpenCode via Tmux — locally or on remote machines over SSH.

Features

  • Local mode: Launch OpenCode in a local Tmux session
  • Remote mode: Launch OpenCode on a remote machine via SSH + Tmux
  • First-run setup: Interactive wizard to configure SSH connection details
  • Cross-platform: Linux and macOS (amd64/arm64)

Requirements

  • Go 1.22+
  • Tmux 3.0+
  • OpenCode installed on the target machine
  • SSH access (for remote mode)

Installation

go install github.com/haribote-lab/tmux-code/cmd/tmux-code@latest

Or download a binary from Releases.

Quick Start

# First run — interactive setup
tmux-code

# Local mode
tmux-code start --local

# Remote mode (uses saved SSH config)
tmux-code start --remote

Configuration

Config is stored at ~/.config/tmux-code/config.yaml.

ssh:
  host: dev-server.example.com
  port: 22
  user: dev
  key_path: ~/.ssh/id_ed25519

Development

make test       # Run tests with race detector
make lint       # Run linters
make build      # Build binary
make coverage   # Generate coverage report

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT

Directories

Path Synopsis
cmd
tmux-code command
internal
ssh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL