-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
Complete setup guide for aistack with troubleshooting
Before installing aistack, ensure you have:
- Node.js 20.0.0 or higher
- npm (comes with Node.js)
- Claude Code (for MCP integration)
-
API Keys (at least one):
- Anthropic API key (
ANTHROPIC_API_KEY) - OpenAI API key (
OPENAI_API_KEY) - Or a local Ollama instance
- Anthropic API key (
npm install @blackms/aistacknpx @blackms/aistack initThis creates:
-
aistack.config.json- Configuration file -
data/- Database directory -
plugins/- Plugin directory (empty)
Create a .env file in your project root:
# Required: At least one LLM provider
ANTHROPIC_API_KEY=your_anthropic_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
# Optional: For authentication
JWT_SECRET=your_random_secret_here
# Optional: For GitHub integration
GITHUB_TOKEN=your_github_token_hereUpdate aistack.config.json:
{
"version": "1.0.0",
"providers": {
"default": "anthropic",
"anthropic": {
"apiKey": "${ANTHROPIC_API_KEY}",
"model": "claude-sonnet-4-20250514"
},
"openai": {
"apiKey": "${OPENAI_API_KEY}",
"model": "gpt-4o"
},
"ollama": {
"baseUrl": "http://localhost:11434",
"model": "llama3.2"
}
},
"memory": {
"path": "./data/aistack.db",
"vectorSearch": {
"enabled": false,
"provider": "openai"
}
},
"auth": {
"enabled": true,
"jwtSecret": "${JWT_SECRET}"
}
}npx @blackms/aistack statusExpected output:
✓ Config loaded
✓ Database initialized
✓ Agents: 0 active
✓ Memory: 0 entries
✓ System: healthy
claude mcp add aistack -- npx @blackms/aistack mcp startThis adds aistack to your Claude Code MCP configuration. Verify by checking:
claude mcp listYou should see aistack in the list.
The MCP server starts automatically when Claude Code launches. To test manually:
npx @blackms/aistack mcp startStart the web dashboard for visual management:
npx @blackms/aistack web startOpen http://localhost:3001 in your browser.
npm install -g @blackms/aistack
aistack init
aistack statusnpm install --save-dev @blackms/aistackgit clone https://github.com/blackms/aistack.git
cd aistack
npm install
npm run build
npm link# Install Node.js via Homebrew
brew install node@20
# Install aistack
npm install @blackms/aistack# Install Node.js via nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20
nvm use 20
# Install aistack
npm install @blackms/aistack# Install Node.js from https://nodejs.org
# Then install aistack
npm install @blackms/aistack- Get API key from https://console.anthropic.com
- Add to
.env:ANTHROPIC_API_KEY=sk-ant-... - Set as default in config:
{ "providers": { "default": "anthropic" } }
- Get API key from https://platform.openai.com
- Add to
.env:OPENAI_API_KEY=sk-... - Supports embeddings for vector search
- Install Ollama from https://ollama.ai
- Pull a model:
ollama pull llama3.2
- Configure in
aistack.config.json:{ "providers": { "ollama": { "baseUrl": "http://localhost:11434", "model": "llama3.2" } } }
Solution: Ensure you've installed the package:
npm install @blackms/aistackSolution: Create a .env file with your API key or set the environment variable:
export ANTHROPIC_API_KEY=your_key_hereSolution: Run initialization:
npx @blackms/aistack initSolution: Change the port in config or kill the process:
# Find process
lsof -ti:3001
# Kill it
kill -9 <PID>Solution: Check MCP configuration:
claude mcp list
claude mcp add aistack -- npx @blackms/aistack mcp startSolution: Enable vector search in config and ensure OpenAI or Ollama is configured:
{
"memory": {
"vectorSearch": {
"enabled": true,
"provider": "openai"
}
}
}- Quick Start Tutorial - Get started in 5 minutes
- Configuration Guide - Detailed configuration options
- First Agent Tutorial - Spawn your first agent
npm update @blackms/aistackThe database schema is backward compatible. No migration needed.
Check the CHANGELOG for breaking changes between versions.
# Remove package
npm uninstall @blackms/aistack
# Remove configuration and data
rm -rf aistack.config.json data/ plugins/If you encounter issues:
- Check Troubleshooting guide
- Search GitHub Issues
- Ask in Discussions
See Also
Getting Started
Core Concepts
Agent Guides
- Overview
- Coder
- Researcher
- Tester
- Reviewer
- Adversarial
- Architect
- Coordinator
- Analyst
- DevOps
- Documentation
- Security Auditor
MCP Tools
- Overview
- Agent Tools
- Memory Tools
- Task Tools
- Session Tools
- System Tools
- GitHub Tools
- Review Loop Tools
- Identity Tools
Recipes
- Index
- Code Review
- Doc Sync
- Multi-Agent
- Adversarial Testing
- Full-Stack Feature
- Memory Patterns
- GitHub Integration
Advanced
- Plugin Development
- Custom Agent Types
- Workflow Engine
- Vector Search Setup
- Web Dashboard
- Programmatic API
- Resource Monitoring
Reference