Camel Kit

Install and first project

Camel Kit runs as a standalone command-line tool installed with JBang, or as a plugin of Camel JBang. Both forms provide the same commands (init, doctor, doc, graph, plan, nextId, ship) and the same eight AI targets. The examples on this page use the standalone form, camel-kit; replace it with camel kit when you use the plugin.

Prerequisites

Requirement Purpose Install

Java 21 or later

Runtime for development Kit, Knowledge and the Aesh-based Camel JBang host

SDKMAN, Adoptium or your package manager

JBang

Launcher for Camel Kit and for the MCP servers it configures

See the installation commands below

Camel JBang

camel run for route execution and runtime verification

jbang app install camel@apache/camel

Camel JBang test plugin (optional)

Runs Citrus tests when its Citrus version matches the project. Otherwise verification uses the pinned JBang runner.

camel plugin add test

Docker (conditional)

Environment probes for external services and full Citrus/Testcontainers verification

Docker Engine or Docker Desktop

Released Kit 0.4.1 and Knowledge 0.0.2 still support Java 17. Generated integrations have their own Java requirements, determined by their selected Camel runtime.

Camel JBang is needed for checks that start a Camel CLI route. Citrus tests use a matching test plugin or the pinned Citrus JBang runner. When Docker is not available, the checks that need containers are reported as skipped; design, planning and the container-free checks still work. camel-kit init checks Java, JBang, Camel JBang and the test plugin and reports missing tools as warnings without stopping.

Release channels

This documentation follows the development branch (0.4.2-SNAPSHOT). The latest release is Camel Kit 0.4.1, which pairs with Knowledge MCP 0.0.2; features that are not in the release are marked as development snapshot only. Pin the release when you need a reproducible installation.

Channel Install source Version

Release

Tagged JBang catalog, or the Camel JBang plugin from Maven Central

0.4.1

Development

Unqualified JBang catalog alias, or a source build

0.4.2-SNAPSHOT

The unqualified catalog alias follows the latest deployed snapshot, which may lag the main branch. Build from source for an exact revision.

Install

  • Standalone (JBang)

  • Camel JBang plugin

  • Development snapshot

  • Build from source

# Install JBang (if not already installed)
curl -Ls https://sh.jbang.dev | bash -s - app setup        # Linux/macOS
iex "& { $(iwr -useb https://ps.jbang.dev) } app setup"    # Windows PowerShell

# Install the release globally
jbang app install camel-kit@luigidemasi/camel-kit/camel-kit-0.4.1

# Verify: prints 0.4.1
camel-kit --version

To run the release once without installing it:

jbang run camel-kit@luigidemasi/camel-kit/camel-kit-0.4.1 \
  init my-integration --ai claude
camel plugin add kit \
  --gav io.github.luigidemasi:camel-jbang-plugin-kit:0.4.1 \
  --description "Design Apache Camel Integrations with AI"

camel kit init my-integration --ai claude

Apache snapshot artifacts are not yet published. To use the latest development version 0.4.2-SNAPSHOT, see the "Build from source" section below.

git clone https://github.com/apache/camel-kit.git
cd camel-kit
./mvnw -B clean install

# Install the development version globally via JBang
jbang app install --name camel-kit --force \
  kit/camel-kit-main/src/main/jbang/main/CamelKit.java

# With an Aesh-based Camel host, install the matching plugin from the local Maven repository
camel plugin add kit \
  --gav org.apache.camel:camel-jbang-plugin-kit:0.4.2-SNAPSHOT \
  --description "Design Apache Camel Integrations with AI"

camel-kit --help

The Knowledge MCP server is built from knowledge/ in the same repository. To build it independently:

./mvnw -B -f knowledge/pom.xml clean install
java -Dknowledge.index.path=knowledge/index/src/main/resources/knowledge-index \
  -jar knowledge/mcp/target/camel-kit-knowledge-mcp-0.0.3-SNAPSHOT-runner.jar

Source-built Knowledge uses org.apache.camel Maven coordinates and Java packages under org.apache.camel.kit.knowledge. Kit retains its published server pin until explicitly changed. For a local integration check, initialize a disposable workspace with -p knowledge.mcp.group-id=org.apache.camel -p knowledge.mcp.version=0.0.3-SNAPSHOT.

The released 0.4.1 artifacts are published under the JBang catalog luigidemasi/camel-kit and the Maven coordinate io.github.luigidemasi:camel-jbang-plugin-kit. Development snapshots built from apache/camel-kit use the org.apache.camel group. The first release from the Apache repository will change the release coordinates; this page is updated with it.

