-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.opencode.config.cjs
More file actions
86 lines (82 loc) · 2.68 KB
/
ecosystem.opencode.config.cjs
File metadata and controls
86 lines (82 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* OpenCode AI PM2 Ecosystem Configuration
* Integrates OpenCode with PM2, MCP servers, and A2A protocols
*/
module.exports = {
apps: [
// OpenCode ACP Server (Agent Client Protocol)
{
name: 'opencode-acp',
script: 'npx',
args: 'opencode-ai acp --port 8300 --hostname 0.0.0.0',
cwd: '/home/yenn',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '512M',
env: {
NODE_ENV: 'production',
OPENCODE_CONFIG: '/home/yenn/.opencode/config.json'
},
error_file: '/home/yenn/.yennefer/logs/opencode-acp-error.log',
out_file: '/home/yenn/.yennefer/logs/opencode-acp-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
},
// OpenCode Headless Server (for remote API access)
{
name: 'opencode-server',
script: 'npx',
args: 'opencode-ai serve --port 8301 --hostname 0.0.0.0',
cwd: '/home/yenn',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '512M',
env: {
NODE_ENV: 'production',
OPENCODE_CONFIG: '/home/yenn/.opencode/config.json'
},
error_file: '/home/yenn/.yennefer/logs/opencode-server-error.log',
out_file: '/home/yenn/.yennefer/logs/opencode-server-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
},
// OpenCode MCP Bridge (connects to existing MCP servers)
{
name: 'opencode-mcp-bridge',
script: '/home/yenn/scripts/opencode_mcp_bridge.cjs',
cwd: '/home/yenn',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '256M',
env: {
NODE_ENV: 'production',
MCP_YENNEFER: 'http://localhost:8088',
MCP_QMCP_GATEWAY: 'http://localhost:8099',
MCP_DIAMOND_VAULT: 'http://localhost:8100',
A2A_HANDOFF: 'http://localhost:8200'
},
error_file: '/home/yenn/.yennefer/logs/opencode-mcp-bridge-error.log',
out_file: '/home/yenn/.yennefer/logs/opencode-mcp-bridge-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
},
// OpenCode A2A Client (connects to A2A Handoff Server)
{
name: 'opencode-a2a-client',
script: '/home/yenn/scripts/opencode_a2a_client.cjs',
cwd: '/home/yenn',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '256M',
env: {
NODE_ENV: 'production',
A2A_HANDOFF_URL: 'http://localhost:8200',
OPENCODE_ACP_URL: 'http://localhost:8300'
},
error_file: '/home/yenn/.yennefer/logs/opencode-a2a-client-error.log',
out_file: '/home/yenn/.yennefer/logs/opencode-a2a-client-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
}
]
};