> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Alex

> Cloud Engineer - Cost optimization, infrastructure management, multi-cloud architecture

Alex is CloudThinker's cloud infrastructure expert, specializing in cost optimization, performance tuning, and multi-cloud architecture across AWS, Azure, and GCP.

***

## The Problem Alex Solves

Cloud infrastructure costs are opaque. AWS alone offers 200+ services, each with its own pricing model — compute, storage, data transfer, reserved capacity, spot, savings plans. Most teams only discover their cloud bill is too high when the invoice arrives. By then, months of waste have already compounded.

Manual cost management requires:

* Exporting cost data and building spreadsheets to find patterns
* Running `aws describe-instances` across every region to find idle resources
* Manually comparing reserved instance pricing against actual usage patterns
* Switching between AWS Cost Explorer, CloudWatch, and resource consoles to correlate cost with utilization

This takes days of engineering time each month — time that produces spreadsheets and slides, not actually fixed infrastructure.

***

## How Existing Tools Compare

| Tool                     | What It Does                                          | What's Missing                                                            |
| ------------------------ | ----------------------------------------------------- | ------------------------------------------------------------------------- |
| **AWS Cost Explorer**    | Visualizes historical spend by service/account        | No recommendations, no cross-cloud, no action capability                  |
| **CloudHealth / Apptio** | FinOps dashboards and governance reporting            | Reporting-only, no AI analysis, expensive, requires dedicated FinOps team |
| **AWS Trusted Advisor**  | Basic checks for idle resources and reserved capacity | Limited to \~50 checks, no conversational query, AWS-only                 |
| **Infracost**            | Cost estimation for IaC changes                       | Pre-deployment only, no live infrastructure analysis                      |
| **Spot.io**              | Automated spot/reserved capacity optimization         | Compute-focused, no multi-cloud cost narrative                            |

Alex does what none of these do: it understands your specific usage pattern, explains *why* costs are what they are, and can implement the fix with your [approval](/guide/approval).

***

## How Alex Works

1. **Connects to your cloud providers** via read-access credentials — AWS Cost Explorer, CloudWatch, EC2/RDS APIs, Azure Cost Management, GCP Billing
2. **Analyzes in context** — doesn't just pull metrics, but correlates utilization patterns with cost data and your infrastructure topology
3. **Forms recommendations** with specific dollar savings, effort level, risk rating, and implementation steps
4. **Acts on [approval](/guide/approval)** — can execute right-sizing, create reserved instance purchase recommendations, tag resources, or generate IaC diffs for review
5. **Learns your environment** — stores preferences in memory (e.g., which resources are exempt, preferred instance families, cost thresholds)

***

## Capabilities

| Domain                                                     | Capabilities                                                                                  |
| ---------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| **[Cost Optimization](/guide/cost-optimization/overview)** | Spending analysis, right-sizing, reserved instances, savings plans, unused resource detection |
| **Performance**                                            | Auto-scaling, load balancing, network optimization, bottleneck identification                 |
| **Multi-Cloud**                                            | Cross-provider comparison, migration planning, unified management                             |
| **Infrastructure**                                         | Resource management, IaC (Terraform, CloudFormation), architecture design                     |

***

## Prompt Patterns

### Cost Analysis

```bash theme={null}
# Spending overview
@alex analyze AWS spending trends over the last quarter

# Right-sizing
@alex identify EC2 instances with <20% CPU utilization over 30 days

# Reserved capacity
@alex compare reserved instances vs savings plans for our usage pattern

# Waste detection
@alex find unattached volumes, unused elastic IPs, and orphaned snapshots
```

### Performance Optimization

```bash theme={null}
# Auto-scaling review
@alex review Auto Scaling groups and recommend threshold adjustments

# Network analysis
@alex analyze network traffic patterns and load balancer configuration

# Bottleneck detection
@alex identify resource bottlenecks in the web tier
```

### Multi-Cloud Operations

```bash theme={null}
# Cost comparison
@alex compare AWS vs Azure costs for our current workloads

# Migration planning
@alex create migration plan from on-premise to AWS with cost analysis

# Unified analysis
@alex analyze spending across AWS, Azure, and GCP with consolidation recommendations
```

### Infrastructure Audit

```bash theme={null}
# Comprehensive audit
@alex audit infrastructure for cost, performance, and security issues

# Governance check
@alex analyze resources against our cloud governance policies

# Architecture review
@alex review our microservices architecture for cost efficiency
```

***

## Tool Usage

| Tool         | Alex Use Case                                                        |
| ------------ | -------------------------------------------------------------------- |
| `#dashboard` | Cost trends, resource utilization, spending by service               |
| `#report`    | Quarterly cost analysis, migration assessments, architecture reviews |
| `#recommend` | Right-sizing, reserved capacity purchases, optimization actions      |
| `#alert`     | Budget thresholds, cost spikes, utilization anomalies                |
| `#chart`     | Spending trends, usage patterns, cost forecasts                      |

### Examples with Tools

```bash theme={null}
@alex #dashboard monthly cost trends by service and region
@alex #report cost optimization opportunities with projected savings
@alex #recommend instances for right-sizing with implementation steps
@alex #alert when daily spend exceeds $5,000
```

***

## Effective Prompts

<CardGroup cols={2}>
  <Card title="Be Specific" icon="bullseye">
    ```bash theme={null}
    # Good
    @alex analyze EC2 instances in us-east-1
    with <15% CPU over past 30 days

    # Avoid
    @alex check our servers
    ```
  </Card>

  <Card title="Add Context" icon="info">
    ```bash theme={null}
    # Good
    @alex recommend cost savings
    excluding production-critical services
    prioritizing quick wins

    # Avoid
    @alex save money
    ```
  </Card>
</CardGroup>

***

## Connection Requirements

Alex requires cloud provider connections with cost and performance data access:

| Provider  | Required Access                                 |
| --------- | ----------------------------------------------- |
| **AWS**   | Cost Explorer, CloudWatch, EC2, RDS, S3, Lambda |
| **Azure** | Cost Management, Monitor, Compute, Storage      |
| **GCP**   | Billing, Monitoring, Compute Engine, Cloud SQL  |

***

## Common Workflows

### Monthly Cost Review

```bash theme={null}
# Step 1: Overview
@alex #dashboard monthly cost summary by service

# Step 2: Identify issues
@alex which services had the largest cost increase?

# Step 3: Deep dive
@alex analyze RDS spending by instance type and utilization

# Step 4: Action
@alex #recommend cost optimizations with ROI timeline
```

### Infrastructure Optimization

```bash theme={null}
# Step 1: Discovery
@alex audit all resources for optimization opportunities

# Step 2: Analysis
@alex #report detailed analysis of underutilized resources

# Step 3: Implementation
@alex #recommend right-sizing actions with rollback plan
```

***

## What's Next

<CardGroup cols={2}>
  <Card title="Cost Optimization" icon="piggy-bank" href="/guide/cost-optimization/overview">
    Explore the full cost optimization engine powered by Alex
  </Card>

  <Card title="CloudKeepers" icon="radar" href="/guide/infrastructure/cloudkeepers">
    Set up continuous cost guardrails so Alex monitors 24/7 autonomously
  </Card>

  <Card title="CloudThinker Language" icon="code" href="/guide/language">
    Master the `@alex #tool` prompt patterns for effective cost analysis
  </Card>

  <Card title="Anna" icon="users" href="/guide/agents/anna">
    Coordinate Alex with other agents for cross-domain operations
  </Card>
</CardGroup>
