Skip to content
Cisco AI Defense logo
CiscoAI Security

Make install — DefenseClaw

Overview

From the repository root, make all runs install, then path, quickstart, and llm-setup—mirroring the non-interactive paths used by scripts/install.sh and scripts/install-dev.sh. Use NO_QUICKSTART=1, NO_PATH=1, or NO_LLM_SETUP=1 when automating pieces of the flow.

Default install locations match the Makefile variables: INSTALL_DIR := $(HOME)/.local/bin, VENV := .venv, plugin install under ~/.defenseclaw/extensions/defenseclaw/ (DC_EXT_DIR).

Core flows

TargetPurpose
make allinstall + path + quickstart + llm-setup (full first-time developer path)
make installcli-install + gateway-install + plugin-install
make buildpycli + gateway + plugin (binaries under repo, no user dir copies except venv)
make dev-installRuns ./scripts/install-dev.sh (editable CLI, dev tools, gateway build)

make quickstart and make llm-setup

TargetBehavior
quickstartRuns defenseclaw quickstart --non-interactive --yes from $(INSTALL_DIR)/defenseclaw or .venv/bin/defenseclaw; skipped if NO_QUICKSTART=1
llm-setupRuns ./scripts/setup-llm.sh when stdin/stdout are TTY and CI is unset; skipped for non-TTY or NO_LLM_SETUP=1 / YES=1 / CI=true

scripts/setup-llm.sh resolves the CLI via DEFENSECLAW_BIN, repo .venv, DEFENSECLAW_INSTALL_DIR (default ~/.local/bin), or PATH.

Make target reference

TargetPhony
_bundle-datano
allyes
buildno
checkno
check-audit-actionsno
check-error-codesno
check-provider-coverageno
check-schemasno
check-v7no
cleanno
cli-installno
cli-testno
cli-test-covno
dev-installno
dev-pyclino
distno
dist-checksumsno
dist-cleanno
dist-clino
dist-gatewayno
dist-pluginno
dist-sandboxno
dist-testno
docs-checkno
docs-clean-generatedno
docs-deadlinksno
docs-genno
docs-verifyno
doctoryes
gatewayno
gateway-crossno
gateway-installno
gateway-runno
gateway-testno
go-lintno
go-test-covno
installno
lintno
llm-setupyes
pathyes
pluginno
plugin-installno
py-lintno
pyclino
quickstartyes
rego-testno
startno
testno
test-fileno
test-verboseno
ts-testno
tui-testno
uninstallyes

| dist-plugin | Build plugin then tarball defenseclaw-plugin-$(Makefile).tar.gz | | dist-sandbox | Copy OpenShell policies and sandbox installer script into dist/sandbox/ | | dist-test | Copy E2E/test helper scripts into dist/test/ | | dist-checksums | SHA-256 checksums for dist/ artifacts | | dist-clean | Remove dist/ and generated _data trees | | docs-gen | Run Python scripts.docgen and docgen-go binary | | docs-check | Regenerate docs and fail if docs-site/ git diff is non-empty | | docs-deadlinks | scripts/docs_deadlinks.py docs-site/ | | docs-clean-generated | Delete entire docs-site/ tree |

Related