An open API service indexing awesome lists of open source software.

https://github.com/bjesus/opencode-gtk

A modern GNOME/GTK/Adwaita interface for OpenCode
https://github.com/bjesus/opencode-gtk

Last synced: 4 months ago
JSON representation

A modern GNOME/GTK/Adwaita interface for OpenCode

Awesome Lists containing this project

README

          

# OpenCode GTK

A modern GTK4/libadwaita desktop client for OpenCode.

image

## Features

- Session management (create, list, delete, fork, rename)
- Real-time chat with streaming responses via SSE
- Model and Agent selector
- Show message information like tokens count, costs etc
- Responsive interface

## Prerequisites

You need to have [OpenCode](https://github.com/sst/opencode) installed and configured before using this client.

## Installation

Download the latest binary from the [releases page](https://github.com/bjesus/opencode-gtk/releases).

## Running

OpenCode GTK will automatically launch `opencode serve` unless you specify a server using the `--server` flag.

```bash
./opencode-gtk
```

Connect to a custom server:
```bash
./opencode-gtk --server 127.0.0.1:42165
```

## Manual Compilation

### Requirements

- Rust toolchain
- GTK4 development libraries
- libadwaita development libraries

### Installation on Linux

**Fedora/RHEL:**
```bash
sudo dnf install gtk4-devel libadwaita-devel
```

**Ubuntu/Debian:**
```bash
sudo apt install libgtk-4-dev libadwaita-1-dev
```

**Arch:**
```bash
sudo pacman -S gtk4 libadwaita
```

### Building

```bash
cargo build
```

### Running

```bash
cargo run
```

Connect to a custom server:
```bash
cargo run -- --server 127.0.0.1:42165
```