Skip to main content

Prerequisites

Before starting, ensure you have:
  • Nix (preferred) or Rust toolchain (cargo, rustc)
  • A Loom server running (default: http://localhost:8080)
  • API keys configured server-side for your chosen LLM provider
Loom uses a server-side proxy architecture. You don’t need API keys on your local machine - they’re stored securely on the server.

Installation

1

Build the CLI

Choose your preferred build method:
2

Configure Server URL

Set your Loom server URL:
Or pass it as a flag:
3

Authenticate

Log in to the Loom server:
This will open your browser to complete OAuth authentication and store your token securely in the system keyring.
4

Start a REPL Session

Launch your first interactive session:
You’ll see output like:

Your First Conversation

Let’s try a simple interaction:

Available Commands

Session Management

Thread Sharing

Provider Selection

Choose your LLM provider:
Provider models are configured server-side. The --provider flag only selects which proxy endpoint to use.

Remote Execution with Weavers

Weavers are ephemeral Kubernetes pods for running Loom sessions in isolated environments:
1

Create a Weaver

2

List Running Weavers

3

Attach to a Weaver

4

Delete a Weaver

Configuration

Loom uses a layered configuration system:
  1. Default values - Built-in defaults
  2. Config file - ~/.config/loom/config.toml
  3. Environment variables - LOOM_* prefixed
  4. CLI arguments - Highest priority

Example Config File

~/.config/loom/config.toml

Auto-Commit Feature

Loom automatically creates git commits when file-modifying tools are executed:
When enabled, Loom uses Claude Haiku to generate commit messages based on:
  • File changes detected
  • Tools executed (edit_file, bash)
  • Conversation context
Auto-commit only works in git repositories. It will skip commits if:
  • Not in a git repo
  • No changes detected
  • Diff exceeds 32KB

Logging

Control log output:

Next Steps

Installation Details

Learn about Nix builds, cargo2nix, and development workflows

Tool System

Explore the available tools and how to implement custom tools

Thread System

Understand conversation persistence and FTS5 search

Architecture Overview

Read about Loom’s architecture and design principles

Troubleshooting

Connection Refused

If you see Connection refused errors:
  1. Verify the server is running: curl http://localhost:8080/health
  2. Check your --server-url matches the actual server
  3. Ensure you’re authenticated: loom login

Authentication Errors

401 Unauthorized responses mean:
  • You’re not logged in: Run loom login
  • Your token expired: Run loom logout then loom login
  • Server authentication is misconfigured

Tool Execution Failures

If tools fail:
  • Check workspace permissions: ls -la $(pwd)
  • Verify you’re in the correct directory
  • Check logs with --log-level debug