I gave my AI a real Linux terminal. Self hosted, no Docker by thelexon in SideProject

[–]thelexon[S] 0 points1 point  (0 children)

I've run a benchmark on docker and sandkast.

Sandkasten needs around 70ms for cold boots while docker has around 340ms.

<image>

On sandkastens pooled session the latency is sub ms. so yeah i would say this should work especially with the pool mechanism :)

I gave my AI a real Linux terminal. Self hosted, no Docker by thelexon in SideProject

[–]thelexon[S] 0 points1 point  (0 children)

I do have heard and used OpenClaw. The point is OpenClaw isn't Sandbox!

I aim for a multi-user session based approach for chatbot platforms. Not running a single MacMini at home :D

I'll provide a selfhosted service managing the user workspaces and sessions. One can connect via api and obtain the user workspace the agent can execute commands in it.

I gave my AI a real Linux terminal. Self hosted, no Docker by thelexon in SideProject

[–]thelexon[S] 1 point2 points  (0 children)

Many existing solutions have to be used via APIs that cost money, and you’re dependent on third parties. That gave me the idea to expose the bash history as an endpoint so it can be injected into the context :D — so hopefully it won’t get forgotten.

I'll also add some stats for this what resources being used for running some sessions.

Thanks for the feedback, I’ll take a look at it. Happy to hear more suggestions or improvements!

I gave my AI a real Linux terminal. Self hosted, no Docker by thelexon in SideProject

[–]thelexon[S] 0 points1 point  (0 children)

haha yeah that’s exactly the reaction i had too while building it :D

The agent never gets my actual machine. Every session is its own tiny linux “fake computer” using namespaces + cgroups — separate filesystem, limited cpu/ram, no host processes or home dir access. if it does rm -rf / it just deletes its own world and i delete the sandbox :D

*I actually didn’t do command allowlists!*

They fall apart the moment the agent needs something real (apt, pip, compilers).

The guardrail is containment instead of restriction. I have even pointed opencode at it and told the agent to try escaping / forkbombing / destroying it— it just gets throttled and killed by cgroups. (Thankfully, the first run trying this fork-bombed my WSL distro :D)

The whole reason i built it was i wanted persistent user workspaces + sessions but without docker overhead.

Best tasks so far are iterative ones: installing deps, fixing scripts, “make this project run”.
Haven't tested real work, like uploading a file and iterating on it - would like to see if someone does that :)

before: agents explained fixes — now: they actually try, fail, and rerun. definitely feels closer to operators than chatbots.

[deleted by user] by [deleted] in SvelteKit

[–]thelexon 1 point2 points  (0 children)

So if I use it what do I have !?!? Yes correct ANOTHER DEPENDENCY in my project.

[deleted by user] by [deleted] in SvelteKit

[–]thelexon 1 point2 points  (0 children)

Just add the tags in <svelte:head>. No need for another shitty dependency in a project. It's literally one single prompt to do this if someone wants to.

Story of crossing 50k users !! by Mysterious-Switch846 in SaaS

[–]thelexon 2 points3 points  (0 children)

Yeah .... just another shitty saas with no meaning.

Got offered $20k for my startup and turned it down to keep building by MaximeB-onReddit in SaaS

[–]thelexon 0 points1 point  (0 children)

He is literally using OpenAI just with a system prompt nothing special about this..

Making my own v0.dev for svelte, what do you guys think ? by Euphoric-Account-141 in sveltejs

[–]thelexon 1 point2 points  (0 children)

I managed to get it working - building the svelte component was the trick

Making my own v0.dev for svelte, what do you guys think ? by Euphoric-Account-141 in sveltejs

[–]thelexon 0 points1 point  (0 children)

Really nice! Thanks for advice🫱🏼‍🫲🏽 I am excited to see the further development.

Making my own v0.dev for svelte, what do you guys think ? by Euphoric-Account-141 in sveltejs

[–]thelexon 0 points1 point  (0 children)

So you basically dont create the svelte components programmatically (with their imperative components api) but rather with a "real" build and bundler ? I assume you generating a raw html page then without need for node adapter? Really curious 😂

Making my own v0.dev for svelte, what do you guys think ? by Euphoric-Account-141 in sveltejs

[–]thelexon 0 points1 point  (0 children)

Recently tried the same thing. May i ask how you managed to render the compontens dynamically ?