Skip to content
cccskills
FreePublished on GitHub

architecture

References Serverless OpenClaw architecture. Covers network design, CDK stack structure, DynamoDB data model, API protocols, and container design.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196 stars(GitHub 196 + cccskills 0)
Works withAWS

Run score Not tested

See how to install

Files included (1)

  • SKILL.md2.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Architecture Reference

Design Documents

Core Architecture Principles

  1. Cost minimization: No NAT Gateway, no ALB, no Interface Endpoints
  2. Serverless-first: Lambda (events), Fargate Spot (long-running), DynamoDB (PAY_PER_REQUEST)
  3. Single responsibility: 7 separate Lambdas, 9 separate CDK stacks
  4. Layer separation: API Gateway → Lambda → Bridge → OpenClaw Gateway
  5. Protocol translation: Lambda(HTTP) ↔ Bridge ↔ OpenClaw Gateway(JSON-RPC 2.0 WebSocket)

AGENT_RUNTIME Feature Flag

Controls which agent backend handles requests:

ValueBehavior
fargateRoute all agent requests to Fargate container (Phase 1 mode)
lambdaRoute all agent requests to Lambda agent (Phase 2 mode)
bothSmart routing via classifyRoute(): reuse running Fargate, honor /heavy//fargate hints, default to Lambda, fallback to Fargate on Lambda failure

See architecture.md §12 for full Lambda architecture details and smart routing rules.

Lambda Data Flow (Phase 2)

Client → API Gateway (WS/REST) → Gateway Lambda → Lambda Agent Function
                                                  → runEmbeddedPiAgent()
                                                  → OpenClaw in-process

CDK Stacks (9 total)

SecretsStack + NetworkStack → StorageStack → {AuthStack, ComputeStack} → ApiStack → WebStack + MonitoringStack + LambdaAgentStack

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

References cold start optimization history and techniques. Covers Docker image optimization, Fargate CPU tuning, SOCI lazy loading, and Lambda Bedrock discovery fix. Use when optimizing startup performance.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

Loads Serverless OpenClaw project context. Provides background knowledge needed for development including project overview, tech stack, architecture decisions, and data models.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

cost

Free

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.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

deploy

Free

Deploys Serverless OpenClaw CDK stacks to AWS. Handles SecretsStack parameter injection, full/individual stack deployment, and Docker image push.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

dev

Free

Development workflow guide. Covers build, test, lint, format commands, package structure, Git hooks, TDD methodology, and coding conventions. Use when setting up dev environment, running tests, or following project conventions.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

Guides Phase 1 MVP implementation steps. Pass a specific step number as an argument to get the goals, deliverables, validation criteria, and detailed design for that step.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

See all skills by serithemage

Report a problem with this skill