# Download and install HelixCode
curl -fsSL https://helixcode.dev/install.sh | bash
# Verify installation
helixcode --versionPer Constitution Rule 4 + Β§11.4.76, run the containerized stack through the repo-root
./helix facade (the host uses podman; direct docker/docker-compose commands are not
a supported workflow):
./helix start # boot the containerized stack
./helix status # check status
./helix logs # tail logs
./helix stop # tear down# Clone repository (SSH only β Rule 3 / CONST-038)
git clone git@github.com:HelixDevelopment/HelixCode.git
cd HelixCode
# Build from source (the build target lives in the inner Go module)
cd helix_code
make build
# Install globally
sudo cp bin/helixcode /usr/local/bin/Create a configuration file at ~/.config/helixcode/config.yaml:
server:
port: 8080
host: "localhost"
database:
host: "localhost"
port: 5432
user: "helixcode"
password: "your_password"
dbname: "helixcode"
workers:
enabled: true
auto_install: true# Core System
export HELIX_DATABASE_PASSWORD="your_password"
export HELIX_AUTH_JWT_SECRET="your_jwt_secret"
export HELIX_SERVER_PORT="8080"
# Free AI Provider Tokens (optional)
export GITHUB_TOKEN="your_github_token" # For GitHub Copilot
export OPENROUTER_API_KEY="your_openrouter_key" # For OpenRouter
export XAI_API_KEY="your_xai_key" # For XAI
# Premium AI Provider Tokens (optional)
export ANTHROPIC_API_KEY="sk-ant-your-key" # For Claude models
export GEMINI_API_KEY="your-gemini-key" # For Gemini models
export GOOGLE_API_KEY="your-google-key" # Alternative for Gemini
export OPENAI_API_KEY="sk-your-key" # For OpenAI modelsHelixCode supports multiple AI providers with a focus on free and accessible models:
- XAI (Grok):
grok-3-fast-beta,grok-3-mini-fast-beta- Fast and capable models for coding - OpenRouter:
deepseek-r1-free,meta-llama/llama-3.2-3b-instruct:free- Free models from various providers - GitHub Copilot:
gpt-4o,claude-3.5-sonnet,o1- Free with GitHub subscription - Qwen: OAuth2 authentication available, no API key required for basic usage
- OpenAI: GPT-4, GPT-3.5-turbo with API key
- Anthropic Claude β: Industry-leading reasoning with advanced features
- Models: Claude 4 Sonnet/Opus, Claude 3.7 Sonnet, Claude 3.5 Sonnet/Haiku
- Context: 200K tokens for all models
- Advanced Features:
- π§ Extended Thinking: Automatic reasoning mode (80% token budget)
- πΎ Prompt Caching: Up to 90% cost reduction with multi-layer caching
- π οΈ Tool Caching: Cache tool definitions across requests
- ποΈ Vision: Image analysis capabilities
- β‘ Streaming: Real-time response generation
- Google Gemini β: Massive context with multimodal capabilities
- Models: Gemini 2.5 Pro/Flash, Gemini 2.0 Flash, Gemini 1.5 Pro/Flash
- Context: Up to 2M tokens (Gemini 2.5 Pro, 1.5 Pro)
- Advanced Features:
- π Massive Context: 2 million token context window for complex codebases
- π§ Function Calling: AUTO/ANY/NONE modes with tool integration
- π‘οΈ Safety Settings: Configurable content filtering
- π¨ Flash Models: Ultra-fast inference with lite variants
- ποΈ Vision: Multimodal understanding
- β‘ Streaming: Real-time response generation
Workers are remote machines that execute tasks. They can be:
- Local Workers: Same machine as the server
- Remote Workers: SSH-accessible machines
- Cloud Workers: Cloud instances (AWS, GCP, Azure)
Tasks are units of work that can be:
- Code Generation: AI-assisted code writing
- Testing: Automated test execution
- Building: Compilation and build processes
- Refactoring: Code improvement and optimization
Projects organize related tasks and workers:
- Development Projects: Software development workflows
- Research Projects: AI research and experimentation
- Infrastructure Projects: System administration tasks
# Start the HelixCode server
helixcode server start
# Or with custom configuration
helixcode server start --config /path/to/config.yaml
# Run in background
helixcode server start --daemon# Add local worker
helixcode workers add local --name "local-worker" --capabilities "code-generation,testing"# Add SSH worker
helixcode workers add ssh \
--name "remote-worker" \
--host "192.168.1.100" \
--port 22 \
--username "ubuntu" \
--key-path "~/.ssh/id_rsa" \
--capabilities "llm-inference,code-generation"# Add AWS EC2 worker
helixcode workers add aws \
--name "aws-worker" \
--instance-id "i-1234567890abcdef0" \
--region "us-east-1" \
--capabilities "testing,performance"# Switch to XAI (Grok) - no authentication required
helixcode config set llm.provider xai
# Switch to OpenRouter free models
helixcode config set llm.provider openrouter
# Use GitHub Copilot (requires GitHub token)
export GITHUB_TOKEN="ghp_your_token"
helixcode config set llm.provider copilot
# Authenticate with Qwen OAuth2
helixcode auth qwen# Set up Anthropic API key
export ANTHROPIC_API_KEY="sk-ant-your-key"
# Switch to Anthropic provider
helixcode config set llm.provider anthropic
# Use specific Claude model
helixcode config set llm.model "claude-4-sonnet"
# Enable extended thinking for complex tasks
helixcode generate --prompt "Think carefully about how to optimize this algorithm" \
--thinking-enabled
# Use prompt caching for large system prompts
helixcode generate --system-prompt-file "./system_instructions.txt" \
--cache-enabled \
--prompt "Add a new feature"
# Available models:
# - claude-4-sonnet (most capable, extended thinking)
# - claude-4-opus (highest intelligence)
# - claude-3-7-sonnet (cost-effective)
# - claude-3-5-sonnet-latest (great balance)
# - claude-3-5-haiku-latest (fastest)# Set up Gemini API key
export GEMINI_API_KEY="your-gemini-api-key"
# Or use Google API key
export GOOGLE_API_KEY="your-google-api-key"
# Switch to Gemini provider
helixcode config set llm.provider gemini
# Use massive context model for large codebases
helixcode config set llm.model "gemini-2.5-pro"
# Analyze entire large codebase (2M tokens)
helixcode analyze --model "gemini-2.5-pro" --recursive ./large-project
# Use Flash models for fast responses
helixcode generate --model "gemini-2.5-flash-lite" \
--prompt "Quick code snippet for authentication"
# Configure safety settings
helixcode config set llm.gemini.safety.harassment "BLOCK_ONLY_HIGH"
# Enable function calling
helixcode generate --model "gemini-2.5-flash" \
--tools "./tools.json" \
--tool-mode "AUTO"
# Available models:
# - gemini-2.5-pro (2M context, most capable)
# - gemini-2.5-flash (1M context, fast)
# - gemini-2.5-flash-lite (fastest)
# - gemini-2.0-flash (balanced)
# - gemini-1.5-pro (2M context, stable)
# - gemini-1.5-flash (affordable)# List available providers
helixcode llm providers list
# Check current provider health
helixcode llm provider health
# Test current provider
helixcode llm test "Hello, can you help me write a Go function?"# List all workers
helixcode workers list
# Get worker details
helixcode workers info worker-id
# Remove worker
helixcode workers remove worker-id
# Check worker health
helixcode workers health# Generate code from prompt
helixcode tasks create code-generation \
--prompt "Create a REST API in Go with authentication" \
--language "go" \
--framework "gin" \
--output-dir "./generated-api"# Run comprehensive tests
helixcode tasks create testing \
--project-path "./my-project" \
--test-type "unit,integration,e2e" \
--coverage-threshold 80# Build project
helixcode tasks create building \
--project-path "./my-project" \
--build-type "release" \
--platforms "linux, windows, darwin"# List all tasks
helixcode tasks list
# Get task status
helixcode tasks status task-id
# View task logs
helixcode tasks logs task-id
# Cancel task
helixcode tasks cancel task-id
# Retry failed task
helixcode tasks retry task-idHelixCode automatically preserves work during:
- Worker Failures: Tasks automatically reassigned
- Network Issues: Checkpoints saved periodically
- System Restarts: State restored from checkpoints
# List checkpoints for a task
helixcode tasks checkpoints task-id
# Restore from checkpoint
helixcode tasks restore task-id --checkpoint checkpoint-id
# Manual checkpoint creation
helixcode tasks checkpoint task-id# Analyze project and create development plan
helixcode workflow planning \
--project-path "./my-project" \
--requirements "high-performance,scalable,microservices"# Distributed compilation
helixcode workflow building \
--project-path "./my-project" \
--workers 5 \
--cache-enabled true# Parallel test execution
helixcode workflow testing \
--project-path "./my-project" \
--test-suites "unit,integration,performance" \
--parallel-workers 3# AI-assisted refactoring
helixcode workflow refactoring \
--project-path "./my-project" \
--targets "performance,readability,security" \
--safety-checks true# Add stdio MCP server
helixcode mcp add developer \
--type "stdio" \
--command "mcp-developer-server" \
--args "--verbose"
# Add HTTP MCP server
helixcode mcp add memory \
--type "http" \
--url "https://memory-server.example.com/mcp" \
--headers "Authorization=Bearer ${TOKEN}"# List available tools
helixcode mcp tools
# Execute tool
helixcode mcp execute tool-name --parameters '{"param": "value"}'
# Monitor tool usage
helixcode mcp stats# List available themes
helixcode themes list
# Set theme
helixcode themes set "dark"
# Create custom theme
helixcode themes create my-theme --colors '{"primary": "#C2E95B"}'# Create development profile
helixcode config profile create dev \
--workers 2 \
--llm-provider local \
--notifications disabled
# Switch to production profile
helixcode config profile use prod
# List profiles
helixcode config profile list# Get authentication token
curl -X POST http://localhost:8080/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"username": "admin", "password": "password"}'# Create task via API
curl -X POST http://localhost:8080/api/v1/tasks \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "code-generation",
"payload": {
"prompt": "Create a REST API",
"language": "go"
}
}'# List workers via API
curl -X GET http://localhost:8080/api/v1/workers \
-H "Authorization: Bearer $TOKEN"const ws = new WebSocket('ws://localhost:8080/ws');
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log('Task update:', data);
};workers:
code-gen-worker:
capabilities: ["code-generation"]
resources:
cpu: 8
memory: 16GB
gpu: true
optimization:
batch_size: 10
cache_enabled: trueworkers:
test-worker:
capabilities: ["testing"]
resources:
cpu: 4
memory: 8GB
optimization:
parallel_tests: 8
test_timeout: 300# Process multiple files in batch
helixcode tasks create code-generation \
--batch "./src/**/*.go" \
--pattern "*_test.go" \
--workers 3# Enable build caching
helixcode config set build.cache.enabled true
helixcode config set build.cache.ttl "24h"
# Clear cache
helixcode cache clear- Use strong passwords and JWT secrets
- Enable multi-factor authentication
- Regularly rotate API keys
- Use environment variables for secrets
- Use HTTPS in production
- Configure firewall rules
- Use VPN for remote workers
- Monitor network traffic
- Use SSH keys instead of passwords
- Regularly update worker software
- Monitor worker activity
- Implement access controls
# Test SSH connection
helixcode workers test worker-id
# Check worker logs
helixcode workers logs worker-id
# Restart worker
helixcode workers restart worker-id# Get detailed error information
helixcode tasks debug task-id
# View task execution history
helixcode tasks history task-id
# Reset task state
helixcode tasks reset task-id# Monitor system resources
helixcode system stats
# Check worker load
helixcode workers load
# Optimize configuration
helixcode config optimize# View server logs
helixcode server logs
# Get system diagnostics
helixcode system diagnostics
# Generate debug report
helixcode debug report- Documentation: https://docs.helixcode.dev
- Community Forum: https://community.helixcode.dev
- GitHub Repository: https://github.com/helixcode/helixcode
- API Reference: https://api.helixcode.dev
User Guide Version: 1.1.0 Last Updated: 2025-11-05 Support: support@helixcode.dev
New AI Providers:
- β¨ Anthropic Claude: Direct API integration with extended thinking, prompt caching, and tool caching
- β¨ Google Gemini: Full API support with 2M token context windows and function calling
Advanced Features:
- π§ Extended thinking for complex reasoning tasks (Anthropic)
- πΎ Multi-layer prompt caching with 90% cost savings (Anthropic)
- π Massive 2M token context for entire codebase analysis (Gemini)
- π§ Enhanced function calling with AUTO/ANY/NONE modes (Gemini)
- ποΈ Vision capabilities for both providers
- β‘ Real-time streaming for both providers
Test Coverage:
- π 100% test coverage across unit, automation, and e2e tests
- β 73+ comprehensive test functions
- π― All tests passing with 100% success rate