Deploy AWS CDK apps safely with cdkd (CDK Direct). Guides AI coding agents through installing cdkd and bootstrapping, previewing, deploying, verifying, and destroying dev/test stacks with explicit safety boundaries.
Drop-in CDK compatible: your existing CDK app code runs as-is; just replace cdk deploy with cdkd deploy.
Up to 15x faster deploys: direct SDK calls, aggressive parallelization, and --no-wait to skip slow stabilization waits; faster than Terraform and CloudFormation Express mode too (see Benchmark).
cdkd complements the AWS CDK CLI rather than replacing it. Use cdkd in dev/test for rapid iteration; use the AWS CDK CLI in production for full CloudFormation tooling. Install cdkd alongside an existing cdk deploy workflow: no migration needed. You can also import existing stacks into cdkd or export back to CloudFormation anytime.
A natural fit for AI-driven development. AI coding agents iterate in tight spin-up / tear-down loops — and cdkd keeps each turn short, with fast deploys and an equally fast cdkd destroy that deletes via direct SDK calls instead of polling a CloudFormation stack-delete.
Local execution from your deployed stack.cdkd local runs your functions, APIs, and ECS tasks on your machine. It can resolve env vars, secrets, and resource references from your real deployed stack: no hand-written .env files, no hand-seeded test data (see Local execution).
[!IMPORTANT]
cdkd is for dev/test workflows only — early in development, not yet production-ready.
Installation
npm i -g @cdkd/cli # latest release
npm i -g @cdkd/cli@<version> # pin to a specific version
The installed binary is cdkd. It requires Node.js 22.12 or later.
cdkd was formerly published as @go-to-k/cdkd; that package is deprecated
and receives no further releases. Both packages install the same
cdkd binary, so remove the old one before installing the new one:
npm rm -g @go-to-k/cdkd && npm i -g @cdkd/cli
Quick Start
First-time setup: run cdkd bootstrap once per AWS account before any
other command; it replaces cdk bootstrap, which cdkd does not require
(details in Getting Started).
# Bootstrap (creates S3 state bucket + asset storage — one-time setup per AWS account)
cdkd bootstrap
# List stacks in the CDK app
cdkd list
# Deploy your CDK app
cdkd deploy
# Deploy at maximum speed: skip slow stabilization waits
cdkd deploy --no-wait
# Check what would change
cdkd diff
# Tear down
cdkd destroy
Use with AI Coding Agents
This repository ships a cdkd skill
that teaches AI coding agents to use cdkd safely (AI agents guide).
Claude Code
Install it as a plugin (one-time setup) by running these inside a Claude Code session:
To test the current checkout against another CDK project, clone this
repository and add it to a Claude Code session — the project-scoped
/use-cdkd skill covers building and
linking the checkout: