Documentation

Getting Started

Install gitagent, run your first command, and learn the CLI.

Quick Start

# One-line install & launch
curl -fsSL https://raw.githubusercontent.com/open-gitagent/gitclaw/main/install.sh | bash

This installs GitClaw globally via npm, walks you through setup (API keys, voice adapter, model), and launches the web UI at http://localhost:3333.


Installation

Requirements

  • Node.js 20+ (required by WhatsApp dependency)
  • Git (for memory commits and session branches)
  • npm (included with Node.js)

Install Methods

Interactive installer (recommended):

curl -fsSL https://raw.githubusercontent.com/open-gitagent/gitclaw/main/install.sh | bash

Manual install:

npm install -g gitclaw
mkdir ~/assistant && cd ~/assistant && git init
gitclaw --voice --dir .

Setup Modes

The installer offers four options:

ModeDescriptionKeys Required
Install with LYZREasiest — uses Lyzr AI Studio cloudLYZR_API_KEY
Voice + TextReal-time voice + text chatOPENAI_API_KEY + ANTHROPIC_API_KEY
Text OnlyBrowser text chat, no voiceANTHROPIC_API_KEY
Advanced SetupChoose voice adapter, model, port, integrationsvaries

Updating

# The installer auto-detects existing installations and offers to update
curl -fsSL https://raw.githubusercontent.com/open-gitagent/gitclaw/main/install.sh | bash

# Or manually
npm update -g gitclaw

CLI Reference

Basic Usage

# Launch voice/web UI
gitclaw --voice --dir ~/assistant

# Single-shot query (no REPL)
gitclaw --dir ~/assistant "Build a REST API for user management"

# Interactive REPL
gitclaw --dir ~/assistant

# With specific model
gitclaw --model anthropic:claude-opus-4-6 --voice --dir ~/assistant

Flags

FlagShortDescriptionDefault
--model-mModel to use (provider:model-id)from agent.yaml
--dir-dAgent directorycurrent directory
--prompt-pSingle-shot prompt
--env-eEnvironment config (loads config/<env>.yaml)default
--voice-vEnable voice mode (optionally: openai or gemini)
--sandbox-sRun in E2B sandbox VMfalse
--sandbox-repoRepository URL for sandbox
--sandbox-tokenE2B API tokenE2B_API_KEY env
--repo-rClone and work on remote repository
--patGitHub/GitLab personal access tokenGITHUB_TOKEN env
--sessionGit branch name for session isolationauto-generated

REPL Commands

CommandDescription
/quit or /exitExit the session
/memoryView the memory file
/skillsList installed skills
/tasksShow active learning tasks
/learnedList learned skills with confidence scores
/pluginsList loaded plugins
/skill:name argsInvoke a specific skill

Plugin CLI

gitclaw plugin install https://github.com/user/plugin-repo
gitclaw plugin install ./local/path --name my-plugin --force
gitclaw plugin list --dir ~/assistant
gitclaw plugin enable my-plugin --dir ~/assistant
gitclaw plugin disable my-plugin --dir ~/assistant
gitclaw plugin remove my-plugin --dir ~/assistant
gitclaw plugin init my-plugin --dir ~/assistant