Open-source, self-hosted headless CMS in TypeScript that generates REST and GraphQL content APIs from your content models.
Cockpit-HQ/Cockpit
Headless CMS PHP app for managing content collections and serving it via REST and GraphQL APIs to any frontend.
Open-source alternative to:Contentful
Strapi
- Stars
- 761
- Forks
- 84
- Open issues
- 67
- Last commit
- 26 days ago
What is it?
Cockpit is a headless content management system written in PHP. It lets you define content models such as collections, singletons and trees with custom fields, then edit that content in an admin UI and read it from any frontend over REST or GraphQL endpoints.
It stores data in SQLite by default, or in MongoDB when you configure a connection, so it can run as a single-file setup or against an existing database. Built-in features cover roles and permissions, two-factor authentication, API tokens, localized content with fallbacks, and asset management with image processing.
The project is extensible through addons, hooks and events, and supports multiple spaces for running several sites or clients from one installation. Official Docker images are published for the core and pro editions.
Key features
- 01Collections, singletons and trees with more than 20 field types
- 02REST and GraphQL APIs for reading and writing content
- 03Localized content with fallback languages
- 04Image processing and asset management
- 05Roles, permissions, 2FA and API tokens
- 06SQLite or MongoDB as the storage backend
Use cases
- Serving content to a React or Vue website through the API
- Providing a content backend for a mobile app
- Running a multi-language corporate site with localized content
- Managing content for several sites or clients from one installation
Quick start
- 1
Run Cockpit in a Docker container with persistent storage
docker run -d --name cockpit -p 8080:80 -v cockpit_storage:/var/www/html/storage cockpithq/cockpit:core-latest - 2
Open http://localhost:8080/install in your browser and complete the setup
Things to know
- The repository metadata lists no clear license, while the README states MIT.
In collections
Topics
FAQ
- What is Cockpit?
- Headless CMS PHP app for managing content collections and serving it via REST and GraphQL APIs to any frontend. Cockpit is a headless content management system written in PHP. It lets you define content models such as collections, singletons and trees with custom fields, then edit that content in an admin UI and read it from any frontend over REST or GraphQL endpoints.
- Is Cockpit free to use? What license does it have?
- Cockpit is open source under the Other license. Check the license terms before using it in commercial products.
- Is Cockpit still maintained?
- Actively maintained. The last commit to Cockpit was on Oct 13, 2026.
- What can I use Cockpit for?
- Serving content to a React or Vue website through the API Providing a content backend for a mobile app Running a multi-language corporate site with localized content Managing content for several sites or clients from one installation
- How do I install Cockpit?
- Run Cockpit in a Docker container with persistent storage: docker run -d --name cockpit -p 8080:80 -v cockpit_storage:/var/www/html/storage cockpithq/cockpit:core-latest Open http://localhost:8080/install in your browser and complete the setup
- Where can I get Cockpit?
- The source code and installation instructions are on GitHub: https://github.com/Cockpit-HQ/Cockpit
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Open source headless CMS and content hub that exposes content through a rich API with OData filtering and Swagger definitions, leaving the UI to you.
Open-source headless CMS in Java that serves content to websites, mobile apps and other clients through GraphQL and REST APIs.
Wraps any SQL database with instant REST and GraphQL APIs, a visual admin Studio, and a native MCP server for AI agents.
A GraphQL API plugin for WordPress that exposes posts, pages, users, taxonomies and custom content types as a queryable schema.
A self-hosted PHP content management system for building custom websites and digital experiences, with a Twig templating layer and auto-generated GraphQL API.