packaged by Chainguard
Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.
OpenSpec is a CLI from Fission AI for spec-driven development with AI coding assistants. It scaffolds a specification store in your repository, turns proposed work into structured change folders, validates specifications and their scenarios, and archives completed changes back into the living specification set.
Chainguard Containers are regularly-updated, secure-by-default container images.
For those with access, this container image is available on cgr.dev:
Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.
Upstream OpenSpec is distributed as an npm package. It publishes no container image and no Dockerfile, so there is no upstream image for this one to be compatible with. The CLI itself is the same one an openspec npm installation provides, built from the OpenSpec source against a packaged Node runtime, but everything about how it is packaged as a container is defined by Chainguard. Those decisions are documented below so you can rely on them.
| Property | Value | Why it is set this way |
|---|---|---|
Entrypoint |
| The CLI is the entrypoint, so arguments you pass to |
Working directory |
| OpenSpec reads and writes the directory it runs in. The mode lets an arbitrary |
User | nonroot, UID/GID | The image never runs as root. Files it creates are owned by |
|
| Upstream enables anonymous usage telemetry and an npm version check unless you opt out. Telemetry reports on every command, while the version check runs only for |
The image also carries the pieces the CLI shells out to: the Node runtime it executes under, git for openspec store setup, and a minimal shell so you can chain several OpenSpec commands in one container invocation.
There is no openspec daemon or server. The image runs one command and exits, which makes it a good fit for a CI step or a Kubernetes Job.
OpenSpec works on a checkout of your project, so mount the repository at /workspace. Run it as your own user so the files it creates stay owned by you:
This scaffolds the specification store and the instruction files for your coding assistant:
Because every invocation needs the same mount, a shell function keeps the remaining examples readable:
/tmp is world-writable in the image, so the global configuration lands somewhere every UID can write. It is discarded with the container; mount a directory there instead when you want it to persist across runs.
Start a change to describe work you are proposing:
The change begins empty, and you or your coding assistant fill in its artifacts. new change creates only the change directory, so make the spec directory before writing a delta into it:
Validate the change before handing it to a reviewer or an agent:
Validation is the gate worth wiring into CI. It exits non-zero and explains the problem when a requirement is incomplete, for example when a requirement has no scenario:
Once the work is done, archiving folds the change's deltas into the project's living specifications and clears it from the active list:
Add --json to list, show, validate, and status when a script or an agent needs to consume the result rather than read it.
OpenSpec stores per-project configuration in openspec/config.yaml and reads a handful of environment variables at runtime. The ones that matter in a container are:
| Variable | Image default | Purpose |
|---|---|---|
|
| Set to |
| unset | Set to |
| unset | Point at a writable path so |
| unset | Set to |
| unset | Set to |
In Kubernetes, run OpenSpec as a Job with the project mounted at /workspace. The volume has to carry the repository, since validate --specs has nothing to check against an empty directory:
An emptyDir works too when a prior step populates it, and needs no fsGroup, because kubelet creates it world-writable.
Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.
All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.
The main features of Chainguard Containers include:
For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.
In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.
Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.
To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.
To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.
Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.
This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.
Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:
GCC-exception-3.1
GPL-3.0-or-later
ISC
MIT
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementChainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.
SLSA compliance at ChainguardThis image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.
PCI DSS at ChainguardA FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.