App Manifest Reference

August 20, 2026 · View on GitHub

The app manifest (app.json) declares your app's identity, resources, and requirements.

Required Fields

FieldTypeDescription
namestringUnique identifier, kebab-case (e.g. "oncall-watchtower")
versionstringSemver version (e.g. "1.0.0")
displayNamestringHuman-readable name shown in App Store
descriptionstringShort description of what the app does
FieldTypeDescription
authorstringAuthor name or team
licensestringLicense identifier
minKiroCrewVersionstringMinimum Gateway version required
tagsstring[]Discovery tags (e.g. ["oncall", "monitoring"])
jobFamiliesstring[]Job families this app is relevant to

Resources

FieldTypeDescription
agentsstring[]Paths to agent JSON files (relative to app root)
skillsstring[]Paths to skill directories
sopsstring[]Paths to SOP (Standard Operating Procedure) files
mcpServersobjectMCP server definitions (same format as mcp.json)

How a stdio command is resolved at registration

A stdio entry's command (no url) is not always written verbatim — registration resolves it so the server starts under the interpreter its dependencies were installed against:

  • A bare Python launcher (python, python3, py, or the same with .exe) resolves to the app's own venv interpreter (.venv/bin/python3, or .venv\Scripts\python.exe on Windows) when it exists as a runnable file, else to the gateway's own interpreter — never a PATH lookup. Exception: a server whose args launch a kiro_crew module (-m kiro_crew...) always gets the gateway's interpreter, since app venvs cannot import kiro_crew.
  • Any other bare name (no path separator, no drive qualifier) is rewritten only when the app's venv provides that exact binary as a runnable file (a pip console script — invisible to PATH because the venv is never activated). Note this means a venv-provided binary shadows a same-named PATH dependency. node, npx, docker and friends are otherwise left for PATH, as declared.
  • A command carrying a path (absolute or relative) is never rewritten. If it does not point at a runnable file at registration time, a warning naming the app, server, and command is logged — the entry is still written.
  • The host CLI name kirocrew is pinned to the running gateway before any of the above applies.

Scheduling

crons — Cron Job Definitions

{
  "crons": [
    {
      "name": "ticket-refresh",
      "every": 300,
      "message": "Check for new high-severity tickets"
    },
    {
      "name": "daily-digest",
      "cron_expr": "0 9 * * 1-5",
      "message": "Generate daily digest",
      "agent": "digest-agent"
    }
  ]
}
FieldTypeDescription
namestringJob identifier
everynumberInterval in seconds (mutually exclusive with cron_expr)
cron_exprstringCron expression (mutually exclusive with every)
messagestringPrompt sent to the agent on each run
agentstringAgent to run (optional, uses default if omitted)
enabledbooleanDefault true. Must be a JSON boolean — any other type is rejected at manifest validation. When false the cron is registered paused (visible in the Schedule view, resumable) instead of firing on install/enable — for jobs that need user configuration first

Caveat: disabling an app deletes its registered cron jobs, and re-enabling the app re-registers them from the manifest. A cron shipped with "enabled": false that a user later resumed will therefore be reset back to the paused state after an app disable → re-enable cycle and must be resumed again.

Frontend UI

ui — Dashboard Integration

{
  "ui": {
    "entry": "dist/index.mjs",
    "pages": [
      {
        "route": "/apps/my-app",
        "label": "My App",
        "icon": "Shield",
        "entryPoint": "dist/page.mjs",
        "mountFunction": "mount"
      }
    ],
    "sidebar": {
      "section": "Apps",
      "order": 10
    }
  }
}
FieldTypeDefaultDescription
ui.entrystringPath to ESM bundle (relative to app root)
ui.pages[].routestringURL path for the page
ui.pages[].labelstringSidebar label
ui.pages[].iconstringLucide icon name (e.g. "Shield", "Package")
ui.pages[].iconUrlstringCustom icon image path (relative to ui/)
ui.pages[].entryPointstringPer-page ESM bundle path (overrides ui.entry)
ui.pages[].mountFunctionstring"mount"Exported function name in the ESM bundle
ui.sidebar.sectionstring"Apps"Sidebar section name
ui.sidebar.ordernumber10Sort order within section
ui.overlays[].idstringOverlay id; must match a bundled overlay component (see below)
ui.overlays[].replacesstringHost overlay slot this app takes over while enabled

