Configuration

Customize Claude Dojo to fit your workflow.

Configuration File

Claude Dojo looks for configuration in the following locations (in order):

  1. .claude-dojo.json in the current directory
  2. .claude-dojo.json in your home directory
  3. Environment variables

Configuration Options

API Settings

{
  "apiKey": "your-api-key",
  "model": "claude-sonnet-4-20250514",
  "maxTokens": 4096
}
OptionDescriptionDefault
apiKeyYour Anthropic API key-
modelClaude model to useclaude-sonnet-4-20250514
maxTokensMaximum response tokens4096

Server Settings

{
  "port": 3001,
  "host": "localhost",
  "openBrowser": true
}
OptionDescriptionDefault
portServer port3001
hostServer hostlocalhost
openBrowserAuto-open browsertrue

Interface Settings

{
  "theme": "dark",
  "hexGridSize": "medium",
  "showContextBar": true
}
OptionDescriptionDefault
themeColor theme (dark/light)dark
hexGridSizeGrid densitymedium
showContextBarShow token usagetrue

Permission Settings

{
  "permissions": {
    "autoApproveRead": true,
    "autoApproveWrite": false,
    "autoApproveShell": false,
    "allowedPaths": ["/home/user/projects"],
    "blockedPaths": ["/etc", "/root"]
  }
}
OptionDescriptionDefault
autoApproveReadAuto-approve file readstrue
autoApproveWriteAuto-approve file writesfalse
autoApproveShellAuto-approve shell commandsfalse
allowedPathsWhitelisted paths[]
blockedPathsBlacklisted paths[]

Environment Variables

All configuration options can be set via environment variables:

export CLAUDE_DOJO_API_KEY=your-api-key
export CLAUDE_DOJO_PORT=3002
export CLAUDE_DOJO_MODEL=claude-sonnet-4-20250514

Command Line Arguments

Override any setting via command line:

claude-dojo --port 3002 --model claude-sonnet-4-20250514

Run claude-dojo --help for all available options.