What you’ll learn
By the end of this tutorial, you’ll be able to:- Install and configure Clanker CLI
- Connect to your AWS account
- Run natural language queries about your infrastructure
- Understand the AI-powered investigation flow
Install Clanker CLI
Install Clanker using Homebrew (recommended) or from source:Alternatively, build from source:Verify the installation:
Configure AI provider
Clanker uses AI to analyze your infrastructure questions. Create a configuration file:Edit Set your API key:
~/.clanker.yaml and configure your AI provider. Gemini API is recommended for getting started:Connect to AWS
Clanker uses your existing AWS CLI profiles. Configure a profile if you haven’t already:Enter your AWS credentials when prompted. Verify the profile works:Update your Clanker config to use this profile:
Run your first query
Now you’re ready to ask Clanker about your infrastructure. Start with a simple question:Clanker will:
- Analyze your question using semantic understanding
- Determine which AWS operations to execute
- Call the AWS CLI in parallel to gather data
- Synthesize a comprehensive markdown response
Try more complex queries
Clanker supports natural language questions across your entire infrastructure:
Understanding the investigation flow
When you run a query, Clanker follows this intelligent process:1. Semantic Analysis
- Extracts intent, urgency, and target services from your question
- Identifies required data types (logs, metrics, resources)
- Uses a decision tree to determine which specialized agents to execute
- Selects appropriate AWS operations (EC2, Lambda, RDS, CloudWatch, etc.)
- Runs AWS CLI operations in parallel with dependency ordering
- Shares results across agents for comprehensive context
- Combines all gathered data into a unified context
- Uses AI to generate a clear, actionable markdown response
Next steps
Creating infrastructure
Learn how to use Clanker’s maker mode to generate and apply infrastructure plans
Kubernetes setup
Set up and manage Kubernetes clusters with Clanker
Monitoring resources
Monitor your infrastructure health and metrics
Configuration guide
Deep dive into Clanker configuration options
Troubleshooting
AWS authentication errors
AWS authentication errors
If you see authentication errors:Make sure your profile name in
~/.clanker.yaml matches your AWS CLI profile.AI provider errors
AI provider errors
If you see AI API errors:
- Verify your API key is set:
echo $GEMINI_API_KEY - Check your API quota/limits in your provider dashboard
- Try a different model (e.g., switch from
gemini-2.5-flashtogemini-3-pro-preview)
No resources found
No resources found
If queries return no results:
- Verify you’re querying the correct AWS region
- Check that resources exist:
aws ec2 describe-instances --profile my-profile - Try the
--discoveryflag for comprehensive infrastructure scanning