Cost

From serithemage/serverless-openclaw · View interactive version

Cost is an AI agent skill from the GitHub repository serithemage/serverless-openclaw. References Serverless OpenClaw cost optimization guidelines. Validates that no resources exceeding the cost target ($1/month) are created during implementation. Use when writing CDK stacks or making infrastructure changes.

How to use this skill

Skill file

Cost Optimization Reference

Detailed Cost Analysis

Per-service cost breakdown, before/after optimization comparison, checklist:

Cost Validation (Required for Infrastructure Changes)

Verify the following resources are NOT created:

| Prohibited Resource | Monthly Cost | Alternative |

| -------------------- | ------------ | ------------------------------------ |

| NAT Gateway | ~$33 | Fargate Public IP |

| ALB/ELB | ~$18-25 | API Gateway |

| Interface Endpoint | ~$7/each | Public IP for public endpoint access |

| DynamoDB Provisioned | Variable | PAY_PER_REQUEST |

| Lambda in VPC | Requires NAT | Deploy outside VPC |

Cost Targets

| Category | Target |

| ---------------- | --------------- |

| Within Free Tier | ~$0.23/month |

| After Free Tier | ~$1.07/month |

| Maximum allowed | Under $10/month |

Lambda Agent Cost (Phase 2)

See cost-optimization.md ยง9 for full Lambda cost analysis.

| Resource | Cost Model | Notes |

| ---------------------- | ------------- | ----------------------------------- |

| Lambda invocations | Per-request | 1M requests/month free tier |

| Lambda duration | Per GB-second | 400K GB-seconds/month free tier |

| Lambda container image | ECR storage | ~$0.10/GB/month after 500MB free |

| No Fargate idle cost | โ€” | Lambda scales to zero automatically |

Key advantage: Lambda charges only for actual execution time โ€” no idle Fargate cost when no users are active. For low-traffic usage, Lambda runtime cost approaches $0/month within free tier.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.