1. Conduid
  2. Developer Tools
  3. ForeverVM
MCP server · Developer Tools

ForeverVM

Securely run AI-generated code in stateful sandboxes that run forever.

Unclaimed MIT last commit a year ago devtools
70Good

Scored 3 hours ago · breakdown

About ForeverVM

ForeverVM is an MCP server published by jamsocket in the Developer Tools category: securely run AI-generated code in stateful sandboxes that run forever. It has been installed 0 times through Conduid.

The repository has 228 stars and 22 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx forevervm

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about ForeverVM

Powered by Claude · Grounded in docs

I know everything about ForeverVM. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.35v0.1.35 · 4 Apr 2025What's Changed Misc MCP improvements by @paulgb in https://github.com/jamsocket/forevervm/pull/134 Add memory limit functionality to Python SDK by @paulgb in https://github.com/jamsocket/forevervm/pull/135 Add JavaScript memory limits by…
v0.1.32v0.1.32 · 17 Mar 2025What's Changed Add memory limit to HTTP API by @paulgb in https://github.com/jamsocket/forevervm/pull/130 Buffer streamed chunks from `stream-result` endpoint by @jakelazaroff in https://github.com/jamsocket/forevervm/pull/132 0.1.32 by…
v0.1.31v0.1.31 · 13 Mar 2025What's Changed Tag support by @paulgb in https://github.com/jamsocket/forevervm/pull/124 Add support for listing tags in the Rust client/sdk by @paulgb in https://github.com/jamsocket/forevervm/pull/125 allow tags to be omitted on requests…
v0.1.30v0.1.30 · 11 Mar 2025What's Changed Add rust client implementation for streaming results by @paulgb in https://github.com/jamsocket/forevervm/pull/121 Add stream result endpoint to JS SDK by @jakelazaroff in https://github.com/jamsocket/forevervm/pull/122…
v0.1.29v0.1.29 · 6 Mar 2025What's Changed Created LICENSE.md by @typesend in https://github.com/jamsocket/forevervm/pull/119 SDK header tweaks by @jakelazaroff in https://github.com/jamsocket/forevervm/pull/105 Add timeout option to Python SDK by @jakelazaroff in…

README

foreverVM

GitHub Repo stars Chat on Discord

repo version
cli npm
sdk npm

foreverVM provides an API for running arbitrary, stateful Python code securely.

The core concepts in foreverVM are machines and instructions.

Machines represent a stateful Python process. You interact with a machine by running instructions (Python statements and expressions) on it, and receiving the results. A machine processes one instruction at a time.

Getting started

You will need an API token (if you need one, reach out to paul@jamsocket.com).

The easiest way to try out foreverVM is using the CLI. First, you will need to log in:

npx forevervm login

Once logged in, you can open a REPL interface with a new machine:

npx forevervm repl

When foreverVM starts your machine, it gives it an ID that you can later use to reconnect to it. You can reconnect to a machine like this:

npx forevervm repl [machine_name]

You can list your machines (in reverse order of creation) like this:

npx forevervm machine list

You don't need to terminate machines -- foreverVM will automatically swap them from memory to disk when they are idle, and then automatically swap them back when needed. This is what allows foreverVM to run repls “forever”.

Using the API

import { ForeverVM } from '@forevervm/sdk'

const token = process.env.FOREVERVM_TOKEN
if (!token) {
  throw new Error('FOREVERVM_TOKEN is not set')
}

// Initialize foreverVM
const fvm = new ForeverVM({ token })

// Connect to a new machine.
const repl = fvm.repl()

// Execute some code
let execResult = repl.exec('4 + 4')

// Get the result
console.log('result:', await execResult.result)

// We can also print stdout and stderr
execResult = repl.exec('for i in range(10):\n  print(i)')

for await (const output of execResult.output) {
  console.log(output.stream, output.data)
}

process.exit(0)

Working with Tags

You can create machines with tags and filter machines by tags:

import { ForeverVM } from '@forevervm/sdk'

const fvm = new ForeverVM({ token: process.env.FOREVERVM_TOKEN })

// Create a machine with tags
const machineResponse = await fvm.createMachine({
  tags: { 
    env: 'production', 
    owner: 'user123',
    project: 'demo'
  }
})

// List machines filtered by tags
const productionMachines = await fvm.listMachines({
  tags: { env: 'production' }
})

Memory Limits

You can create machines with memory limits by specifying the memory size in megabytes:

// Create a machine with 512MB memory limit
const machineResponse = await fvm.createMachine({
  memory_mb: 512,
})

README mirrored from the source repository 3 hours ago. The original is authoritative.

Questions

About ForeverVM

How do I install ForeverVM?

Run npx forevervm, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is ForeverVM safe to use with an AI agent?

Its trust score is 70 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is ForeverVM still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.