Overview
Weavers are ephemeral Kubernetes pods that run Loom REPL sessions in isolated environments. Each weaver:- Runs in the
loom-weaversnamespace - Has configurable resource limits (CPU, memory)
- Supports custom container images
- Auto-expires after a configurable lifetime (default: 24 hours, max: 48 hours)
- Provides terminal access via WebSocket
Create Weaver
Request Body
string
required
Container image to run (e.g.,
"ghcr.io/loom/weaver:latest")string
required
Organization ID (UUID). User must be a member of this organization.
string
Repository ID for repo-scoped secrets access
object
default:"{}"
Environment variables as key-value pairs
object
Resource limits:
memory_limit: e.g.,"8Gi"cpu_limit: e.g.,"4"
object
default:"{}"
User-defined metadata tags for filtering
integer
Time-to-live in hours (max: 48, default: 24)
array
Override container ENTRYPOINT
array
Override container CMD
string
Override container WORKDIR
Response
string
Weaver ID
string
Kubernetes pod name
string
One of:
pending, running, succeeded, failed, terminatingstring
ISO 8601 timestamp
string
Container image
object
User-defined tags
integer
Configured lifetime in hours
number
Current age in hours
string
Owner’s user ID
Example
List Weavers
Query Parameters
string[]
Filter by tags (format:
key:value). Multiple allowed.Response
array
Array of weaver objects
integer
Number of weavers returned
Example
Get Weaver
Path Parameters
string
required
Weaver ID
Response
Returns a single weaver object.Example
Delete Weaver
Path Parameters
string
required
Weaver ID
Response
Returns204 No Content on success.
Example
204 No Content
Stream Weaver Logs
Path Parameters
string
required
Weaver ID
Query Parameters
integer
default:"256"
Number of lines to tail from the end
boolean
default:"true"
Include timestamps in log lines
Response
Returnstext/event-stream with log lines as SSE events.
Example
Attach to Weaver Terminal
Path Parameters
string
required
Weaver ID
Authentication
Use a WebSocket token from/auth/ws-token in the first message:
Access Levels
- Full access (owner or admin): Can send input and receive output
- Read-only (support role): Can only view output
Example
Cleanup Expired Weavers
Query Parameters
boolean
default:"false"
If true, only list weavers that would be deleted without actually deleting them
Response
boolean
Whether this was a dry run
string[]
Weaver IDs that were deleted (null in dry run)
string[]
Weaver IDs that would be deleted (dry run only)
integer
Number of weavers affected