MCPcopy Create free account
hub / github.com/deepclause/agentvm / getVM

Function getVM

example/openclaw/index.ts:8–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6let vmInstance: AgentVM | null = null;
7
8async function getVM() {
9 if (!vmInstance) {
10 console.log('[AgentVM Skill] Initializing VM...');
11 vmInstance = new AgentVM({
12 // Optional: mount host directories or enable networking here
13 network: true
14 });
15 await vmInstance.start();
16 console.log('[AgentVM Skill] VM Ready.');
17 }
18 return vmInstance;
19}
20
21export const tools = {
22 linux_sandbox_exec: tool({

Callers 1

index.tsFile · 0.85

Calls 1

startMethod · 0.45

Tested by

no test coverage detected