diff --git a/apps/api/src/main.py b/apps/api/src/main.py index 2cd8d5a..757ea41 100644 --- a/apps/api/src/main.py +++ b/apps/api/src/main.py @@ -162,9 +162,9 @@ networks: { "name": "opencode", "display_name": "OpenCode", - "description": "AI coding assistant with web terminal", + "description": "AI coding assistant - run opencode in terminal", "category": "ai-assistant", - "interfaces": ["terminal", "web"], + "interfaces": ["terminal"], "default_port": 3000, "compose_template": """version: "3.8" services: @@ -180,10 +180,11 @@ services: ports: - "3000:3000" command: > - sh -c "npm install -g opencode@latest && + sh -c "apt-get update && apt-get install -y curl git && + curl -fsSL https://opencode.ai/install | bash && + export PATH=\"$HOME/.local/bin:$PATH\" && mkdir -p /workspace && - echo 'Starting OpenCode web server on port 3000...' && - node -e 'const http = require(\\"http\\"); const fs = require(\\"fs\\"); const server = http.createServer((req, res) => { res.writeHead(200, {\\"Content-Type\\": \\"text/html\\"}); res.end(\\`
Status: Running
Use the Terminal button to access the interactive shell.
OpenCode is ready to assist with your coding tasks.