Replies: 3 comments 4 replies
smolvm is designed to be flexible intentionally. There's 2 general patterns I use it and the specific commands i use:
And yep! That's a valid way to inject api keys. I personally only use Codex and I just mount this the .codex which has the auth, sessions, histories already setup. So I never have to inject keys or whatever. Here's an example of my .codex path: I have not updated code base yet! But state actually persists with the smolVM microvm command. But I also just packed a coding agent into a portable executable .smolmachine :) so there's no need to install anything. I'll push that change soon! Last comment - that's a bug! It is fixed in the newest commits and I did not run a new build. Will do that shortly |
|
for env variables, could you use the same tokenizer / masking technique Fly.io Deno sandbox uses: https://news.ycombinator.com/item?id=46874822 https://github.com/superfly/tokenizer basically you're injecting API tokens on external url requests, so if keys can't ever get exposed if you try to read them Fly has a blog here: https://fly.io/blog/operationalizing-macaroons/ |
|
Hey! I've been exploring However, I'm having trouble with a few things:
I'm on MacOS |
Uh oh!
There was an error while loading. Please reload this page.
I'm curious what other folks are doing to use smolvm for isolation of long-running unattended workloads in Claude Code.
Here are some notes from the patterns I'm currently experimenting with this morning, and for illustration purposes this is my simplest "Hello, world!":
node:22-slim(and npx) added some launch/startup time when running in a sandbox, curious what patterns with persistence, containers, and packs other folks are using, and just like the item above, I'm hoping to inspire folks to post their own "Hello World!" and maybe some quick starts./Users/tjohns/Library/Application Support/smolvm/storage.rawand/Users/tjohns/Library/Application Support/smolvm/storage.formatted) to get this to work, and the Claude Code analysis indicatedresize2fs is in the init script of the rootfs (build-agent-rootfs.sh), but the Rust agent code in mount_storage_disk() does NOT call resize2fs after mounting.. I'm not personally familiar enough with smolvm, MicroVMs, or even containers enough to know whether is is intentional and expected, or a bug/feature improvement worth considering -- but figured I'd include this information in my notes here in case someone else is running into something similar.All reactions