Development CLI host compatibility

The development CLI uses Aesh in both entry points. The plugin requires the Aesh-based Camel 4.24.0 line; the current build is tested against 4.24.0-SNAPSHOT. This host requires Java 21 or later. Use that development host for source/snapshot testing. Kit release validation rejects a snapshot camel.cli.version; a released Camel 4.24.0 host must be verified before releasing this Kit version. Older Picocli-based hosts cannot load the new plugin. These requirements do not change the released 0.4.1 plugin.

The standalone camel-kit launcher and source-built Knowledge also require Java 21 or later. Standalone Kit supplies its own parser and does not require a Camel host to parse commands. The existing JLine/TamboUI rendering remains in place. The host pin camel.cli.version is independent of camel.main.version, so upgrading the CLI host does not change the defaults or supported versions of generated integrations. All pins live in distribution.properties.

Upgrading

Reinstall the standalone CLI with jbang app install --force and the release alias above, or run the plugin installation again. From the project root, preview the upgrade with camel-kit init --here --ai <your-agent> --dry-run, then use --force to apply it. Review any preserved skills, guides or commands using the procedure in Existing projects.

From 0.4.0

In Kit 0.4.1, Camel Main, Camel Spring Boot and Camel MCP default to Camel 4.22.1; the supported older LTS patch is 4.18.4. Spring Boot uses 4.1.1. Camel 4.22.1 maps to Forage 1.6.1. Version 0.4.1 also updates the shared generation and review guidance to prefer verified declarative bean construction after Forage and component configuration (see Forage configuration catalog), and Knowledge MCP 0.0.2 validates endpoints against the Camel 4.22.1 catalog.

From 0.3.1

The gemini and bob targets were removed in 0.4.0 and replaced by antigravity and bob2 (the default). Reinitialize with the replacement target; see Retired targets.

Create a project

camel-kit init my-integration --ai claude
cd my-integration

init creates the directory, runs the prerequisite check, and generates the shared project files plus the agent-native assets selected by --ai (see Supported AI agents for the eight targets; bob2 is the default). To add Camel Kit to an existing directory, for example a project to migrate, run it with --here:

camel-kit init --here --ai claude --source-platform mulesoft

If the directory already contains .camel-kit/, init warns and exits; pass --force to reinitialize. An AGENTS.md of your own does not block init.

Existing projects

init does not replace files an existing project already owns. Application sources, pom.xml and other build files are never written. Files that both a project and Camel Kit may provide are handled in one of two ways.

Instruction files are merged

AGENTS.md, CLAUDE.md, QWEN.md and .github/copilot-instructions.md hold Camel Kit’s content inside a marked block:

<!-- CAMEL-KIT-MANAGED-BLOCK-START: camel-kit-generated -->
...
<!-- CAMEL-KIT-MANAGED-BLOCK-END: camel-kit-generated -->

In a file that has no block, init appends one after your content. On later runs it replaces only the block, so keep your own text outside it. A file whose block lost one of its markers is preserved as described below.

Other shared files are written only while they are Camel Kit’s

docs/constitution.md, .claude/settings.json, .qwenignore, .bob/custom_modes.yaml and the Maven wrapper (mvnw, mvnw.cmd, .mvn/wrapper/maven-wrapper.properties) are written when missing or still identical to what Camel Kit last wrote. A project without a wrapper gets the complete one. Once any wrapper file is the project’s own, Camel Kit adds no further wrapper file and writes only the ones named with --replace.

A shared file that was not written by Camel Kit, or was changed afterwards, is left untouched and listed under Existing files preserved at the end of the run. The version Camel Kit would have written is saved under .camel-kit/conflicts/ at the same relative path, so you can merge it by hand. The Maven wrapper is the exception: a preserved wrapper file is listed without a saved version, because a wrapper is not meant to be merged by hand. To replace the whole wrapper, use --replace-wrapper; --replace mvnw still replaces that one file. To let Camel Kit replace a file in full, name it explicitly:

camel-kit init --here --ai claude --force --replace docs/constitution.md

To see what a run would do to these files without writing anything, add --dry-run:

camel-kit init --here --ai claude --dry-run

An existing MCP configuration is merged: Camel Kit adds or updates its own servers and keeps other servers and settings. This applies to the JSON files and to .codex/config.toml, where Camel Kit keeps its servers between # BEGIN CAMEL-KIT MANAGED MCP SERVERS and # END CAMEL-KIT MANAGED MCP SERVERS. A file that cannot be merged stops init before any project file is changed, and --dry-run rejects it with the same message: invalid JSON or TOML, and for Codex also damaged markers, a camel, camel-knowledge or citrus server table defined outside the managed block, an mcp_servers value that cannot take further tables, or a .codex/config.toml that is not a regular file. On reinitialization, properties you added to .camel-kit/config.properties are kept.

Camel Kit records the hash of each tracked file it wrote in .camel-kit/managed-files.properties; commit it with the project.

Upgrading from 0.4.1 and earlier

If the workspace has lost its Kit configuration, restore the original from version control or a backup before the first upgrade. Releases 0.4.x used .camel-kit/config.properties. Earlier releases used .camel-kit/config.yaml. When both files exist, Kit reads the properties file. If the active file is malformed, both --dry-run and init report the path before writing anything. Repair or restore that file and retry. If Kit reports a permission error reading the configuration or the ledger, restore read access to the named file and retry.

From the project root, run camel-kit init --here --ai claude --force, substituting your assistant’s name. In a shared workspace, run this command once for each assistant, in any order. Kit recognizes stock catalog files from pre-ledger releases by their installed path and content for the selected assistant. It upgrades them and removes recognized stock files the new catalog retired. A file already equal to the new rendering is recorded in place, even when its ledger entry is missing or stale. Run camel-kit doctor after each init to check the assistant you just updated. When adopting a project for the first time, Kit records that ownership tracking began with this init. Copies from older releases that differ from the new rendering stay in place on this and later runs.

If you already ran init while the configuration was missing, restoring it afterward keeps the first-adoption record in effect. Review the .proposed files under .camel-kit/conflicts/catalog/, then rerun init with --force --replace <path> for the changes you accept. For Claude, --replace .claude/skills accepts all selected skills and guides in that directory, including locally edited ones. Review any retired stubs Doctor lists under .claude/commands/ and move the ones you want to retire outside the assistant’s discovery directories.

When upgrading from 0.3.x, also inspect any camel-flow, camel-project, and camel-migrate-mule folders left in your assistant’s skills directory. Doctor treats an edited SKILL.md without an ownership record as personal. The assistant can still discover it after Kit removes its stock guides. Keep the folder if you use it, or move it outside the skills directory to retire it.

Reviewing catalog changes

  • For each selected skill, guide, binary resource or command stub, init creates a missing file and refreshes a file that matches the last installation or a recognized release. Kit preserves edits and unfamiliar content. For example, compare the live validation skill with .camel-kit/conflicts/catalog/claude/skills/camel-validate/SKILL.md.proposed. These copies are outside assistant discovery directories. Merge changes by hand or accept the generated file with camel-kit init --here --ai claude --force --replace .claude/skills/camel-validate/SKILL.md. To accept every selected file under the skills directory, use --replace .claude/skills. A skill subdirectory is also supported. Directory replacement leaves personal files outside the selected catalog alone. If an older development build saved proposals inside a hidden assistant directory, init moves that tree into a previous-* directory under .camel-kit/conflicts/ and prints its location. If an old file or directory blocks the proposal path, preview and init identify it. Review it, move it aside, and retry. Subagents, personas and .camel-kit/templates/ are regenerated.

  • When the distribution moves or drops a file, Kit removes the old copy when it matches its recorded or recognized release hash. An edited retired file stays in place and has no new version to merge. Git conversions between LF and CRLF count as the same content for the supported text formats. Use --dry-run to see changed paths and a count of catalog files already current. Codex and Antigravity share .agents/skills/. Updating either one recognizes both assistants' stock files there and installs the selected assistant’s rendering.

  • Switching between a file and a directory requires write access to the directories holding the old files. Restore write access and retry if the preview reports a read-only directory. If an interrupted switch left a recovery directory, init, --dry-run and Doctor report its path. After any running init has finished, inspect its previous and new contents when present, move the directory outside the skills tree, and retry. If the directory cannot be inspected, restore read and search permissions first.

  • A retained SKILL.md or command stub can still be discovered by the assistant. Doctor reports retired entry points with an ownership record or matching release content, and recognized legacy command stubs. Review these files and move them outside the assistant’s discovery directories to retire them. An unrecorded skill with different content can keep using a historical skill name.

  • For shared files in a pre-ledger workspace, init appends the managed block to unmarked instructions and preserves unfamiliar content in the other shared files. Use --replace <path> to accept a shared file.

    What every target gets
  • AGENTS.md, or the agent’s equivalent entry file, with the routing table for the skills.

  • The agent-native skills and entry points, for example .claude/skills/ for Claude Code or .agents/skills/ for Codex. The released 0.4.1 also writes command stubs to .claude/commands/; see upgrading a Claude Code workspace.

  • docs/constitution.md, the architecture rules every generated route must follow (see Constitution).

  • docs/flows/, test/data/ and schemas/, empty scaffolds; pipeline artifacts use the selected runtime’s paths.

  • .camel-kit/ with the project configuration, cached catalogs and templates, and later the pipeline state.

  • The MCP configuration for the target: JSON for most agents, .codex/config.toml for Codex, .mcp.json read through pi-mcp-adapter for Pi.

  • mvnw, mvnw.cmd and .mvn/wrapper/maven-wrapper.properties, created for new projects or when missing. For existing projects with a Maven wrapper, the existing wrapper is preserved unless --replace-wrapper is specified.

Using Camel Kit with Existing Projects

Camel Kit can enhance existing Camel 4 applications in addition to creating new projects. When you run init on a directory with an existing pom.xml:

  • Your pom.xml, existing routes, and configuration are preserved

  • Camel Kit detects your Camel version, runtime (Spring Boot, Quarkus, etc.), and DSL type

  • The Maven wrapper is skipped if it already exists

  • Skills are added; the files Camel Kit ships are refreshed on reinit, and files you add are never touched

The workflow is the same (/camel-start → /camel-brainstorm → /camel-plan → /camel-execute → /camel-validate <PIPELINE_ID>), but with additional safeguards:

  • Scope protection - only approved files are modified

  • Baseline validation - the per-test baseline is captured before the first edit, and later compared test by test

  • Version locking - the versions your pom declares are recorded and not upgraded

See Adding Capabilities to Existing Camel Applications for the complete guide with a worked example.

Use --dry-run to preview changes before initializing: camel-kit init --here --ai claude --dry-run

Configuration

All defaults (Camel version, BOM versions, MCP server versions) come from the distribution.properties file bundled in Camel Kit. Three layers override them, the later winning:

  1. the built-in defaults;

  2. ~/.camel-kit/config.properties, or the file given with -c;

  3. -p key=value flags, repeatable.

The workspace records the effective camel.catalog.repos used by the Camel MCP launcher. Configure any vendor repository in the Maven settings used for the destination build and in the catalog repository list at init. Keep repository credentials in Maven settings. Before choosing a runtime, consult the observed catalog results. Verify the selected target with your configured runner before approving a design that needs catalog artifacts.

camel-kit target shows the selected application BOM, core version, repositories and catalog arguments. For a migration, camel-kit target --migration reads the separate destination selection. See Selecting a migration target.

camel-kit init my-integration --ai claude -p "camel.main.version=4.18.4"
camel-kit init my-integration --ai claude -c /path/to/my-config.properties

The most common keys are camel.main.version, camel.springboot.version, camel.quarkus.version, quarkus.platform.version, knowledge.mcp.version and citrus.version. See Command reference for the full option list, including --no-fetch and --silent.

Check the workspace

camel-kit doctor
camel-kit doctor --json   # for automation

doctor checks the generated configuration, command stubs where the target uses them, skill files, MCP filtering and permission fields, the project graph, the command prefix, the prerequisites and common stale generated references. It prints PASS, WARN and FAIL findings with remediation text. Missing external tools such as JBang are warnings; broken generated workspace files are failures. If Doctor cannot load the workspace configuration, it reports the cause and still checks the graph, prerequisites and stale references in project-level instructions.

Run the first command

Open your coding agent in the project directory and start the router:

/camel-start

/camel-start reads the project state and routes to the right stage: migration for an existing MuleSoft, BizTalk, Fuse or Camel 2.x/3.x source, planning for an approved design, execution for a plan, validation for generated routes, debugging for a broken project outside a pipeline, and the design interview for everything else. You can also describe the work in plain words, for example "I want to build an integration that reads from Kafka and writes to a database"; the agent reads the routing table and invokes the skill.

The invocation form depends on the agent: /camel-start in Claude Code, Bob IDE, Antigravity, Qwen and OpenCode; $camel-start in Bob Shell and Codex; "Use the /camel-start skill" in GitHub Copilot CLI; /skill:camel-start in Pi. See Supported AI agents.

The first pipeline run needs an active pipeline ID. init does not create one, so the agent asks you to create it before the interview continues:

camel-kit nextId kafka-to-database
# Output: 001-kafka-to-database

The ID names the directory under docs/camel-kit/ where the pipeline artifacts are written, so you can close the session and resume later.

Where to go next