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
Path to custom configuration file
Workspace directory for file operations (defaults to current directory)
Log level: trace, debug, info, warn, error (overrides config)
Output logs as JSON (overrides config)
Loom server URL for LLM proxyCan also be set via
LOOM_SERVER_URL environment variableLLM provider to use:
anthropic or openaiCan also be set via LOOM_LLM_PROVIDER environment variableAuthentication
Device Code Flow
Loom uses OAuth2 device code flow for authentication:- Generate a device code and user code
- Open your browser to the verification URL
- Display the user code to enter
- Poll the server until you complete authorization
- Store the access token securely in your system keyring (with file fallback)
Credentials Storage
Credentials are stored usingloom-cli-credentials with:
- Primary: System keyring (secure OS credential store)
- Fallback:
~/.config/loom/credentials.json(if keyring unavailable)
Logout
Thread Management
List Threads
Resume Thread
Private Sessions
Private sessions are local-only and never sync to the server:- 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:- Default config: Built-in defaults
- Config file:
~/.config/loom/config.toml(or custom via--config) - Environment variables:
LOOM_*prefixed vars - CLI flags: Highest priority
Example Configuration
Version Information
- Version number
- Git commit hash
- Build timestamp
- Platform information
Self-Update
Advanced Commands
ACP Agent Mode
Run Loom as an Agent Client Protocol (ACP) agent for editor integration:Git Credential Helper
Configure git to use Loom for SCM authentication:Environment Variables
Default server URL
Default LLM provider (anthropic or openai)
Disable automatic git commits (set to “true”, “1”, or “yes”)
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:Related Pages
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