ui.overlays — Replacing a Host Overlay Surface

An overlay is a surface that floats above whatever the user is looking at and is opened by a gesture the host owns, so unlike ui.pages it has no route and no sidebar placement. Declaring one lets an enabled app take over a host surface:

{
  "ui": {
    "overlays": [
      { "id": "command-bar", "replaces": "quick-search" }
    ]
  }
}

replaces names a host slot. quick-search is the only slot the dashboard currently offers -- it is the Cmd+K / Ctrl+K surface -- and an unknown slot name is reported and ignored rather than silently dropping the overlay.

Host-internal until App Kit adopts it. Both fields are validated by the backend for any manifest, but only an app whose origin is builtin can actually claim a slot: an overlay id must name a component compiled into the dashboard bundle, and there is no ESM entryPoint for overlays the way ui.pages has one. An installed app declaring ui.overlays is refused at install, and a self-registered one is refused when slots are resolved -- builtin provenance is assigned only by the builtin registration Kiro Crew runs at startup and cannot be self-reported. Treat this as the mechanism builtin apps use to replace a host surface, not yet as a third-party extension point.

A builtin declaring ui.overlays must NOT also declare ui.entry: builtin registration re-derives origin on every startup and downgrades an app that ships a UI bundle to local, which would then be refused its own slot. A test enforces this so the combination fails the build rather than silently reverting the surface.

At most one enabled app owns a slot. When two enabled apps declare the same replaces, the first by app name wins and the collision is reported -- the winner does not depend on which app was enabled or installed more recently.

Hero Images

Top-level manifest fields that supply the artwork rendered on App Store browse and detail cards. The path form depends on how the app is distributed:

  • Builtin apps use an absolute served URL under /apps/{name}/ui/ (the builtin registry serves the app's bundled ui/ directory there):

    {
      "heroImage": "/apps/my-app/ui/hero-light.svg",
      "heroImageDark": "/apps/my-app/ui/hero-dark.svg"
    }
    
  • Federated / registry apps use a repo-relative path (e.g. ui/hero-light.svg); registry.py rewrites it to a blob-proxy URL (/api/apps/blob?repo=<repo>&path=<path>) so the artwork resolves without the app being locally installed:

    {
      "heroImage": "ui/hero-light.svg",
      "heroImageDark": "ui/hero-dark.svg"
    }
    
FieldTypeDescription
heroImagestringHero image shown on the App Store card (light theme)
heroImageDarkstringHero image variant used in dark theme

Backend

backend — App Backend Process

{
  "backend": {
    "entryPoint": "backend/server.py",
    "port": "auto",
    "healthCheck": "/health",
    "routes": "/api/apps/oncall-watchtower"
  }
}
FieldTypeDefaultDescription
backend.entryPointstringScript to run (relative to app root), or a dotted Python module path launched via python -m (used by built-in apps like file-explorer, e.g. kiro_crew.apps.builtins.file_explorer.server)
backend.portstring"auto"Port number or "auto" for auto-assignment
backend.healthCheckstring"/health"Health check endpoint path
backend.routesstringBase route path for the backend
backend.typestring""Backend runtime: "python", "asgi", "node", "exec" (execute the entry point file as-is), or "" (auto-detect from entryPoint — a .sh file or an extensionless executable with a non-Python shebang is treated as a shell launcher)

Note: the shell-launcher auto-detect reads the entry point's shebang line, so a compiled/binary launcher (e.g. an ELF executable) cannot be auto-detected — declare "type": "exec" explicitly for those. Exec backends are POSIX-only: on native Windows the backend is refused at spawn with a logged error (use a Python or Node entry point instead).

App backends are accessible through the Gateway's reverse proxy at /apps/{name}/api/{path}, which avoids CORS issues for dashboard UI pages.

backend.hooks — In-Gateway Python Entry Points

Instead of (or alongside) a standalone backend process, an app can register Python entry points that run inside the Gateway process. Each value is a dotted path in the format module.path:callable, resolved relative to the app root (validated against HooksConfig._HOOK_PATH_RE).

{
  "backend": {
    "hooks": {
      "routes": "backend.routes:register_routes",
      "on_startup": "backend.hooks:on_startup",
      "on_shutdown": "backend.hooks:on_shutdown"
    }
  }
}
FieldTypeDescription
backend.hooks.routesstringmodule.path:callable that registers handlers into the Gateway's in-process RouteRegistry catch-all dispatcher
backend.hooks.on_startupstringmodule.path:callable invoked when the app's hooks are wired up
backend.hooks.on_shutdownstringmodule.path:callable invoked when the app is disabled/torn down

hooks.routes handlers are wired up when the app is enabled (via on_app_enable, also re-run at gateway startup via on_gateway_startup), so they go live without waiting for a Gateway restart.

Permissions

permissions — Declared Capabilities

{
  "permissions": {
    "api": ["/api/crons", "/api/status", "/api/agents"],
    "events": ["notification", "slots"],
    "mcpTools": ["cron_add", "cron_list"],
    "storage": true,
    "cron": true,
    "memory": "app-scoped",
    "network": false,
    "spawn": false
  }
}
FieldTypeDescription
permissions.apistring[]Allowed API path prefixes
permissions.eventsstring[]Allowed WebSocket event types
permissions.mcpToolsstring[]Allowed MCP tool names
permissions.storagebooleanCan use app-scoped storage
permissions.cronbooleanCan create cron jobs
permissions.memorystringMemory access: "" (none), "app-scoped", or "shared"
permissions.networkbooleanCan make external network requests
permissions.spawnbooleanMay start a background agent through the host's subagent manager (ctx.spawn)

permissions.spawn — Background Agents

Unlike the advisory fields above, this one gates a real capability: ctx.spawn is absent from the app context unless the manifest declares it, so an app that did not ask cannot start an agent even by importing the SDK. Declared rather than inferred so "which apps can start an agent" is answerable from the manifest instead of from an app's import graph.

Spawns run through the HOST's subagent manager, which means they inherit the host's spawn accounting and approval mode rather than getting a private path. Cost is the app's to bound: an app that spawns on a timer needs its own budget (see the activity-budget pattern in builtins/mochi/activity_budget.py), because the platform does not rate-limit spawns per app today.

API: apps/spawn_sdk.pySpawnSDK, build_spawn_impl, build_done_probe, SpawnError.

Advisory today, not enforced in-process. These fields are not a runtime sandbox. The validator functions in apps/permissions.py (validate_permissions, format_permissions_summary) are currently not wired into the install or runtime path — they are only exercised by unit tests — so the manifest permissions block is neither enforced nor even surfaced today: mcpTools is not gated at tool dispatch and an empty mcpTools list is treated as unrestricted. What actually confines an app today is the HTTP app-token scope (permissions.api allowlist, deny-by-default — see security.md) plus the OS sandbox. Install-time path traversal is blocked separately by _check_path_safety(name) + manifest.validate(), not by the permission validator. Full in-process enforcement is tracked in app-sandbox-roadmap.md.

Setup Hooks

setup — Lifecycle Scripts

{
  "setup": {
    "onInstall": "cd ui && npm install && npm run build",
    "onUninstall": "echo cleanup done",
    "onUpdate": "cd ui && npm install && npm run build",
    "onEnable": "echo enabled",
    "onDisable": "echo disabled",
    "configSchema": {}
  }
}
FieldTypeDefaultDescription
setup.onInstallstring""Shell command run after install
setup.onUninstallstring""Shell command run before uninstall
setup.onUpdatestring""Shell command run after update
setup.onEnablestring""Shell command run when app is enabled
setup.onDisablestring""Shell command run when app is disabled
setup.onEnableTimeoutnumber30Timeout in seconds for onEnable script
setup.onDisableTimeoutnumber30Timeout in seconds for onDisable script
setup.configSchemaobject{}JSON Schema for app configuration

If onEnable fails (non-zero exit), the enable is rolled back — the app stays disabled and any registered resources are deregistered. onDisable failures are logged as warnings but do not block the disable operation.

Exception — platform.installMode: "client" apps. For a client app the script is advisory: a failure is reported on the response as onEnable.failed but the app stays enabled, and the script is skipped entirely (onEnable.skipped: "unsupported_platform") when the gateway's OS is not in the app's platform.os. Such an app's real payload is a desktop application the user installs on their own machine, so its script addresses something that may legitimately be absent here — rolling back would make the app's dashboard half impossible to enable on exactly the hosts that need it to explain how to get the desktop half.

Install scripts run in a sandboxed environment with a minimal set of environment variables (PATH, HOME, SSH_AUTH_SOCK, etc.) to prevent leaking secrets from the gateway process.

Dependencies

dependencies — External Dependency Declarations

Declare external dependencies your app requires. The gateway tracks these in a reference-counted ledger so shared dependencies are not removed when only one app is uninstalled.

{
  "dependencies": {
    "managedBy": "gateway",
    "capabilities": {
      "mcp": [
        { "id": "some-mcp-server", "source": "registry" }
      ],
      "skills": [
        { "id": "some-skill", "source": "registry" }
      ],
      "agents": [
        { "id": "some-agent", "source": "registry" }
      ]
    },
    "commands": ["jq", "node", "python3"]
  }
}
FieldTypeDefaultDescription
dependencies.managedBystring"gateway"Who manages dependency lifecycle: "gateway" or "app"
dependencies.capabilitiesobject{}Capability-package dependencies (MCP servers, skills, agents) resolved through the edition's capability manager. The open-source edition ships none, so these entries are reported as unresolved (they appear in the install result's failed list) and the app still installs — design for graceful degradation.
dependencies.capabilities.mcpobject[][]Required MCP server dependencies
dependencies.capabilities.skillsobject[][]Required skill dependencies
dependencies.capabilities.agentsobject[][]Deprecated for managedBy: "gateway" — no capability-manager install operation exists for agents in any edition, so a gateway-managed entry can never succeed and is always reported unresolved. Declare managedBy: "app" (or install out of band) instead.
dependencies.commandsstring[][]System commands that must be on PATH (checked via which)

The former dependencies.aim key is still accepted as a deprecated alias, but it is never written back — a manifest round-trip migrates it to dependencies.capabilities. Use capabilities in new manifests.

Lifecycle & Resource Management

lifecycle and resources

Control how KiroCrew manages the app:

FieldTypeDefaultDescription
lifecyclestring"gateway""gateway" (managed), "app" (self-managed), or "locked" (cannot uninstall)
resourcesstring"gateway""gateway" (KiroCrew registers agents/skills/MCP) or "app" (app handles its own)

Platform

platform — Compatibility & Install Mode

{
  "platform": {
    "os": ["macos", "linux"],
    "arch": [],
    "requiresDesktopApp": false,
    "installMode": "server",
    "clientInstall": {
      "shell": "curl -fsSL https://example.com/install.sh | bash",
      "postInstall": "open ~/Applications/MyApp.app"
    }
  }
}
FieldTypeDefaultDescription
platform.osstring[]["macos", "linux"]Supported platforms
platform.archstring[][] (any)Supported architectures
platform.requiresDesktopAppbooleanfalseApp's own UI needs the Electron desktop shell
platform.installModestring"server""server" or "client"
platform.clientInstall.shellstringOne-liner for local install
platform.clientInstall.postInstallstringCommand to run after install

When installMode is "client", the App Store shows copy-paste terminal instructions instead of running the install on the server. This is used for apps that must run on the user's local machine (e.g. Electron desktop apps when KiroCrew runs on a remote host).

