explaingit

kkarsyline/curwe

Analysis updated 2026-05-18

18PythonAudience · developerComplexity · 4/5LicenseSetup · moderate

TLDR

A self hosted gateway that gives any compatible LLM agent style abilities: running shell commands, editing files, working in the background, building reusable tools, and creating small web apps.

Mindmap

mindmap
  root((curwe))
    What it does
      Agent workspace
      Shell and file tools
      Background jobs
    Tech stack
      Python
      Docker
      Shell sandbox
    Use cases
      Run and edit code
      Reusable tools
      Web apps
    Security
      Secret redaction
      Sandboxed user
    Audience
      Developers
      Self hosters

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Give a self hosted LLM API access to write and run code inside its own sandboxed workspace.

USE CASE 2

Offload long installs or batch jobs to the background so the conversation is not blocked while they run.

USE CASE 3

Turn a completed task into a reusable tool that future conversations can search for and call.

USE CASE 4

Build a small interactive web app, like a two player game, that the model updates in real time.

What is it built with?

PythonDockerShell

How does it compare?

kkarsyline/curwe1038lab/comfyui-agnes-aiadityaarsharma/wordpress-malware-removal
Stars181818
LanguagePythonPythonPython
Setup difficultymoderateeasymoderate
Complexity4/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs Docker plus the NET_ADMIN capability, and has no built in authentication so a reverse proxy is required for remote access.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

This repository is a workspace gateway that gives a self hosted AI model agent like abilities similar to Claude Code or Codex, but through any OpenAI or Anthropic compatible API and running on your own server. The model gets a dedicated folder called /workspace where it can execute shell commands, read, write, edit, and patch files, view diffs, and list directories. Long running jobs, like installing large dependencies or running a batch process for many minutes, can be pushed to the background so the chat is not blocked. When the job finishes, an event is sent back into the conversation so the model can pick up where it left off. The model can also turn a task it has completed into a reusable named tool and store it in a tools folder, so future conversations can search for and call that tool without having to relearn how to do the task. New tools are discovered at runtime rather than added to the fixed list sent with every request, which keeps prompt costs from growing as more tools are registered. Files written to an artifacts folder automatically become downloadable or viewable links, so the model can hand over reports, charts, zip files, or small static websites. The project also supports building small interactive web applications: the model writes both the frontend and the backend, which runs locally behind the gateway, and actions taken in the browser are sent back to the model so it can respond and update the page. This allows simple turn based interactions, such as the included five in a row game example. On security, if a user shares a credential in chat, the model only ever sees a placeholder token for it. The gateway resolves the real value into the environment of a spawned subprocess, keeping it out of the model's context, command strings, and logs. Shell commands run under a low privilege sandboxed user, and the gateway itself has no built in authentication, so exposing it publicly requires putting an authenticated reverse proxy in front of it. The project is written in Python and released under the MIT license.

Copy-paste prompts

Prompt 1
Set up this workspace gateway with Docker Compose and turn on shell execution safely.
Prompt 2
Write a script in my workspace that cleans this CSV file and run it for me.
Prompt 3
Register a reusable tool from the deployment task we just finished.
Prompt 4
Build a simple web app in my workspace that I can open in the browser and interact with.

Frequently asked questions

What is curwe?

A self hosted gateway that gives any compatible LLM agent style abilities: running shell commands, editing files, working in the background, building reusable tools, and creating small web apps.

What language is curwe written in?

Mainly Python. The stack also includes Python, Docker, Shell.

What license does curwe use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is curwe to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is curwe for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.