Introducing a new way to review your PRs.

Read the announcement

basecamp / kamal

Deploy web apps anywhere.

View on GitHub

17 documents · Updated Nov 16, 2026

overview

Knowledge Base updated: 2026-11-15

Kamal knowledge base

Kamal is a Ruby CLI for deploying containerized applications and auxiliary services to remote hosts. Its command layer combines validated deployment configuration with remote execution, Docker operations, image distribution, proxy routing, and operational reporting.

The primary control path starts at the CLI and commander, selects a command, loads configuration, and coordinates work across servers. Configuration resolves topology, services, environment variables, and secrets before runtime actions are issued.

Critical deployment state is external to the process: Docker images and containers on configured hosts, registry credentials and images, proxy state, generated environment data, and any configured secret-provider values.

flowchart TD
  CLI[Kamal CLI] --> Commander[Commander]
  Commander --> Commands[Command layer]
  Commands --> Config[Configuration system]
  Config --> Topology[Servers and roles]
  Config --> Services[Service and builder settings]
  Config --> Secrets[Environment and secrets]
  Commands --> Builder[Image builders]
  Builder --> Registry[Container registry]
  Commands --> Docker[Docker integration]
  Docker --> Hosts[Remote Docker hosts]
  Commands --> Proxy[Proxy management]
  Proxy --> Hosts
  Commands --> SSH[SSHKit remote execution]
  SSH --> Hosts
  Commands --> Telemetry[Output and telemetry]

Glossary

  • Accessory: An auxiliary service managed alongside the primary application, optionally exposed through the proxy.
  • Role: A named application responsibility used to target a subset of configured servers.
  • Kamal Proxy: The proxy component that routes application and accessory traffic on deployment hosts.
  • Builder: The strategy that produces a deployment image, locally, remotely, or through a cloud or pack-based workflow.
  • Destination: The deployment configuration context that supplies hosts, services, credentials, and runtime settings.

Routing table