Files
cubbi/cubbi/images/opencode/README.md
Mathieu Virbel 5fca51e515 feat: include new image opencode (#14)
* feat: include new image opencode

* docs: update readme
2025-06-20 02:09:12 +02:00

1.6 KiB

Opencode Image for Cubbi

This image provides a containerized environment for running Opencode.

Features

  • Pre-configured environment for Opencode AI
  • Langfuse logging support

Environment Variables

Opencode Configuration

Variable Description Required Default
CUBBI_MODEL Model to use with Opencode No -
CUBBI_PROVIDER Provider to use with Opencode No -

Cubbi Core Variables

Variable Description Required Default
CUBBI_USER_ID UID for the container user No 1000
CUBBI_GROUP_ID GID for the container user No 1000
CUBBI_RUN_COMMAND Command to execute after initialization No -
CUBBI_NO_SHELL Exit after command execution No false
CUBBI_CONFIG_DIR Directory for persistent configurations No /cubbi-config
CUBBI_PERSISTENT_LINKS Semicolon-separated list of source:target symlinks No -

MCP Integration Variables

Variable Description Required
MCP_COUNT Number of available MCP servers No
MCP_NAMES JSON array of MCP server names No
MCP_{idx}_NAME Name of MCP server at index No
MCP_{idx}_TYPE Type of MCP server No
MCP_{idx}_HOST Hostname of MCP server No
MCP_{idx}_URL Full URL for remote MCP servers No

Build

To build this image:

cd drivers/opencode
docker build -t monadical/cubbi-opencode:latest .

Usage

# Create a new session with this image
cubbix -i opencode