Self-hosted, open-source deployment to your own Docker Swarm.

Every agent gets its own preview. Production gets only what you promote.

An agent deploys its worktree, uncommitted files included, to a private preview of its own. Staging follows every push; production runs only what you promote.

curl -fsSL https://piqueld.dev/install.sh | sh

The route of a change

Each line is an environment; each stop, what happens on the way.

The route of a change through piqueld A git push, or an uncommitted worktree, leads to a build. From there, a preview runs a branch or an agent’s worktree, with its own URL and secrets and one preview per agent, until you delete it. Staging deploys every push to main and records the release it ran. Previews and staging stay private on your tailnet. Promoting the release hands the same images to production, which passes its health check, serves its route over HTTPS, and runs only what you promoted. Private on your tailnet git push to any branch Your worktree uncommitted work, no push Preview a branch, or an agent’s worktree Own URL and secrets one preview per agent Delete it when you’re done volumes and all Staging every push to main Release the exact images it ran Health check rollouts wait for it HTTPS route managed for you Production what you promoted Build or pull an image Promote same images, no rebuild The route of a change through piqueld A git push, or an uncommitted worktree, leads to a build. From there, a preview runs a branch or an agent’s worktree, with its own URL and secrets and one preview per agent, until you delete it. Staging deploys every push to main and records the release it ran. Previews and staging stay private on your tailnet. Promoting the release hands the same images to production, which passes its health check, serves its route over HTTPS, and runs only what you promoted. Private on your tailnet git push to any branch Your worktree uncommitted, no push Preview a branch, or an agent’s worktree Own URL and secrets one preview per agent Delete it when you’re done Staging every push to main Release the exact images it ran Health check rollouts wait for it HTTPS route certificate and DNS managed Production what you promoted Build or pull an image Promote same images, no rebuild
  • Git and builds
  • Previews
  • Staging
  • Production

Deploy the worktree, not the branch

An agent deploys what its worktree holds, uncommitted files included, to a preview in its own slot, without pushing anything. It reads the URL and the logs, tries its change, and deletes the preview when it’s done.

  • Built to be scripted. With --json, every command prints one result document on stdout and one event per line on stderr, and its exit code says what happened.
  • Kept away from production. A token limited to previews:deploy and previews:delete can create, deploy and delete previews, but can’t deploy, promote or stop your long-lived environments.
An agent’s loop, in its worktree
# Once: a token that only reaches previews
piquelctl token create agent --app blog \
  --permission previews:deploy \
  --permission previews:delete
export PIQUELD_TOKEN=pqd_…

# Deploy the worktree, uncommitted and all
out=$(piquelctl --json --timeout 15m \
  preview deploy blog --local --slot agent-2)
slug=$(jq -r .slug <<<"$out")

# Read it, try it, delete it
piquelctl --json preview url blog "$slug"
piquelctl --json preview logs blog "$slug"
piquelctl preview delete blog "$slug" --yes

Describe it once, in your repository

The manifest lives next to your code. piqueld reads it from the commit it deploys, and builds the services that come from the same repository at that commit, so a pull request changes the code and its deployment together.

  • Plan before you save. piquelctl app plan shows what saving a manifest would create, change or stop declaring, without saving it.
  • Promote, don’t rebuild. Staging builds main on every push. Production never builds: it runs the release staging ran, down to the exact images.
From piqueld.toml, in the repository
[[spec.services]]
name = "web"
[spec.services.source]
type = "git"
repository = "self"
[spec.services.source.build]
type = "docker"
dockerfile = "Dockerfile"

[[spec.routes]]
service = "web"
port = 3000
hostname = "${{ vars.domain }}"
visibility = "public"

[spec.previews.variables]
domain = "${{ env.slug }}.example.com"

[spec.environments.staging]
sync = true
visibility = "private"
[spec.environments.staging.variables]
domain = "staging.example.com"

[spec.environments.production]
promote_from = "staging"
[spec.environments.production.variables]
domain = "example.com"

Private on your tailnet, from every device

Any route can be private. It then answers only to the devices on your Tailscale tailnet, wherever they are and whatever network they’re on, with a real HTTPS certificate. Previews are private by default, and one setting keeps a whole environment private.

  • The dashboard is a tailnet device. piqueld joins your tailnet as its own node, at https://piqueld.<tailnet>.ts.net, with no proxy or certificate to manage.
  • Tokens bound to your tailnet. Tie a token to a tailnet user or tag, and a leaked CI token is useless anywhere else.
From any device on your tailnet
# Every route of staging, tailnet-only
piquelctl env visibility blog staging \
  private --deploy

# A token that only works from CI runners
piquelctl token create ci --preset deploy \
  --app blog --tailnet tag:ci

Handled for you

The parts every deployment needs, kept up to date without you.

HTTPS and DNS

Certificates and records for every route, public or private.

  • Let’s Encrypt certificates, renewed
  • DNS-01 for private and wildcard routes
  • Records in Cloudflare or OVH
  • Cloudflare Tunnel, with no inbound port

Access and audit

Who can change what, and a record of everything they did.

  • Passkey accounts
  • Scoped API tokens
  • Permissions for each application
  • An audit trail that shows tampering

Operations

What keeps applications running, and tells you when they aren’t.

  • Generated, encrypted secrets
  • Volumes and one-shot jobs
  • Logs and notifications
  • OpenTelemetry export

Drive it from your browser, your terminal or your agent

Change an application from any of them. Saving never touches what’s running; deploying does.

  • Dashboard

    In your browser. Deploy, promote, restore and read logs, signed in with a passkey.

  • piquelctl

    On the command line, for you, your scripts and your agents, with JSON output and exit codes.

  • HTTP API

    What the dashboard and piquelctl both use, documented in OpenAPI.

Your first deployment

Three stops to your first application.

  1. Install piqueld

    curl -fsSL https://piqueld.dev/install.sh | sh
    Install on NixOS, or by hand
  2. Create your account

    Print a one-time setup link, open it, and sign up with a passkey. Then sign piquelctl in with it.

    piquelctl setup-link
    piquelctl login
    Read how to create your account
  3. Deploy your first application

    Apply a manifest and deploy it in one step.

    piquelctl app apply --file piqueld.toml --deploy
    Read how to deploy your first application