platform.requiresDesktopApp — Desktop-Only UI

Declares that the app's OWN interface needs the Electron shell (a transparent always-on-top window, a tray surface, global shortcuts — things a browser tab cannot provide). A different axis from os: os says which machines the app can run on at all, this says which CLIENT can render it.

It gates rendering, not enabling. Enabling is a server-side state change — the app's backend, hooks, agents and crons all run in the gateway — so a browser user can still turn the app on and its autonomous side works. Only the app's own window is unavailable. The App Store therefore keeps the Enable action in a browser and shows a "Desktop app" hint beside it (AppListRow, FeatureCard, AppDetailPage); replacing the button with a static claim left remote users with no way to enable the app at all.

UX gate, not a security boundary. The marker is evaluated client-side (lib/electron.ts::needsDesktopApp), so it must never be the only thing standing between a caller and a capability. Anything that must not happen in a browser belongs behind an app-token scope or a server-side check.

Open Command

openCommand — Launch Apps Outside the Dashboard

For apps that run outside the dashboard (e.g. Electron apps), the top-level openCommand declares a shell string that launches the app.

{
  "openCommand": "open ~/Applications/MyApp.app"
}
FieldTypeDefaultDescription
openCommandstring""Shell command launched by POST /api/apps/{name}/open

POST /api/apps/{name}/open runs this command in the background. On a cloud/remote environment with no display, the endpoint returns the command for the user to run locally instead of executing it on the server.

Validation Rules

  • name must match /^[a-z0-9]+(?:-[a-z0-9]+)*$/ (kebab-case)
  • name must not be system (it would shadow the system.* notification-channel namespace)
  • name must not be a Windows reserved device stem — con, prn, aux, nul, com1com9, lpt1lpt9 — because the app name becomes a directory and Windows resolves those inside every directory. Names that merely resemble one (console, com10, null-app) are fine. Refused on every platform: an app name is a persistent published identity, so it must mean the same thing on whichever host installs the app.
  • version must match semver (X.Y.Z)
  • Paths in agents, skills, sops, ui.entry, ui.pages[].entryPoint, and backend.entryPoint must be relative and stay inside the app root: absolute paths and .. traversal are rejected (canonical resolve + containment when the app dir is known). backend.hooks.* are format-checked (module.path:callable, which cannot express traversal) and containment-checked again at load time. mcpServers entries use command/args/url/env (not app-relative file paths) and are not path-checked.
  • All required fields must be non-empty strings
  • Each cron entry must specify either every or cron_expr
  • Each UI page must have route and label
  • Each UI overlay must have id and replaces; both must be kebab-case, and id must be unique within the manifest

Full Example

{
  "name": "oncall-watchtower",
  "version": "1.0.0",
  "displayName": "Oncall Watchtower",
  "description": "Monitor tickets, pipelines, and alarms for your on-call rotation",
  "author": "kirocrew",
  "tags": ["oncall", "monitoring"],
  "agents": ["agents/ticket-analyst.json"],
  "skills": ["skills/oncall-runbook"],
  "crons": [
    {
      "name": "ticket-refresh",
      "every": 300,
      "message": "Check for new high-severity tickets"
    }
  ],
  "ui": {
    "entry": "dist/index.mjs",
    "pages": [
      {
        "route": "/apps/oncall-watchtower",
        "label": "Oncall",
        "icon": "Shield"
      }
    ]
  },
  "permissions": {
    "api": ["/api/crons", "/api/status"],
    "events": ["notification"]
  },
  "platform": {
    "os": ["macos", "linux"]
  }
}

Forward Compatibility

Unknown fields in app.json are preserved during parsing and round-tripped through to_dict() / to_json(). This allows newer manifest features to coexist with older KiroCrew versions without breaking validation.