Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Defang

$ defang Official High Risk
Defang · Cloud & Infra · MIT · macos / linux / windows

defang takes standard Docker Compose (compose.yaml) definitions and deploys them to Defang Playground, AWS, GCP, or DigitalOcean clouds. It provides both --dry-run and --json flags on key commands, plus defang compose config for safe pre-flight inspection.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install DefangLabs/defang/defang
CLI vs MCP Decision Hybrid (CLI + MCP)

Defang also ships an official MCP server, but defang compose up --dry-run --json gives tighter CI/terminal determinism inside coding agents.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Supports --dry-run, --json, and --non-interactive flags across compose up, though initial Playground login requires browser OAuth unless BYOC credentials are used.

  • Native --dry-run and --json support on compose up
  • Initial defang login uses GitHub browser OAuth
Trust & Safety 19 / 25

--dry-run previews deployment plans safely, while live compose up / compose down provisions or tears down real cloud resources and incurs billing.

  • Dedicated --dry-run flag prevents blind cloud provisioning
  • Live runs provision paid cloud infrastructure in BYOC accounts
Setup & Portability 14 / 15

Single static Go binary available via Homebrew tap, winget, npm wrapper, and GitHub Releases on macOS, Linux, and Windows.

  • Cross-platform Go binary with zero runtime dependencies
Utility & Efficiency 13 / 15

Turns existing compose.yaml files directly into ECS/Cloud Run/App Platform deployments without authoring Terraform.

  • Single compose.yaml targets Playground, AWS, GCP, or DigitalOcean
Maintenance & Lineage 9 / 10

Official DefangLabs/defang repository under MIT license with active development.

  • Official vendor repository under MIT
Docs & Verifiability 8 / 10

Clear documentation at docs.defang.io covering providers, Compose extensions, and CLI flags.

  • CLI and provider docs at docs.defang.io

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Service Account
Credential Storage

Stores Defang Playground GitHub OAuth token locally in ~/.config/defang/; BYOC deployments read standard AWS_*, GOOGLE_APPLICATION_CREDENTIALS, or DIGITALOCEAN_TOKEN env vars.

Side Effects
Read-Only Remote Write Destructive Billing Impact
Cost & Quotas

MIT open-source CLI with free Playground tier; BYOC cloud deployments incur AWS/GCP/DigitalOcean provider billing and commercial team plans.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Defang Agent Rules
- Always run `defang compose up --dry-run --json` before live cloud deployments.
- Verify `--provider` (`playground`, `aws`, `gcp`, `digitalocean`) matches user intent.
- Never run `defang compose down` on production stacks without explicit approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Preview Compose deployment with dry-run JSON
defang compose up --dry-run --json

Validates compose.yaml and simulates cloud resource changes in JSON without provisioning infrastructure.

Resolve interpolated Compose config
defang compose config

Outputs the merged, validated Docker Compose configuration locally.

Controlled Writes & Previews

Deploy Compose stack to AWS BYOC
defang compose up --provider aws --non-interactive

Deploys services defined in compose.yaml to your configured AWS account without interactive prompts.

Strengths for Agents

  • + Supports --dry-run --json on defang compose up for safe pre-flight verification.
  • + Reuses standard compose.yaml files across AWS, GCP, DigitalOcean, and Playground.
  • + Fast single static Go binary across all three major OSes.

Caveats & Pitfalls

  • ! Defang Playground login defaults to interactive GitHub browser OAuth.
  • ! Live BYOC deployments provision billable cloud resources in your AWS/GCP account.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI