Skip to Content
DocumentationContributingSubmitting an app to the Store

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:

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 submit or the Developer Portal.
  • A GitHub account with access to the CI-Marketplace repository, if you submit directly via pull request. See Contributing.

Submission routes

RouteCLI (`cihub submit`)Developer PortalPull Request (CI-Marketplace)Community Request
Wherecihub login, then cihub submit <dir>hub.ci.computer/developerapps/<slug>/ in CI-Marketplace PR against devci.computer/store-submit or CI-Marketplace-Requests
Account neededCI Account (Org Owner/Admin)CI Account (Org Owner/Admin)GitHub with repository accessNone
Image hostingPushed automatically to Portal registryMust be pre-hosted on Portal registryPublic registry (Docker Hub / GHCR)Public repository / upstream container
Review lifecycleIngested as pending → CI-App-ReviewIngested as pending → CI-App-ReviewCI lint & promotion gates → merge & deployMaintainer review & pipeline onboarding
Recommended forCommunity developersBundle updates & tokensFirst-party & maintainersGeneral requests
Comparison of app submission methods to the Companion App Store.

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.

FilePurpose
config.jsonMetadata, form fields, categories, privacy, Hub integration — see the config.json reference
docker-compose.jsonService definition — see Dynamic Compose
metadata/description.mdLong description for the App Store detail page (Markdown / HTML)
metadata/logo.png or metadata/logo.jpgSquare 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 using scripts/upload-r2.js and referenced in config.json via "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. true publishes the app to the store; false ingests 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). Omit port only for apps with no_gui: true or categories: ["mcp"].
  • categories: Valid values are network, media, development, automation, social, utilities, photography, security, featured, books, data, music, finance, gaming, ai, agents, mcp, and companion-intelligence. Note: agents and ai are 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 $VAR expansions in hostPath are rejected.
  • Disallowed privileges and namespaces: privileged: true, networkMode: "host", networkMode: "container:<name>", pid: "host", and pid: "container:<name>" are blocked by default. Any networkMode other than bridge, none, default, or service:<name> (such as naming ci-hub_edge or ci-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 as SYS_ADMIN, SYS_MODULE, or NET_ADMIN, and confinement-disabling securityOpt values (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 /dev itself, /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.json and declare "host_access": true in config.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" in docker-compose.json to 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 login

cihub login opens a browser approval window and saves an organization developer token (cio_...) to ~/.config/cihub/portal-login.json.

  • Headless / SSH: Use cihub login --device to 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-app

The preflight verifies:

  • All four required files exist and are non-empty (config.json, docker-compose.json, metadata/description.md, and logo).
  • The id slug 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-app

cihub submit performs the following steps:

  1. Requests an ephemeral push token from Portal for your app’s registry repository.
  2. Authenticates your local Docker daemon with the Portal registry (docker login).
  3. Tags and pushes your local container images to the Portal registry.
  4. Rewrites docker-compose.json to point to the secure Portal registry targets.
  5. Archives the folder into a .tar.gz bundle and submits it to POST /api/organizations/:orgId/apps/ingest.
  6. 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-app

The 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.json
  • apps/<slug>/docker-compose.json
  • apps/<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

  1. Edit apps/<slug>/docker-compose.json with your real image tags, volume mounts, and environment variables.
  2. Add a square logo image at apps/<slug>/metadata/logo.png (or logo.jpg).
  3. Add store gallery screenshots under apps/<slug>/metadata/screenshots/.
  4. Complete apps/<slug>/metadata/description.md with 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 test

Resolve floating container image tags (such as :latest) to cryptographic @sha256: digest pins:

deno task check-image-pins -- --slugs <slug> --all --fix

Capture 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 privacy block with an ISO declared_at date.
  • 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:

  1. Review queue (CI-App-Review): Maintainers and automated test agents claim submissions from the Portal review queue (/api/store/review/*).
  2. Sandbox and health verification: Reviewers verify clean container installation, healthcheck response, non-root user execution, sensible credential defaults, and sandbox compliance.
  3. 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.computer and become installable by all Hub users worldwide.

Guidelines for packagers

  • Sensible defaults: Use random form 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_architectures accurately (e.g. ["arm64", "amd64"]) and verify that container images publish multi-arch manifests.
  • AI integration: If your app uses LLMs, use hub_integration.inference to 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": [].
Last updated on