Skip to main content

Bitrab 🐰

Bitrab runs your .gitlab-ci.yml on a plain machine so you can find problems before you push, wait, and repeat.

It is built for the expensive part of CI: feedback latency and duplicated setup. Instead of burning build minutes on every small YAML tweak, you can validate and run the same pipeline definition locally, then reuse that same definition inside CI when it makes sense.

Why you might want to use it

  • Run GitLab-style pipelines locally and catch failures before pushing.
  • Shorten the edit-test-debug loop for CI changes.
  • Reuse .gitlab-ci.yml outside GitLab on any Python-capable host.
  • Run multiple jobs in parallel inside one host or container instead of paying full per-job startup overhead every time.
  • Keep one build script closer to reality instead of maintaining separate local and CI scripts.

The theme is simple: save developer time, save CI minutes, and stop paying for "push, wait, discover typo, push again".

Where the savings come from

GitLab CI is great at orchestrating remote jobs, but remote feedback is naturally slower:

  • every iteration costs a push or MR update
  • every job pays queue and startup overhead
  • every "just checking if the YAML works" run consumes minutes
  • local and remote scripts can drift when they are maintained separately

Bitrab helps by moving more of that loop earlier:

  • validate and dry-run the pipeline locally
  • execute jobs directly on your workstation when container isolation is unnecessary
  • use the same pipeline file in CI with bitrab run --no-tui --parallel N to fan jobs out inside one container
  • optionally keep one source of truth for your build steps

Quick start

pipx install bitrab
pipx install 'bitrab[fast]'
bitrab validate
bitrab run --no-tui --parallel 1

For this repo's own dogfooding flow:

make quality-gate
just quality-gate
uv run bitrab -c .bitrab-ci.yml run --no-tui --parallel 4 --parallel-backend thread --no-worktrees

Usage

bitrab run --no-tui --parallel 4

For real runs in a Git checkout, parallel jobs use per-job git worktrees by default when they can, so sibling jobs do not fight over the same files. If you want changes to land in your real working tree instead, serialize the run:

bitrab run --no-tui --serial

--serial forces one job at a time in the project root and disables worktrees, which is the safe choice for formatters, autofixers, and other intentional mutations.

If repo-local .bitrab\worktrees interferes with your tools, set [tool.bitrab].worktree_root in pyproject.toml, for example ~/.bitrab/worktrees/bitrab.

What Bitrab is

Bitrab is a local runner for a practical subset of GitLab CI. It executes jobs as native shell processes, supports stage execution, DAG needs:, job filtering, retries, local and remote includes, artifacts, watch mode, graph output, and optional mutation warnings.

What Bitrab is not

Bitrab is not a drop-in replacement for GitLab Runner.

  • It does not provide container isolation.
  • image: and services: are not executed locally.
  • Some GitLab features are ignored, partially supported, or intentionally blocked.
  • GitLab-specific server features still need GitLab.

The docs call these differences out explicitly instead of pretending full compatibility.

Docs

GITLAB is a trademark of GitLab Inc. Bitrab is not affiliated with, endorsed by, or approved by GitLab Inc.

Metadata

Release files for bitrab 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bitrab 0.5.0
File Size Uploaded Provenance Actions
bitrab-0.5.0.tar.gz 134.4 kB With provenance Details for bitrab-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bitrab 0.5.0
File Interpreter ABI Platform Actions
bitrab-0.5.0-py3-none-any.whl Python 3 none any Details for bitrab-0.5.0-py3-none-any.whl

Total release size: 287.1 kB

Release files / bitrab-0.5.0.tar.gz

Download URL bitrab-0.5.0.tar.gz
Size 134.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0ab0a8cd9efd6d86add2ad93d680885347e59962ee746d12c4742d8215f5971c
BLAKE2b-256 checksum
How to use checksums
001c39d6f0018dcaa3b4cfee65fdb4e2ac244101d98e58075b9cfb2e9f8e191f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Release files / bitrab-0.5.0-py3-none-any.whl

Download URL bitrab-0.5.0-py3-none-any.whl
Size 152.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99d6e1e1827c6a36e86bf3193112fa5a118045211f3ae842b1eb082a0353c08d
BLAKE2b-256 checksum
How to use checksums
9a673659344a40fc211ea8ce8dfdd1066eee9e3bd680983ae4604589bec9b57e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Security for bitrab 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bitrab-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page