Getting Started¶
Prerequisites¶
Installation¶
No installation required. Run directly with npx:
Or install globally:
Local mode (LM Studio)¶
Start LM Studio and load a model:
Run harness:
Interactive sessions¶
Run without -p for an interactive session — agent state persists across runs:
Pipe input¶
Cloud mode¶
Pass an --env-file containing your API key to use a cloud provider:
To pass env vars but stay in local mode, use --local:
Common flags¶
# Choose an agent
npx @capotej/harness -a opencode -p "write tests"
# Override the model
npx @capotej/harness -m anthropic/claude-sonnet-4-5 -p "refactor auth"
# Mount a single file instead of the directory
npx @capotej/harness -f ./script.py -p "add type hints"
# Skip image verification
npx @capotej/harness --no-verify -p "quick task"
See the full reference at Configuration.