Skip to main content

What is Loom CLI?

Loom is an interactive AI-powered coding assistant that provides a REPL (Read-Eval-Print Loop) interface for natural language conversations with LLM agents. The agent has access to powerful tools for reading, editing, and executing code in your workspace.

Installation

Quick Start

Core Commands

login

Authenticate with Loom services using device code flow

logout

Log out and clear credentials

resume

Resume an existing conversation thread

private

Start a local-only session that never syncs

Global Flags

--config
string
Path to custom configuration file
--workspace
string
Workspace directory for file operations (defaults to current directory)
--log-level
string
Log level: trace, debug, info, warn, error (overrides config)
--json-logs
boolean
Output logs as JSON (overrides config)
--server-url
string
default:"http://localhost:8080"
Loom server URL for LLM proxyCan also be set via LOOM_SERVER_URL environment variable
--provider
string
default:"anthropic"
LLM provider to use: anthropic or openaiCan also be set via LOOM_LLM_PROVIDER environment variable

Authentication

Device Code Flow

Loom uses OAuth2 device code flow for authentication:
This will:
  1. Generate a device code and user code
  2. Open your browser to the verification URL
  3. Display the user code to enter
  4. Poll the server until you complete authorization
  5. Store the access token securely in your system keyring (with file fallback)

Credentials Storage

Credentials are stored using loom-cli-credentials with:
  • Primary: System keyring (secure OS credential store)
  • Fallback: ~/.config/loom/credentials.json (if keyring unavailable)

Logout

This clears stored credentials and notifies the server to invalidate the token.

Thread Management

List Threads

Output:

Resume Thread

Private Sessions

Private sessions are local-only and never sync to the server:
Use this for:
  • Working with sensitive code
  • Testing without server connectivity
  • Offline development

Search Threads

Sharing Threads

Change Visibility

Share with Support

Private sessions (created with loom private) cannot be shared. They remain local-only.

Configuration

Loom uses a hierarchical configuration system:
  1. Default config: Built-in defaults
  2. Config file: ~/.config/loom/config.toml (or custom via --config)
  3. Environment variables: LOOM_* prefixed vars
  4. CLI flags: Highest priority

Example Configuration

Version Information

Outputs:
  • Version number
  • Git commit hash
  • Build timestamp
  • Platform information

Self-Update

Updates Loom CLI to the latest version from the server.

Advanced Commands

ACP Agent Mode

Run Loom as an Agent Client Protocol (ACP) agent for editor integration:
This mode communicates over stdio and is designed for IDE/editor plugins.

Git Credential Helper

Configure git to use Loom for SCM authentication:

Environment Variables

LOOM_SERVER_URL
string
Default server URL
LOOM_LLM_PROVIDER
string
Default LLM provider (anthropic or openai)
LOOM_AUTO_COMMIT_DISABLE
boolean
Disable automatic git commits (set to “true”, “1”, or “yes”)
LOOM_THREAD_SYNC_URL
string
Thread synchronization server URL

Observability Commands

Loom CLI provides commands for managing crash tracking, cron monitoring, and session analytics.

Crash Tracking

Manage crash projects, issues, and source maps:

Cron Monitoring

Manage cron monitors and check-ins:

Session Analytics

View session health and release adoption:

REPL Commands

Interactive REPL session commands and tools

Weaver Management

Remote container session management

Authentication

Device code flow and credential management

Crash Tracking

Error and crash capture with source maps

Cron Monitoring

Monitor scheduled jobs and tasks

Session Analytics

Track session health and release adoption