Submitting apps to the marketplace
Want your app or agent in the Companion App Store? You can submit directly using the cihub command line, upload a packaged bundle to the Developer Portal, open a pull request against the CI-Marketplace repository, or request an app via community channels.
Every route takes the same core files through automated verification and review:
flowchart TD
p["Package apps/<slug>/<br/>config.json · docker-compose.json<br/>metadata/description.md · metadata/logo"] --> i{"How to submit"}
i -->|"CLI (recommended)"| cli["cihub login, then<br/>cihub submit <dir>"]
i -->|"Developer Portal"| web["hub.ci.computer/developer<br/>Upload .tar.gz bundle"]
i -->|"Pull request"| pr["Add apps/<slug>/ to<br/>CI-Marketplace, open a PR against dev"]
i -->|"Community request"| req["File issue on CI-Marketplace-Requests<br/>or email support@ci.computer"]
cli -->|"Pushes images to Portal registry<br/>Ingests as pending"| v["Review Queue (CI-App-Review):<br/>Clean install, container sandbox,<br/>privacy declaration, sensible defaults"]
web -->|"Ingests as pending"| v
pr -->|"Validation & promotion gates:<br/>pnpm test, check-image-pins,<br/>verify-apps, promotion-gate"| v
req -->|"Automated / staff onboarding"| pr
v -->|"Approved for dev & prod"| a["App Store, for all Hub users"]
click p "#app-folder-structure"
click cli "#submit-with-the-cli"
click web "/docs/portal/developer-apps"
click pr "#submit-via-pull-request"
click req "https://ci.computer/store-submit"Prerequisites
- The app must run as a Docker container.
- A valid Docker image — either published to a registry (Docker Hub, GHCR), built with the Static Container Builder, or present in your local Docker engine when using
cihub submit. - A CI Account organization (with Owner or Admin role), if you submit via
cihub submitor the Developer Portal. - A GitHub account with access to the CI-Marketplace repository, if you submit directly via pull request. See Contributing.
Submission routes
| Route | CLI (`cihub submit`) | Developer Portal | Pull Request (CI-Marketplace) | Community Request |
|---|---|---|---|---|
| Where | cihub login, then cihub submit <dir> | hub.ci.computer/developer | apps/<slug>/ in CI-Marketplace PR against dev | ci.computer/store-submit or CI-Marketplace-Requests |
| Account needed | CI Account (Org Owner/Admin) | CI Account (Org Owner/Admin) | GitHub with repository access | None |
| Image hosting | Pushed automatically to Portal registry | Must be pre-hosted on Portal registry | Public registry (Docker Hub / GHCR) | Public repository / upstream container |
| Review lifecycle | Ingested as pending → CI-App-Review | Ingested as pending → CI-App-Review | CI lint & promotion gates → merge & deploy | Maintainer review & pipeline onboarding |
| Recommended for | Community developers | Bundle updates & tokens | First-party & maintainers | General requests |
App folder structure
Each app lives in apps/<slug>/ in the CI-Marketplace repository (a private repository), and the folder name must match the id in config.json. Nextcloud (apps/nextcloud/) is a reference implementation, and apps/_template/ is the template for a new app:
- config.json
- docker-compose.json
- description.md
- logo.png
Required files
Missing or empty files cause the app to be skipped at deploy and rejected by validation.
| File | Purpose |
|---|---|
config.json | Metadata, form fields, categories, privacy, Hub integration — see the config.json reference |
docker-compose.json | Service definition — see Dynamic Compose |
metadata/description.md | Long description for the App Store detail page (Markdown / HTML) |
metadata/logo.png or metadata/logo.jpg | Square logo (recommended 256×256 px); the file must not be 0 bytes |
Optional store assets
metadata/screenshots/: Store-listing gallery images (.png,.jpg,.webp). A gallery screenshot is required by the production promotion gate for GUI apps.e2e/screenshots/<slug>.png: Verification screenshot proving that the app was installed, booted, and tested on an appliance. Required before promotion to Verified or Featured.metadata/media/<slug>-landscape.mp4: Optional store-listing demo video (16:9). Demo videos are build assets and must never be committed to git (they are gitignored). Videos are uploaded directly to R2 usingscripts/upload-r2.jsand referenced inconfig.jsonvia"demo_video": "./metadata/media/<slug>-landscape.mp4".
The configuration files
config.json
Required fields are id, name, version, short_desc, author, port, source, categories, available, and supported_architectures. Validation tests also require cihub_app_version. Use cihub_app_version (not the legacy tipi_version); dynamic_config defaults to true.
Key fields to configure:
available: Controls store visibility.truepublishes the app to the store;falseingests it as a hidden draft (ideal for testing).port: Host port that Hub reserves for the app. It must be unique across the catalog, 1024 or higher, and outside the ports Hub reserves for system services (3000, 5001, 5002, 5432, 5672, 6543, 9091–9092, 9443, 9480, and 15672). Omitportonly for apps withno_gui: trueorcategories: ["mcp"].categories: Valid values arenetwork,media,development,automation,social,utilities,photography,security,featured,books,data,music,finance,gaming,ai,agents,mcp, andcompanion-intelligence. Note:agentsandaiare peers; an autonomous tool-using agent takes both["agents", "ai"].privacy: Publisher data-handling declaration rendered on the store’s App Privacy card. Absence means “Not declared”. An affirmative “collects nothing” claim requires"collects": []with a named author and date.gpu_requirements: Accelerator specifications (cuda,rocm,oneapi) if the container passes through GPU devices.
{
"name": "Nextcloud",
"id": "nextcloud",
"available": true,
"short_desc": "A safe home for all your data.",
"author": "nextcloud",
"port": 8301,
"categories": ["data", "featured"],
"description": "Nextcloud is a suite of client-server software...",
"version": "34.0.3",
"source": "https://github.com/nextcloud/server",
"website": "https://nextcloud.com",
"exposable": true,
"supported_architectures": ["arm64", "amd64"],
"dynamic_config": true,
"privacy": {
"declared_by": "Nextcloud GmbH",
"declared_at": "2026-10-26",
"policy_url": "https://nextcloud.com/privacy",
"collects": []
},
"form_fields": [
{
"type": "random",
"label": "Database Password",
"min": 32,
"env_variable": "NEXTCLOUD_DB_PASSWORD"
},
{
"type": "text",
"label": "Admin User",
"default": "admin",
"required": true,
"env_variable": "NEXTCLOUD_ADMIN_USER"
}
],
"cihub_app_version": 10
}docker-compose.json
Dynamic compose (schema version 2) is the standard format. Exactly one service must have "isMain": true:
{
"schemaVersion": 2,
"services": [
{
"name": "nextcloud",
"image": "nextcloud:latest",
"internalPort": 80,
"isMain": true,
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/nextcloud",
"containerPath": "/var/www/html"
}
],
"environment": [
{ "key": "POSTGRES_PASSWORD", "value": "${NEXTCLOUD_DB_PASSWORD}" }
]
}
]
}See Dynamic Compose for full syntax including healthchecks, volume mounts, dependencies, and environment variable substitution.
Container security and sandbox policy
The Companion Hub appliance isolates community applications inside Docker containers (or Kata microVMs). Both Hub’s Compose Security Validator (collectServiceSecurityViolations in @ci-hub/common/schemas) and the Portal ingest API enforce strict container sandbox boundaries:
- Disallowed host paths: Containers may not bind-mount host root filesystems, ancestors of denied paths, or sensitive system paths (
/,/var/run/docker.sock,/run,/var/run,/var/lib/docker,/var/lib/containerd,/proc,/sys,/dev,/etc,/root,/boot,/usr,/bin,/sbin,/lib,/lib64). Only${APP_DATA_DIR}expansions and benign timezone binds (/etc/localtime,/etc/timezone) are permitted by default; relative..segments, leading~, and arbitrary$VARexpansions inhostPathare rejected. - Disallowed privileges and namespaces:
privileged: true,networkMode: "host",networkMode: "container:<name>",pid: "host", andpid: "container:<name>"are blocked by default. AnynetworkModeother thanbridge,none,default, orservice:<name>(such as namingci-hub_edgeorci-hub_internal) is unconditionally rejected. - Disallowed capabilities and security options: Services may add only Docker’s default 14 Linux capabilities (
AUDIT_WRITE,CHOWN,DAC_OVERRIDE,FOWNER,FSETID,KILL,MKNOD,NET_BIND_SERVICE,NET_RAW,SETFCAP,SETGID,SETPCAP,SETUID,SYS_CHROOT). Capabilities such asSYS_ADMIN,SYS_MODULE, orNET_ADMIN, and confinement-disablingsecurityOptvalues (seccomp=*,apparmor=unconfined,systempaths=unconfined,label=*), are blocked unless explicitly granted. - Disallowed devices: Passing character devices under
/dev/(such as/dev/dri,/dev/kfd,/dev/ttyUSB0, or/dev/video0) is allowed, whereas/devitself,/dev/mem,/dev/kmem,/dev/port,/dev/root, and raw disk block devices (/dev/sd*,/dev/nvme*,/dev/vd*,/dev/loop*,/dev/dm-*,/dev/disk/*,/dev/block/*,/dev/mapper/*) are blocked. - Allowlist exceptions: If an official store application requires host-level access to function (such as Docker monitors, VPN servers, or hardware drivers), it must be audited in
TRUSTED_APP_SECURITY_ALLOWLIST/sandbox-allowlist.jsonand declare"host_access": trueinconfig.json. The store renders this as a Host Access warning to users. - MicroVM and Confidential Container isolation (
runtime): Commercial or proprietary applications can set"runtime": "kata"(kata-qemu,kata-clh) or"runtime": "kata-cc"indocker-compose.jsonto run inside a hardware-isolated Kata Containers microVM or Confidential Container (CoCo) enclave with encrypted container layers in Cloudflare R2. See Publish your first app.
Submit with the CLI
The cihub CLI provides the official automated submission pipeline for developers. It automatically checks required files, authenticates with Portal, pushes container images to the Portal registry, rewrites compose manifests, and submits the app bundle for review.
1. Authenticate with Portal
Sign in to your CI Account organization:
cihub logincihub login opens a browser approval window and saves an organization developer token (cio_...) to ~/.config/cihub/portal-login.json.
- Headless / SSH: Use
cihub login --deviceto complete authentication using a one-time device code. - Specific organization: If you belong to multiple organizations, specify the organization slug with
--org <slug>. - Automated CI / headless environments: Set environment variables:
CI_PORTAL_TOKEN: Your organization developer token (cio_...).CI_PORTAL_ORG: The organization ID.CI_PORTAL_ORG_SLUG: The organization slug.
2. Validate with dry run or validate-only
Before pushing images, run a preflight check to inspect the submission plan without uploading:
# Standalone local preflight (no credentials required)
cihub submit --validate-only ./my-app
# Dry run with authenticated org preview
cihub submit --dry-run ./my-appThe preflight verifies:
- All four required files exist and are non-empty (
config.json,docker-compose.json,metadata/description.md, andlogo). - The
idslug matches^[a-z0-9][a-z0-9-]{0,31}$. - The catalog ID
<id>_<org-slug>does not exceed the 48-character limit. - Container compose images are valid (flags placeholders like
<image>). - Container sandbox policies are satisfied (flags denied host paths or unauthorized
privileged: true). - Privacy declaration presence and validity.
- How each service image will be tagged and rewritten to the Portal registry (e.g.
hub.ci.computer/<id>_<org-slug>:latest).
3. Submit the app
When ready, execute the submission:
cihub submit ./my-appcihub submit performs the following steps:
- Requests an ephemeral push token from Portal for your app’s registry repository.
- Authenticates your local Docker daemon with the Portal registry (
docker login). - Tags and pushes your local container images to the Portal registry.
- Rewrites
docker-compose.jsonto point to the secure Portal registry targets. - Archives the folder into a
.tar.gzbundle and submits it toPOST /api/organizations/:orgId/apps/ingest. - Reports the assigned app ID and confirmation that the app is ingested with status
pending.
To clear your stored Portal login credentials from the local machine, run
cihub logout.
Submit via pull request
First-party applications and open-source contributors with access to the private CI-Marketplace repository can submit apps directly via GitHub pull request.
Scaffold with the interactive generator
In your clone of CI-Marketplace, run the interactive app generator:
pnpm run new-appThe generator prompts for all critical fields (slug, name, descriptions, author, categories, AI inference profiles, ports, source, website, version, architectures, and pricing) and creates:
apps/<slug>/config.jsonapps/<slug>/docker-compose.jsonapps/<slug>/metadata/description.md
It immediately validates the generated configuration against the repository’s Zod schema (ciAppInfoSchema), giving you instant PASS/FAIL feedback before you edit further.
Fill in compose definition and metadata
- Edit
apps/<slug>/docker-compose.jsonwith your real image tags, volume mounts, and environment variables. - Add a square logo image at
apps/<slug>/metadata/logo.png(orlogo.jpg). - Add store gallery screenshots under
apps/<slug>/metadata/screenshots/. - Complete
apps/<slug>/metadata/description.mdwith usage instructions and documentation links.
Fast preflight validation
Run the fast single-app validator to verify manifest schema, compose syntax, sandbox permissions, privacy declarations, and gallery assets in sub-second time:
pnpm run validate <slug>Run test suite and image pin checks
Run the catalog test suite:
pnpm test
# or under Deno:
deno task testResolve floating container image tags (such as :latest) to cryptographic @sha256: digest pins:
deno task check-image-pins -- --slugs <slug> --all --fixCapture verification evidence
Install and verify the application on a running Hub instance, or run the automated verification tool:
deno run -A scripts/verify-apps.ts --slugs <slug>This starts the container stack in Docker and captures a Playwright screenshot to verification-results/screenshots/<slug>.png. Copy the screenshot to e2e/screenshots/<slug>.png.
Check promotion gates
Run the promotion gate checker to ensure your listing meets production standards:
deno task promotion-gate -- --slugs <slug>The gate checks:
- A valid, signed
privacyblock with an ISOdeclared_atdate. - A store gallery screenshot in
metadata/screenshots/for GUI apps. - Complete non-placeholder metadata.
Open a pull request
Commit your changes and open a pull request against the dev branch of CI-Marketplace:
git checkout -b app/<slug>
git add apps/<slug> e2e/screenshots/<slug>.png
git commit -m "feat(apps): add <slug>"
git push origin app/<slug>Maintainers review the pull request, CI runs automated linting and tests, and the app deploys to the dev environment on merge.
Review and promotion lifecycle
All submitted apps (via CLI, web ingest, or PR) pass through review before appearing in the public store:
- Review queue (
CI-App-Review): Maintainers and automated test agents claim submissions from the Portal review queue (/api/store/review/*). - Sandbox and health verification: Reviewers verify clean container installation, healthcheck response, non-root user execution, sensible credential defaults, and sandbox compliance.
- Environment promotion:
- Approved apps first deploy to the dev environment (
hub.companionintelligence.com). - Promotions follow the unidirectional pipeline:
dev→staging→main(production). - Once verified on appliances, listings are promoted to production on
hub.ci.computerand become installable by all Hub users worldwide.
- Approved apps first deploy to the dev environment (
Guidelines for packagers
- Sensible defaults: Use
randomform fields for secrets and database passwords so fresh installs generate secure random credentials. - Pin images: Use immutable tags or
@sha256:digests. Never publish with unpinned floating tags in production. - Port assignment: Allocate a unique host port ≥ 1024 that is not currently in use by another app or reserved by Hub services.
- Architectures: Set
supported_architecturesaccurately (e.g.["arm64", "amd64"]) and verify that container images publish multi-arch manifests. - AI integration: If your app uses LLMs, use
hub_integration.inferenceto connect to Hub’s local inference engine (Ollama, vLLM, or Lemonade) automatically. See AI and inference. - Privacy transparency: Declare all telemetry, analytics, and external service connections in
privacy.collects. An app with zero external telemetry must explicitly declare"collects": [].