HUB
Sign inSign up
opencode-ui logo

joyki/opencode-ui

By joyki

•Updated 6 months ago
Archived

Image
0

203

joyki/opencode-ui repository overview

⁠OpenCode Web — Docker Image

Run OpenCode⁠, the open-source AI coding agent, in Docker with Ollama as your LLM provider. Supports TUI, headless server, web UI, and one-shot CLI modes.

⁠Quick Start

Pull the image:

docker pull joyki/opencode-ui
⁠TUI Mode (interactive)
docker run -it --rm \
  -e OLLAMA_URL=http://host.docker.internal:11434/v1 \
  -e OLLAMA_MODEL=qwen3:8b \
  -v "$(pwd):/home/opencode/workspace" \
  joyki/opencode-ui
⁠One-shot Command
docker run -it --rm \
  -e OPENCODE_MODE=run \
  joyki/opencode-ui run "Explain this project"
⁠Server Mode (headless API)
docker run -d \
  --name opencode \
  -e OPENCODE_MODE=server \
  -p 4096:4096 \
  joyki/opencode-ui
# API at http://localhost:4096, docs at http://localhost:4096/doc

⁠Environment Variables

VariableDefaultDescription
OPENCODE_MODEtuiRun mode: tui, server, web, run
OLLAMA_URLhttp://host.docker.internal:11434/v1Ollama API base URL
OLLAMA_MODELqwen3:8bDefault Ollama model
OPENCODE_PORT4096Port for server/web mode
OPENCODE_SERVER_PASSWORD(empty)Basic auth password for server/web
OPENCODE_HOSTNAME0.0.0.0Bind address

⁠Volumes

PathPurpose
/home/opencode/workspaceMount your project directory here
/home/opencode/.config/opencodeConfig, agents, MCP servers
/home/opencode/.local/share/opencodeSessions, cache, auth

⁠Connecting to Ollama

On macOS / Windows, host.docker.internal resolves automatically.

On Linux, add --add-host host.docker.internal:host-gateway:

docker run -it --rm \
  --add-host host.docker.internal:host-gateway \
  -v "$(pwd):/home/opencode/workspace" \
  joyki/opencode-ui

Or run Ollama as a sibling container on the same Docker network.

⁠Modes

ModeCommandDescription
tui (default)opencodeInteractive terminal UI
serveropencode serveHeadless HTTP server
webopencode webWeb UI server
runopencode run <prompt>One-shot CLI command

⁠Tags

TagDescription
latestLatest stable build

⁠Building Locally

git clone <repo-url>
cd opencode-web
docker compose build

⁠License

OpenCode is MIT licensed. See the OpenCode repository⁠ for details.

Tag summary

Content type

Image

Digest

sha256:6d0af90cb…

Size

64.4 MB

Last updated

6 months ago

docker pull joyki/opencode-ui