Getting Started
This is the setup guide — see Workflow Overview for the architecture reference, and End-to-End Walkthrough for a complete concrete example.
Setting up a new machine? Start with workstation-setup.md first — it covers Windows + WSL2 + Docker Desktop + VS Code from a fresh install. Come back here once your machine is ready.
This guide walks you through setting up the spec-driven development workflow and completing your first change.
Prerequisites
- Node.js 20+ (required by OpenSpec CLI)
- Global Claude settings installed — mandatory for all Conduction work; see global-claude-settings.md for the install commands (sets up read-only Bash policy, write-approval hooks, and session-level version checking)
- GitHub CLI (
gh) authenticated, or the GitHub MCP server active - Access to the
ConductionNLGitHub organization - The
apps-extraworkspace cloned with at least one project
Optional — Container authentication (needed for /opsx-apply-loop and /opsx-pipeline):
These commands run Claude CLI inside an isolated Docker container, which cannot use the interactive OAuth login your host session uses. You need one of these environment variables set in your shell:
| Variable | Source | Cost |
|---|---|---|
CLAUDE_CODE_AUTH_TOKEN (preferred) | Your existing Claude Max/Pro subscription | Free (included in subscription) |
ANTHROPIC_API_KEY (fallback) | Anthropic API console | Prepaid credits (billed per token) |
To set up CLAUDE_CODE_AUTH_TOKEN (recommended):
# 1. Generate a long-lived token from your subscription
claude setup-token
# 2. Copy the token it outputs, then add to your shell profile:
echo 'export CLAUDE_CODE_AUTH_TOKEN="sk-ant-oat01-..."' >> ~/.bashrc
# 3. Reload your shell
source ~/.bashrc
# 4. Verify
echo $CLAUDE_CODE_AUTH_TOKEN | head -c 20
To set up ANTHROPIC_API_KEY (alternative — costs money):
# 1. Go to https://console.anthropic.com → API Keys → Create Key
# 2. Ensure your account has credits (Billing → Add credits)
# 3. Add to your shell profile:
echo 'export ANTHROPIC_API_KEY="sk-ant-api03-..."' >> ~/.bashrc
# 4. Reload your shell
source ~/.bashrc
Neither variable is needed for interactive commands like
/opsx-applyor/opsx-verify— only for the containerized automation commands.
Optional — VS Code extensions: See workstation-setup.md for the full list of required, recommended, and optional VS Code extensions.
Optional — Usage monitoring: Install the usage tracker to watch your Claude token consumption in real time inside VS Code. Especially useful before running multi-agent commands (see parallel-agents.md).
bash usage-tracker/install.sh
See usage-tracker/README.md for setup details.