GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — opencode/packages/cli-rs at dev · erickwill/opencode

Expand file tree

/

cli-rs

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

cli-rs

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.cargo
.cargo
 
 
assets/queries
assets/queries
 
 
crates
crates
 
 
docs
docs
 
 
parity
parity
 
 
script
script
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 
clippy.toml
clippy.toml
 
 
deny.toml
deny.toml
 
 
deps-allow.txt
deps-allow.txt
 
 
package.json
package.json
 
 
rust-toolchain.toml
rust-toolchain.toml
 
 
rustfmt.toml
rustfmt.toml
 
 
tsconfig.json
tsconfig.json
 
 

README.md

Outline

OpenCode native CLI

The OpenCode CLI and TUI in Rust, built on OpenTUI's Rust crates. It is a client of the TypeScript opencode server and talks to it over HTTP. Its binary is opencode-native, and it does not ship yet.

Build and run

bun run --cwd packages/cli-rs cargo build --release --bin opencode-native

Always run cargo through bun run cargo: it installs OpenTUI's native library first, and cargo reads .cargo/config.toml only inside packages/cli-rs.

Run target/release/opencode-native in a project directory to open the TUI, or add -c to continue the last session there.

Server

The client runs the server from OPENCODE_TS_BIN, else the opencode beside its own executable, else opencode on PATH. It shares sessions, the background service, and cli.json with the TypeScript client.

Editor

rust-analyzer finds no project at the repository root. Open packages/cli-rs, or set "rust-analyzer.linkedProjects": ["packages/cli-rs/Cargo.toml"].

Plugins

The client runs the TypeScript TUI plugins on its own Bun process, and it also runs Luau plugins.

  • docs/plugins.md: how plugins work and how to write one.
  • docs/plugin-abi.md: the full plugin contract.

More

  • docs/architecture.md: the crates, the server connection, the store, and the TUI.
  • docs/testing.md: the parity suites against the TypeScript client and the other checks.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.