Skip to main content

Dagger Documentation

What is Dagger?

Dagger is a programmable CI/CD engine that runs your pipelines in containers.


Develop your CI/CD pipelines as code, in the same programming language as your application.

Runs your pipelines in containers

Dagger executes your pipelines entirely as standard OCI containers. This has several benefits:

  • Instant local testing
  • Portability: the same pipeline can run on your local machine, a CI runner, a dedicated server, or any container hosting service.
  • Superior caching: every operation is cached by default, and caching works the same everywhere
  • Compatibility with the Docker ecosystem: if it runs in a container, you can add it to your pipeline.
  • Cross-language instrumentation: teams can use each other's tools without learning each other's language.

What is Dagger Cloud?

Dagger Cloud complements Dagger with a production-grade control plane. Features of Dagger Cloud include pipeline visualization, operational insights, and distributed caching.

Who is it for?

Dagger may be a good fit if you are...

  • A developer wishing your CI pipelines were code instead of YAML.
  • Your team's "designated devops person", hoping to replace a pile of artisanal scripts with something more powerful.
  • A platform engineer writing custom tooling, with the goal of unifying continuous delivery across organizational silos.
  • A cloud-native developer advocate or solutions engineer, looking to demonstrate a complex integration on short notice.

How does it work?

  1. Your program imports the Dagger SDK in your language of choice.
  2. Using the SDK, your program opens a new session to a Dagger Engine: either by connecting to an existing engine, or by provisioning one on-the-fly.
  3. Using the SDK, your program prepares API requests describing pipelines to run, then sends them to the engine. The wire protocol used to communicate with the engine is private and not yet documented, but this will change in the future. For now, the SDK is the only documented API available to your program.
  4. When the engine receives an API request, it computes a Directed Acyclic Graph (DAG) of low-level operations required to compute the result, and starts processing operations concurrently.
  5. When all operations in the pipeline have been resolved, the engine sends the pipeline result back to your program.
  6. Your program may use the pipeline's result as input to new pipelines.

Getting started

To get started with Dagger, use our quickstart, which walks you through the basics of creating and using a pipeline with our SDKs. Alternatively, choose an SDK and follow that SDK's getting started guide.

To use Dagger in production, learn about Dagger Cloud and use our Dagger Cloud guide to connect Dagger with your CI provider or CI tool.

Which SDK should I use?

If you are...then you should...
a Go developerUse the Go SDK
a Python developerUse the Python SDK
a TypeScript/JavaScript developerUse the Node.js SDK
looking for an excuse to learn GoUse the Go SDK
looking for an excuse to learn PythonUse the Python SDK
looking for an excuse to learn TypeScript/JavaScriptUse the Node.js SDK
waiting for your favorite language to be supportedLet us know which one, and we'll notify you when it is ready
a GraphQL veteranUse the GraphQL API
a fan of shell scriptsUse the CLI
Not sure which SDK to choose 🤷In doubt, try the Go SDK. It does not require advanced Go knowledge, and what you learn will transpose well to future SDKs