Terminal bridge for OpenCode in the hive ecosystem. Spawns and manages OpenCode sessions inside Emacs vterm buffers (or any terminal host) with hive-mcp wired in as an MCP server.
.opencode.json with hive-mcp and custom MCP servers wired inWritten in ClojureElisp (cljel) — Clojure syntax compiled to Emacs Lisp.
src/cljel/opencode_emacs/
bridge.cljel — Core spawn/kill/send/status + swarm API
config.cljel — .opencode.json generation with hive-mcp wiring
tools.cljel — Buffer, eval, window, project, git tools
Compiled output lands in out/.
make compile # Compile cljel -> elisp
make watch # Watch mode
make clean # Remove compiled output
Requires the clel CLI from clojure-elisp.
OpenCode supports opencode serve + opencode attach which works over any terminal (tmux, kitty, etc.). The cljel files are the Emacs-specific implementation, but the project scope is broader than just Emacs.
Copyright (c) 2024-2026 hive-agi contributors
EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0. See LICENSE.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |