The foreverVM repository offers an API for securely running stateful Python code through machines and instructions. Users can interact with machines using a CLI tool for REPL sessions and machine management.
foreverVM offers an API for securely running stateful Python code. It revolves around machines (stateful Python processes) and instructions (Python code to be executed). Machines process instructions sequentially.
Getting Started:
The CLI is the easiest way to interact with foreverVM. After logging in via npx forevervm login
, you can start a REPL session with npx forevervm repl
. Reconnect to existing machines using npx forevervm repl [machine_name]
. List machines with npx forevervm machine list
. Machines are automatically swapped between memory and disk for persistent REPL sessions.
Using the API:
The SDK allows programmatic interaction. Initialize ForeverVM
with your API token. Use repl()
to connect to a new machine and exec()
to run code. Access results and standard output/error streams.
Working with Tags:
Machines can be created and filtered using tags for organization.
Memory Limits:
Machines can be created with specific memory limits in megabytes.
jamsocket/forevervm
January 18, 2025
March 28, 2025
Rust