Get Started
Configuration
Configure Task Master through environment variables in a .env file
Required Configuration
Task Master requires an Anthropic API key to function. Add this to your .env
file:
You can obtain an API key from the Anthropic Console.
Optional Configuration
Variable | Default Value | Description | Example |
---|---|---|---|
MODEL | "claude-3-7-sonnet-20250219" | Claude model to use | MODEL=claude-3-opus-20240229 |
MAX_TOKENS | "4000" | Maximum tokens for responses | MAX_TOKENS=8000 |
TEMPERATURE | "0.7" | Temperature for model responses | TEMPERATURE=0.5 |
DEBUG | "false" | Enable debug logging | DEBUG=true |
LOG_LEVEL | "info" | Console output level | LOG_LEVEL=debug |
DEFAULT_SUBTASKS | "3" | Default subtask count | DEFAULT_SUBTASKS=5 |
DEFAULT_PRIORITY | "medium" | Default priority | DEFAULT_PRIORITY=high |
PROJECT_NAME | "MCP SaaS MVP" | Project name in metadata | PROJECT_NAME=My Awesome Project |
PROJECT_VERSION | "1.0.0" | Version in metadata | PROJECT_VERSION=2.1.0 |
PERPLEXITY_API_KEY | - | For research-backed features | PERPLEXITY_API_KEY=pplx-... |
PERPLEXITY_MODEL | "sonar-medium-online" | Perplexity model | PERPLEXITY_MODEL=sonar-large-online |
Example .env File
Troubleshooting
If task-master init
doesn’t respond:
Try running it with Node directly:
Or clone the repository and run: